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)
28 pfTauRunDQMValidation = cms.Sequence(
29 TauValNumeratorAndDenominatorRealData+
30 TauValNumeratorAndDenominatorRealElectronsData+
31 TauValNumeratorAndDenominatorRealMuonsData+
35 runTauEff = cms.Sequence(
37 efficienciesRealDataSummary+
38 efficienciesRealElectronsData+
39 efficienciesRealElectronsDataSummary+
40 efficienciesRealMuonsData+
41 efficienciesRealMuonsDataSummary+
42 efficienciesTauValidationMiniAODRealData+
43 efficienciesTauValidationMiniAODRealElectronsData+
44 efficienciesTauValidationMiniAODRealMuonsData+
45 normalizePlotsRealMuonsData
55 produceDenomsSingleMu = cms.Sequence(
56 produceDenominatorRealData+
57 produceDenominatorRealMuonsData
59 produceDenomsJet = cms.Sequence(produceDenominatorRealData)
60 produceDenomsMultiJet = cms.Sequence(produceDenomsJet)
62 produceDenomsDoubleElectron = cms.Sequence(produceDenominatorRealElectronsData)
63 produceDenomsTauPlusX = cms.Sequence(produceDenomsDoubleElectron)
68 proc.GeneralMuSequence = cms.Sequence( proc.TauValNumeratorAndDenominatorRealData * proc.TauValNumeratorAndDenominatorRealMuonsData )
88 procAttributes =
dir(proc)
90 seqModifier = ApplyFunctionToSequence(
lambda module:
setTrigger( module, cms.PSet( hltDBKey = cms.string(
'TauTriggerForSingleMuDataset'), hltPaths = cms.vstring(
'HLT_IsoMu24_eta2p1_v*') ) ) )
91 proc.GeneralMuSequenceAtSingleMu.visit(seqModifier)
93 newProcAttributes = [x
for x
in dir(proc)
if (x
not in procAttributes)
and (x.find(
'AtSingleMu') != -1)]
95 for newAttr
in newProcAttributes:
96 locals()[newAttr] = getattr(proc,newAttr)
98 pfTauRunDQMValidationSingleMu = cms.Sequence(
99 GeneralMuSequenceAtSingleMu+
104 procAttributes =
dir(proc)
106 seqModifier = ApplyFunctionToSequence(
lambda module:
setTrigger( module, cms.PSet( hltDBKey = cms.string(
'TauTriggerForJetDataset'), hltPaths = cms.vstring(
'HLT_Jet30_L1FastJet_v*') ) ) )
107 proc.TauValNumeratorAndDenominatorRealDataAtJet.visit(seqModifier)
109 newProcAttributes = [x
for x
in dir(proc)
if (x
not in procAttributes)
and (x.find(
'AtJet') != -1)]
111 for newAttr
in newProcAttributes:
112 locals()[newAttr] = getattr(proc,newAttr)
114 pfTauRunDQMValidationJet = cms.Sequence(
115 TauValNumeratorAndDenominatorRealDataAtJet+
120 procAttributes =
dir(proc)
122 seqModifier = ApplyFunctionToSequence(
lambda module:
setTrigger( module, cms.PSet( hltDBKey = cms.string(
'TauTriggerForMultiJetDataset'), hltPaths = cms.vstring(
'OUR_HLT_FALLBACK_PATH') ) ) )
123 proc.TauValNumeratorAndDenominatorRealDataAtMultiJet.visit(seqModifier)
125 newProcAttributes = [x
for x
in dir(proc)
if (x
not in procAttributes)
and (x.find(
'AtMultiJet') != -1)]
127 for newAttr
in newProcAttributes:
128 locals()[newAttr] = getattr(proc,newAttr)
130 pfTauRunDQMValidationMultiJet = cms.Sequence(
131 TauValNumeratorAndDenominatorRealDataAtMultiJet+
136 procAttributes =
dir(proc)
138 seqModifier = ApplyFunctionToSequence(
lambda module:
setTrigger( module, cms.PSet( hltDBKey = cms.string(
'TauTriggerForDoubleElectronDataset'), hltPaths = cms.vstring(
'HLT_Ele20_CaloIdVT_CaloIsoVT_TrkIdT_TrkIsoVT_SC4_Mass50_v*') ) ) )
139 proc.TauValNumeratorAndDenominatorRealElectronsDataAtDoubleElectron.visit(seqModifier)
141 newProcAttributes = [x
for x
in dir(proc)
if (x
not in procAttributes)
and (x.find(
'AtDoubleElectron') != -1)]
143 for newAttr
in newProcAttributes:
144 locals()[newAttr] = getattr(proc,newAttr)
146 pfTauRunDQMValidationDoubleElectron = cms.Sequence(
147 TauValNumeratorAndDenominatorRealElectronsDataAtDoubleElectron+
152 procAttributes =
dir(proc)
154 seqModifier = ApplyFunctionToSequence(
lambda module:
setTrigger( module, cms.PSet( hltDBKey = cms.string(
'TauTriggerForTauPlusXDataset'), hltPaths = cms.vstring(
'HLT_Ele20_CaloIdVT_CaloIsoRhoT_TrkIdT_TrkIsoT_LooseIsoPFTau20_v*') ) ) )
155 proc.TauValNumeratorAndDenominatorRealElectronsDataTauPlusX.visit(seqModifier)
157 newProcAttributes = [x
for x
in dir(proc)
if (x
not in procAttributes)
and (x.find(
'TauPlusX') != -1)]
159 for newAttr
in newProcAttributes:
160 locals()[newAttr] = getattr(proc,newAttr)
162 pfTauRunDQMValidationTauPlusX = cms.Sequence(
163 TauValNumeratorAndDenominatorRealElectronsDataTauPlusX+
175 runTauEffSingleMu = cms.Sequence(
176 efficienciesRealMuonsData+
177 efficienciesRealData+
178 normalizePlotsRealMuonsData
181 runTauEffJet = cms.Sequence(TauEfficienciesRealData)
182 runTauEffMutiJet = cms.Sequence(runTauEffJet)
184 runTauEffDoubleElectron = cms.Sequence(produceDenominatorRealElectronsData)
185 runTauEffTauPlusX = cms.Sequence(runTauEffDoubleElectron)
def cloneProcessingSnippet(process, sequence, postfix, removePostfix="", noClones=[], addToTask=False, verbose=False)
def setTrigger(module, pset)