"drop pdgId = -11" ]) createGeneratedParticles(process, 'genTauCands', [ "keep pdgId = {tau+} & mother.pdgId()= {Z0}", "keep pdgId = {tau-} & mother.pdgId() = {Z0}" ]) #Add event counter addEventSummary(process, True) #ntupleization from UWAnalysis.Configuration.tools.ntupleTools import addMuTauEventTree addMuTauEventTree(process, 'muTauEventTree') addMuTauEventTree(process, 'muTauEventTreeFinal', 'diTausOS', 'diMuonsSorted') #Final trees afor shapes after shifts addMuTauEventTree(process, 'muTauEventTreeTauUp', 'diTausTauMuonVetoTauUp', 'diMuonsSortedTauUp') addMuTauEventTree(process, 'muTauEventTreeTauDown', 'diTausTauMuonVetoTauDown', 'diMuonsSortedTauDown') addMuTauEventTree(process, 'muTauEventTreeMetUp', 'diTausTauMuonVetoMetUp', 'diMuonsSortedMetUp') addMuTauEventTree(process, 'muTauEventTreeMetDown', 'diTausTauMuonVetoMetDown', 'diMuonsSortedMetDown') addMuTauEventTree(process, 'muTauEventTreeMetRUp', 'diTausTauMuonVetoMetRUp', 'diMuonsSortedMetRUp') addMuTauEventTree(process, 'muTauEventTreeMetRDown', 'diTausTauMuonVetoMetRDown', 'diMuonsSortedMetRDown')
#process.eventSelectionMuUp = createSystematics(process,process.selectionSequence,'MuUp',1.01,1.0,1.0,1.0,1.0) #process.eventSelectionMuDown = createSystematics(process,process.selectionSequence,'MuDown',0.99,1.0,1.0,1.0,1.0) process.eventSelectionTauUp = createSystematics(process,process.selectionSequence,'TauUp',1.00,1.0,1.03,0,1.0) process.eventSelectionTauDown = createSystematics(process,process.selectionSequence,'TauDown',1.0,1.0,0.97,0,1.0) #fix btagging process.jetTracksAssociatorAtVertex.tracks = cms.InputTag("tmfTracks") #Add event counter addEventSummary(process) #ntupleization from UWAnalysis.Configuration.tools.ntupleTools import addMuTauEventTree addMuTauEventTree(process,'muTauEventTree') addMuTauEventTree(process,'muTauEventTreeFinal','diTausOS','diMuonsSorted') #Final trees afor shapes after shifts addMuTauEventTree(process,'muTauEventTreeTauUp','diTausTauMuonVetoTauUp','diMuonsSortedTauUp') addMuTauEventTree(process,'muTauEventTreeTauDown','diTausTauMuonVetoTauDown','diMuonsSortedTauDown')
"drop pdgId = -11" ]) createGeneratedParticles(process, 'genTauCands', [ "keep pdgId = {tau+} & mother.pdgId()= {Z0}", "keep pdgId = {tau-} & mother.pdgId() = {Z0}" ]) #Add event counter addEventSummary(process) #ntupleization from UWAnalysis.Configuration.tools.ntupleTools import addMuTauEventTree addMuTauEventTree(process, 'muTauEventTree') addMuTauEventTree(process, 'muTauEventTreeFinal', 'diTausOS', 'diMuonsSorted') #Final trees afor shapes after shifts addMuTauEventTree(process, 'muTauEventTreeTauUp', 'diTausTauMuonVetoTauUp', 'diMuonsSortedTauUp') addMuTauEventTree(process, 'muTauEventTreeTauDown', 'diTausTauMuonVetoTauDown', 'diMuonsSortedTauDown') addMuTauEventTree(process, 'muTauEventTreeJetUp', 'diTausTauMuonVetoJetUp', 'diMuonsSortedJetUp') addMuTauEventTree(process, 'muTauEventTreeJetDown', 'diTausTauMuonVetoJetDown', 'diMuonsSortedJetDown') addMuTauEventTree(process, 'muTauEventTreeUncUp', 'diTausTauMuonVetoUncUp', 'diMuonsSortedUncUp') addMuTauEventTree(process, 'muTauEventTreeUncDown', 'diTausTauMuonVetoUncDown', 'diMuonsSortedUncDown')
process.load("PhysicsTools.PatAlgos.patSequences_cff") from UWAnalysis.Configuration.tools.analysisTools import * defaultReconstruction(process,'HLT', [ "HLT_IsoMu12_LooseIsoPFTau10", "HLT_IsoMu15_LooseIsoPFTau15", "HLT_IsoMu15_eta2p1_LooseIsoPFTau20" ]) #EventSelection process.load("UWAnalysis.Configuration.zMuTauAnalysis_cff") process.eventSelection = cms.Path(process.selectionSequence) addEventSummary(process) from UWAnalysis.Configuration.tools.ntupleTools import addMuTauEventTree addMuTauEventTree(process,'muTauEventTree') addMuTauEventTree(process,'muTauEventTreeFinal','diTausOS','diMuonsSorted') #addRunRangePlotter(process,['HLT_Mu9','HLT_Mu11','HLT_Mu11_PFTau15_v1','HLT_Mu11_PFTau15_v2'])
process.load( 'Configuration/StandardSequences/FrontierConditions_GlobalTag_cff') process.GlobalTag.globaltag = 'GR_R_42_V19::All' process.maxEvents = cms.untracked.PSet(input=cms.untracked.int32(1000)) process.source = cms.Source( "PoolSource", fileNames=cms.untracked.vstring('file:pickevents.root')) process.load("PhysicsTools.PatAlgos.patSequences_cff") from UWAnalysis.Configuration.tools.analysisTools import * defaultReconstruction(process, 'HLT', [ "HLT_IsoMu12_LooseIsoPFTau10", "HLT_IsoMu15_LooseIsoPFTau15", "HLT_IsoMu15_eta2p1_LooseIsoPFTau20" ]) #EventSelection process.load("UWAnalysis.Configuration.zMuTauAnalysis_cff") process.eventSelection = cms.Path(process.selectionSequence) addEventSummary(process) from UWAnalysis.Configuration.tools.ntupleTools import addMuTauEventTree addMuTauEventTree(process, 'muTauEventTree') addMuTauEventTree(process, 'muTauEventTreeFinal', 'diTausOS', 'diMuonsSorted') #addRunRangePlotter(process,['HLT_Mu9','HLT_Mu11','HLT_Mu11_PFTau15_v1','HLT_Mu11_PFTau15_v2'])
"drop pdgId = -11", ], ) createGeneratedParticles( process, "genTauCands", ["keep pdgId = {tau+} & mother.pdgId()= {W+}", "keep pdgId = {tau-} & mother.pdgId() = {W-}"], ) # Add event counter addEventSummary(process, True) # ntupleization from UWAnalysis.Configuration.tools.ntupleTools import addMuTauEventTree addMuTauEventTree(process, "muTauEventTree") addMuTauEventTree(process, "muTauEventTreeFinal", "diTausOS", "diMuonsSorted") # Final trees afor shapes after shifts addMuTauEventTree(process, "muTauEventTreeTauUp", "diTausTauMuonVetoTauUp", "diMuonsSortedTauUp") addMuTauEventTree(process, "muTauEventTreeTauDown", "diTausTauMuonVetoTauDown", "diMuonsSortedTauDown") addMuTauEventTree(process, "muTauEventTreeMetUp", "diTausTauMuonVetoMetUp", "diMuonsSortedMetUp") addMuTauEventTree(process, "muTauEventTreeMetDown", "diTausTauMuonVetoMetDown", "diMuonsSortedMetDown") addMuTauEventTree(process, "muTauEventTreeMetRUp", "diTausTauMuonVetoMetRUp", "diMuonsSortedMetRUp") addMuTauEventTree(process, "muTauEventTreeMetRDown", "diTausTauMuonVetoMetRDown", "diMuonsSortedMetRDown")