def customizeAll(process, verbose=False): #disabled for now, backup in case 90X needs similar fix #process = customizeGSFixForPAT(process) loadJetMETBTag(process) backupJetSequences = backupJetsFirstStep(process) addBadMuonFilters(process) badMuons = cms.VInputTag( cms.InputTag("badGlobalMuonTagger","bad"), cms.InputTag("cloneGlobalMuonTagger","bad") ) # clean the muons and PF candidates, and make *everything* point to the new candidates cleanPFCandidates(process, badMuons, verbose=verbose) addDiscardedPFCandidates(process, cms.InputTag("pfCandidatesBadMuonsCleaned","discarded"), verbose=verbose) # now make the backup sequences point to the right place backupJetsSecondStep(process, backupJetSequences, badMuons, verbose=verbose) process.patMuons.embedCaloMETMuonCorrs = False # FIXME ##extra METs and MET corrections =============================================================== from PhysicsTools.PatAlgos.slimming.extraSlimmedMETs_MuEGFixMoriond2017 import addExtraMETCollections,addExtraPuppiMETCorrections ### Gain switch collections not existing in 90X+ ### -> corrections are set up to give no change on the MET computation addExtraMETCollections(process, unCleanPFCandidateCollection="particleFlow", cleanElectronCollection="slimmedElectrons", cleanPhotonCollection="slimmedPhotons", unCleanElectronCollection="slimmedElectrons", unCleanPhotonCollection="slimmedPhotons") addExtraPuppiMETCorrections(process, cleanPFCandidateCollection="particleFlow", unCleanPFCandidateCollection="pfCandidatesBadMuonsCleaned", cleanElectronCollection="slimmedElectrons", cleanPhotonCollection="slimmedPhotons", unCleanElectronCollection="slimmedElectrons", unCleanPhotonCollection="slimmedPhotons") addKeepStatement(process, "keep *_slimmedMETs_*_*", ["keep *_slimmedMETsUncorrected_*_*", "keep *_slimmedMETsEGClean_*_*", "keep *_slimmedMETsMuEGClean_*_*"], verbose=verbose) addKeepStatement(process, "keep *_slimmedMETsPuppi_*_*", ["keep *_puppiMETEGCor_*_*", "keep *_puppiMETMuCor_*_*"], verbose=verbose) #redo the miniAOD data customization for new JEC modules created during the backup process from PhysicsTools.PatAlgos.slimming.miniAOD_tools import miniAOD_customizeData miniAOD_customizeData(process) return process
'/store/relval/CMSSW_7_1_0_pre6/JetHT/RECO/PRE_R_71_V2_RelVal_jet2012C-v1/00000/A4DAA3A4-E0C7-E311-A427-00304867BFBC.root', '/store/relval/CMSSW_7_1_0_pre6/JetHT/RECO/PRE_R_71_V2_RelVal_jet2012C-v1/00000/E86E08F2-DDC7-E311-8EAC-0025905A6090.root', ] # ## process.maxEvents.input = 10000 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi") process.load("PhysicsTools.PatAlgos.slimming.slimming_cff") patAlgosToolsTask.add(process.slimmingTask) process.load("RecoVertex.AdaptiveVertexFinder.inclusiveVertexing_cff") patAlgosToolsTask.add(process.inclusiveVertexingTask) patAlgosToolsTask.add(process.inclusiveCandidateVertexingTask) patAlgosToolsTask.add(process.inclusiveCandidateVertexingCvsLTask) process.GlobalTag.globaltag = "GR_R_70_V1::All" from PhysicsTools.PatAlgos.slimming.miniAOD_tools import miniAOD_customizeCommon, miniAOD_customizeData miniAOD_customizeCommon(process) miniAOD_customizeData(process) # ## # process.options.wantSummary = False ## (to suppress the long output at the end of the job) # ## process.out.fileName = 'patTuple_mini_singlemu.root' process.out.outputCommands = process.MicroEventContent.outputCommands from PhysicsTools.PatAlgos.slimming.miniAOD_tools import miniAOD_customizeOutput miniAOD_customizeOutput(process.out)