5 dqmInfoTauV = cms.EDAnalyzer(
7 subSystemFolder = cms.untracked.string(
'RecoTauV')
11 produceDenoms = cms.Sequence(
12 produceDenominatorRealData+
13 produceDenominatorRealElectronsData+
14 produceDenominatorRealMuonsData
17 seqModifier = ApplyFunctionToSequence(
lambda module:
setTrigger( module, cms.PSet( hltDBKey = cms.string(
'TauTriggerForALLQCDDataset'), hltPaths = cms.vstring(
'HLT_IsoMu24_eta2p1_v*') ) ) )
18 TauValNumeratorAndDenominatorRealData.visit(seqModifier)
20 seqModifier = ApplyFunctionToSequence(
lambda module:
setTrigger( module, cms.PSet( hltDBKey = cms.string(
'TauTriggerForALLEleDataset'), hltPaths = cms.vstring(
'HLT_Ele20_CaloIdVT_CaloIsoVT_TrkIdT_TrkIsoVT_SC4_Mass50_v*') ) ) )
21 TauValNumeratorAndDenominatorRealElectronsData.visit(seqModifier)
23 seqModifier = ApplyFunctionToSequence(
lambda module:
setTrigger( module, cms.PSet( hltDBKey = cms.string(
'TauTriggerForALLMuDataset'), hltPaths = cms.vstring(
'HLT_IsoMu24_eta2p1_v*') ) ) )
24 TauValNumeratorAndDenominatorRealMuonsData.visit(seqModifier)
26 pfTauRunDQMValidation = cms.Sequence(
27 TauValNumeratorAndDenominatorRealData+
28 TauValNumeratorAndDenominatorRealElectronsData+
29 TauValNumeratorAndDenominatorRealMuonsData+
33 runTauEff = cms.Sequence(
35 efficienciesRealElectronsData+
36 efficienciesRealMuonsData+
37 normalizePlotsRealMuonsData
47 produceDenomsSingleMu = cms.Sequence(
48 produceDenominatorRealData+
49 produceDenominatorRealMuonsData
51 produceDenomsJet = cms.Sequence(produceDenominatorRealData)
52 produceDenomsMultiJet = cms.Sequence(produceDenomsJet)
54 produceDenomsDoubleElectron = cms.Sequence(produceDenominatorRealElectronsData)
55 produceDenomsTauPlusX = cms.Sequence(produceDenomsDoubleElectron)
60 proc.GeneralMuSequence = cms.Sequence( proc.TauValNumeratorAndDenominatorRealData * proc.TauValNumeratorAndDenominatorRealMuonsData )
80 procAttributes =
dir(proc)
82 seqModifier = ApplyFunctionToSequence(
lambda module:
setTrigger( module, cms.PSet( hltDBKey = cms.string(
'TauTriggerForSingleMuDataset'), hltPaths = cms.vstring(
'HLT_IsoMu24_eta2p1_v*') ) ) )
83 proc.GeneralMuSequenceAtSingleMu.visit(seqModifier)
85 newProcAttributes =
filter(
lambda x: (x
not in procAttributes)
and (x.find(
'AtSingleMu') != -1),
dir(proc) )
87 for newAttr
in newProcAttributes:
88 locals()[newAttr] = getattr(proc,newAttr)
90 pfTauRunDQMValidationSingleMu = cms.Sequence(
91 GeneralMuSequenceAtSingleMu+
96 procAttributes =
dir(proc)
98 seqModifier = ApplyFunctionToSequence(
lambda module:
setTrigger( module, cms.PSet( hltDBKey = cms.string(
'TauTriggerForJetDataset'), hltPaths = cms.vstring(
'HLT_Jet30_L1FastJet_v*') ) ) )
99 proc.TauValNumeratorAndDenominatorRealDataAtJet.visit(seqModifier)
101 newProcAttributes =
filter(
lambda x: (x
not in procAttributes)
and (x.find(
'AtJet') != -1),
dir(proc) )
103 for newAttr
in newProcAttributes:
104 locals()[newAttr] = getattr(proc,newAttr)
106 pfTauRunDQMValidationJet = cms.Sequence(
107 TauValNumeratorAndDenominatorRealDataAtJet+
112 procAttributes =
dir(proc)
114 seqModifier = ApplyFunctionToSequence(
lambda module:
setTrigger( module, cms.PSet( hltDBKey = cms.string(
'TauTriggerForMultiJetDataset'), hltPaths = cms.vstring(
'OUR_HLT_FALLBACK_PATH') ) ) )
115 proc.TauValNumeratorAndDenominatorRealDataAtMultiJet.visit(seqModifier)
117 newProcAttributes =
filter(
lambda x: (x
not in procAttributes)
and (x.find(
'AtMultiJet') != -1),
dir(proc) )
119 for newAttr
in newProcAttributes:
120 locals()[newAttr] = getattr(proc,newAttr)
122 pfTauRunDQMValidationMultiJet = cms.Sequence(
123 TauValNumeratorAndDenominatorRealDataAtMultiJet+
128 procAttributes =
dir(proc)
130 seqModifier = ApplyFunctionToSequence(
lambda module:
setTrigger( module, cms.PSet( hltDBKey = cms.string(
'TauTriggerForDoubleElectronDataset'), hltPaths = cms.vstring(
'HLT_Ele20_CaloIdVT_CaloIsoVT_TrkIdT_TrkIsoVT_SC4_Mass50_v*') ) ) )
131 proc.TauValNumeratorAndDenominatorRealElectronsDataAtDoubleElectron.visit(seqModifier)
133 newProcAttributes =
filter(
lambda x: (x
not in procAttributes)
and (x.find(
'AtDoubleElectron') != -1),
dir(proc) )
135 for newAttr
in newProcAttributes:
136 locals()[newAttr] = getattr(proc,newAttr)
138 pfTauRunDQMValidationDoubleElectron = cms.Sequence(
139 TauValNumeratorAndDenominatorRealElectronsDataAtDoubleElectron+
144 procAttributes =
dir(proc)
146 seqModifier = ApplyFunctionToSequence(
lambda module:
setTrigger( module, cms.PSet( hltDBKey = cms.string(
'TauTriggerForTauPlusXDataset'), hltPaths = cms.vstring(
'HLT_Ele20_CaloIdVT_CaloIsoRhoT_TrkIdT_TrkIsoT_LooseIsoPFTau20_v*') ) ) )
147 proc.TauValNumeratorAndDenominatorRealElectronsDataTauPlusX.visit(seqModifier)
149 newProcAttributes =
filter(
lambda x: (x
not in procAttributes)
and (x.find(
'TauPlusX') != -1),
dir(proc) )
151 for newAttr
in newProcAttributes:
152 locals()[newAttr] = getattr(proc,newAttr)
154 pfTauRunDQMValidationTauPlusX = cms.Sequence(
155 TauValNumeratorAndDenominatorRealElectronsDataTauPlusX+
167 runTauEffSingleMu = cms.Sequence(
168 efficienciesRealMuonsData+
169 efficienciesRealData+
170 normalizePlotsRealMuonsData
173 runTauEffJet = cms.Sequence(TauEfficienciesRealData)
174 runTauEffMutiJet = cms.Sequence(runTauEffJet)
176 runTauEffDoubleElectron = cms.Sequence(produceDenominatorRealElectronsData)
177 runTauEffTauPlusX = cms.Sequence(runTauEffDoubleElectron)
def cloneProcessingSnippet(process, sequence, postfix, removePostfix="", noClones=[], addToTask=False)
def setTrigger(module, pset)