6 from DQMServices.Core.DQMEDAnalyzer
import DQMEDAnalyzer
9 subSystemFolder = cms.untracked.string(
'RecoTauV')
13 produceDenomsData = cms.Sequence(
14 produceDenominatorRealData+
15 produceDenominatorRealElectronsData+
16 produceDenominatorRealMuonsData
19 seqModifier = ApplyFunctionToSequence(
lambda module:
setTrigger( module, cms.PSet( hltDBKey = cms.string(
'TauTriggerForALLQCDDataset'), hltPaths = cms.vstring(
'HLT_IsoMu24_eta2p1_v*') ) ) )
20 TauValNumeratorAndDenominatorRealData.visit(seqModifier)
22 seqModifier = ApplyFunctionToSequence(
lambda module:
setTrigger( module, cms.PSet( hltDBKey = cms.string(
'TauTriggerForALLEleDataset'), hltPaths = cms.vstring(
'HLT_Ele20_CaloIdVT_CaloIsoVT_TrkIdT_TrkIsoVT_SC4_Mass50_v*') ) ) )
23 TauValNumeratorAndDenominatorRealElectronsData.visit(seqModifier)
25 seqModifier = ApplyFunctionToSequence(
lambda module:
setTrigger( module, cms.PSet( hltDBKey = cms.string(
'TauTriggerForALLMuDataset'), hltPaths = cms.vstring(
'HLT_IsoMu24_eta2p1_v*') ) ) )
26 TauValNumeratorAndDenominatorRealMuonsData.visit(seqModifier)
29 pfTauRunDQMValidation = cms.Sequence(
36 runTauEff = cms.Sequence(
43 efficienciesTauValidationMiniAODRealData
44 +efficienciesTauValidationMiniAODRealElectronsData
45 +efficienciesTauValidationMiniAODRealMuonsData
56 produceDenomsSingleMu = cms.Sequence(
57 produceDenominatorRealData+
58 produceDenominatorRealMuonsData
60 produceDenomsJet = cms.Sequence(produceDenominatorRealData)
61 produceDenomsMultiJet = cms.Sequence(produceDenomsJet)
63 produceDenomsDoubleElectron = cms.Sequence(produceDenominatorRealElectronsData)
64 produceDenomsTauPlusX = cms.Sequence(produceDenomsDoubleElectron)
70 proc.GeneralMuSequence = cms.Sequence( proc.TauValNumeratorAndDenominatorRealData * proc.TauValNumeratorAndDenominatorRealMuonsData )
90 procAttributes =
dir(proc)
92 seqModifier = ApplyFunctionToSequence(
lambda module:
setTrigger( module, cms.PSet( hltDBKey = cms.string(
'TauTriggerForSingleMuDataset'), hltPaths = cms.vstring(
'HLT_IsoMu24_eta2p1_v*') ) ) )
93 proc.GeneralMuSequenceAtSingleMu.visit(seqModifier)
95 newProcAttributes = [x
for x
in dir(proc)
if (x
not in procAttributes)
and (x.find(
'AtSingleMu') != -1)]
97 for newAttr
in newProcAttributes:
98 locals()[newAttr] = getattr(proc,newAttr)
100 pfTauRunDQMValidationSingleMu = cms.Sequence(
101 GeneralMuSequenceAtSingleMu+
106 procAttributes =
dir(proc)
108 seqModifier = ApplyFunctionToSequence(
lambda module:
setTrigger( module, cms.PSet( hltDBKey = cms.string(
'TauTriggerForJetDataset'), hltPaths = cms.vstring(
'HLT_Jet30_L1FastJet_v*') ) ) )
109 proc.TauValNumeratorAndDenominatorRealDataAtJet.visit(seqModifier)
111 newProcAttributes = [x
for x
in dir(proc)
if (x
not in procAttributes)
and (x.find(
'AtJet') != -1)]
113 for newAttr
in newProcAttributes:
114 locals()[newAttr] = getattr(proc,newAttr)
116 pfTauRunDQMValidationJet = cms.Sequence(
117 TauValNumeratorAndDenominatorRealDataAtJet+
122 procAttributes =
dir(proc)
124 seqModifier = ApplyFunctionToSequence(
lambda module:
setTrigger( module, cms.PSet( hltDBKey = cms.string(
'TauTriggerForMultiJetDataset'), hltPaths = cms.vstring(
'OUR_HLT_FALLBACK_PATH') ) ) )
125 proc.TauValNumeratorAndDenominatorRealDataAtMultiJet.visit(seqModifier)
127 newProcAttributes = [x
for x
in dir(proc)
if (x
not in procAttributes)
and (x.find(
'AtMultiJet') != -1)]
129 for newAttr
in newProcAttributes:
130 locals()[newAttr] = getattr(proc,newAttr)
132 pfTauRunDQMValidationMultiJet = cms.Sequence(
133 TauValNumeratorAndDenominatorRealDataAtMultiJet+
138 procAttributes =
dir(proc)
140 seqModifier = ApplyFunctionToSequence(
lambda module:
setTrigger( module, cms.PSet( hltDBKey = cms.string(
'TauTriggerForDoubleElectronDataset'), hltPaths = cms.vstring(
'HLT_Ele20_CaloIdVT_CaloIsoVT_TrkIdT_TrkIsoVT_SC4_Mass50_v*') ) ) )
141 proc.TauValNumeratorAndDenominatorRealElectronsDataAtDoubleElectron.visit(seqModifier)
143 newProcAttributes = [x
for x
in dir(proc)
if (x
not in procAttributes)
and (x.find(
'AtDoubleElectron') != -1)]
145 for newAttr
in newProcAttributes:
146 locals()[newAttr] = getattr(proc,newAttr)
148 pfTauRunDQMValidationDoubleElectron = cms.Sequence(
149 TauValNumeratorAndDenominatorRealElectronsDataAtDoubleElectron+
154 procAttributes =
dir(proc)
156 seqModifier = ApplyFunctionToSequence(
lambda module:
setTrigger( module, cms.PSet( hltDBKey = cms.string(
'TauTriggerForTauPlusXDataset'), hltPaths = cms.vstring(
'HLT_Ele20_CaloIdVT_CaloIsoRhoT_TrkIdT_TrkIsoT_LooseIsoPFTau20_v*') ) ) )
157 proc.TauValNumeratorAndDenominatorRealElectronsDataTauPlusX.visit(seqModifier)
159 newProcAttributes = [x
for x
in dir(proc)
if (x
not in procAttributes)
and (x.find(
'TauPlusX') != -1)]
161 for newAttr
in newProcAttributes:
162 locals()[newAttr] = getattr(proc,newAttr)
164 pfTauRunDQMValidationTauPlusX = cms.Sequence(
165 TauValNumeratorAndDenominatorRealElectronsDataTauPlusX+
177 runTauEffSingleMu = cms.Sequence(
183 runTauEffJet = cms.Sequence(TauEfficienciesRealData)
184 runTauEffMutiJet = cms.Sequence(runTauEffJet)
186 runTauEffDoubleElectron = cms.Sequence(produceDenominatorRealElectronsData)
187 runTauEffTauPlusX = cms.Sequence(runTauEffDoubleElectron)
def cloneProcessingSnippet(process, sequence, postfix, removePostfix="", noClones=[], addToTask=False, verbose=False)
def setTrigger(module, pset)