5 from DQMServices.Core.DQMEDAnalyzer
import DQMEDAnalyzer
8 subSystemFolder = cms.untracked.string(
'RecoTauV')
12 produceDenoms = cms.Sequence(
13 produceDenominatorRealData+
14 produceDenominatorRealElectronsData+
15 produceDenominatorRealMuonsData
18 seqModifier = ApplyFunctionToSequence(
lambda module:
setTrigger( module, cms.PSet( hltDBKey = cms.string(
'TauTriggerForALLQCDDataset'), hltPaths = cms.vstring(
'HLT_IsoMu24_eta2p1_v*') ) ) )
19 TauValNumeratorAndDenominatorRealData.visit(seqModifier)
21 seqModifier = ApplyFunctionToSequence(
lambda module:
setTrigger( module, cms.PSet( hltDBKey = cms.string(
'TauTriggerForALLEleDataset'), hltPaths = cms.vstring(
'HLT_Ele20_CaloIdVT_CaloIsoVT_TrkIdT_TrkIsoVT_SC4_Mass50_v*') ) ) )
22 TauValNumeratorAndDenominatorRealElectronsData.visit(seqModifier)
24 seqModifier = ApplyFunctionToSequence(
lambda module:
setTrigger( module, cms.PSet( hltDBKey = cms.string(
'TauTriggerForALLMuDataset'), hltPaths = cms.vstring(
'HLT_IsoMu24_eta2p1_v*') ) ) )
25 TauValNumeratorAndDenominatorRealMuonsData.visit(seqModifier)
27 pfTauRunDQMValidation = cms.Sequence(
28 TauValNumeratorAndDenominatorRealData+
29 TauValNumeratorAndDenominatorRealElectronsData+
30 TauValNumeratorAndDenominatorRealMuonsData+
34 runTauEff = cms.Sequence(
36 efficienciesRealDataSummary+
37 efficienciesRealElectronsData+
38 efficienciesRealElectronsDataSummary+
39 efficienciesRealMuonsData+
40 efficienciesRealMuonsDataSummary+
41 normalizePlotsRealMuonsData
51 produceDenomsSingleMu = cms.Sequence(
52 produceDenominatorRealData+
53 produceDenominatorRealMuonsData
55 produceDenomsJet = cms.Sequence(produceDenominatorRealData)
56 produceDenomsMultiJet = cms.Sequence(produceDenomsJet)
58 produceDenomsDoubleElectron = cms.Sequence(produceDenominatorRealElectronsData)
59 produceDenomsTauPlusX = cms.Sequence(produceDenomsDoubleElectron)
64 proc.GeneralMuSequence = cms.Sequence( proc.TauValNumeratorAndDenominatorRealData * proc.TauValNumeratorAndDenominatorRealMuonsData )
84 procAttributes =
dir(proc)
86 seqModifier = ApplyFunctionToSequence(
lambda module:
setTrigger( module, cms.PSet( hltDBKey = cms.string(
'TauTriggerForSingleMuDataset'), hltPaths = cms.vstring(
'HLT_IsoMu24_eta2p1_v*') ) ) )
87 proc.GeneralMuSequenceAtSingleMu.visit(seqModifier)
89 newProcAttributes = [x
for x
in dir(proc)
if (x
not in procAttributes)
and (x.find(
'AtSingleMu') != -1)]
91 for newAttr
in newProcAttributes:
92 locals()[newAttr] = getattr(proc,newAttr)
94 pfTauRunDQMValidationSingleMu = cms.Sequence(
95 GeneralMuSequenceAtSingleMu+
100 procAttributes =
dir(proc)
102 seqModifier = ApplyFunctionToSequence(
lambda module:
setTrigger( module, cms.PSet( hltDBKey = cms.string(
'TauTriggerForJetDataset'), hltPaths = cms.vstring(
'HLT_Jet30_L1FastJet_v*') ) ) )
103 proc.TauValNumeratorAndDenominatorRealDataAtJet.visit(seqModifier)
105 newProcAttributes = [x
for x
in dir(proc)
if (x
not in procAttributes)
and (x.find(
'AtJet') != -1)]
107 for newAttr
in newProcAttributes:
108 locals()[newAttr] = getattr(proc,newAttr)
110 pfTauRunDQMValidationJet = cms.Sequence(
111 TauValNumeratorAndDenominatorRealDataAtJet+
116 procAttributes =
dir(proc)
118 seqModifier = ApplyFunctionToSequence(
lambda module:
setTrigger( module, cms.PSet( hltDBKey = cms.string(
'TauTriggerForMultiJetDataset'), hltPaths = cms.vstring(
'OUR_HLT_FALLBACK_PATH') ) ) )
119 proc.TauValNumeratorAndDenominatorRealDataAtMultiJet.visit(seqModifier)
121 newProcAttributes = [x
for x
in dir(proc)
if (x
not in procAttributes)
and (x.find(
'AtMultiJet') != -1)]
123 for newAttr
in newProcAttributes:
124 locals()[newAttr] = getattr(proc,newAttr)
126 pfTauRunDQMValidationMultiJet = cms.Sequence(
127 TauValNumeratorAndDenominatorRealDataAtMultiJet+
132 procAttributes =
dir(proc)
134 seqModifier = ApplyFunctionToSequence(
lambda module:
setTrigger( module, cms.PSet( hltDBKey = cms.string(
'TauTriggerForDoubleElectronDataset'), hltPaths = cms.vstring(
'HLT_Ele20_CaloIdVT_CaloIsoVT_TrkIdT_TrkIsoVT_SC4_Mass50_v*') ) ) )
135 proc.TauValNumeratorAndDenominatorRealElectronsDataAtDoubleElectron.visit(seqModifier)
137 newProcAttributes = [x
for x
in dir(proc)
if (x
not in procAttributes)
and (x.find(
'AtDoubleElectron') != -1)]
139 for newAttr
in newProcAttributes:
140 locals()[newAttr] = getattr(proc,newAttr)
142 pfTauRunDQMValidationDoubleElectron = cms.Sequence(
143 TauValNumeratorAndDenominatorRealElectronsDataAtDoubleElectron+
148 procAttributes =
dir(proc)
150 seqModifier = ApplyFunctionToSequence(
lambda module:
setTrigger( module, cms.PSet( hltDBKey = cms.string(
'TauTriggerForTauPlusXDataset'), hltPaths = cms.vstring(
'HLT_Ele20_CaloIdVT_CaloIsoRhoT_TrkIdT_TrkIsoT_LooseIsoPFTau20_v*') ) ) )
151 proc.TauValNumeratorAndDenominatorRealElectronsDataTauPlusX.visit(seqModifier)
153 newProcAttributes = [x
for x
in dir(proc)
if (x
not in procAttributes)
and (x.find(
'TauPlusX') != -1)]
155 for newAttr
in newProcAttributes:
156 locals()[newAttr] = getattr(proc,newAttr)
158 pfTauRunDQMValidationTauPlusX = cms.Sequence(
159 TauValNumeratorAndDenominatorRealElectronsDataTauPlusX+
171 runTauEffSingleMu = cms.Sequence(
172 efficienciesRealMuonsData+
173 efficienciesRealData+
174 normalizePlotsRealMuonsData
177 runTauEffJet = cms.Sequence(TauEfficienciesRealData)
178 runTauEffMutiJet = cms.Sequence(runTauEffJet)
180 runTauEffDoubleElectron = cms.Sequence(produceDenominatorRealElectronsData)
181 runTauEffTauPlusX = cms.Sequence(runTauEffDoubleElectron)
def cloneProcessingSnippet(process, sequence, postfix, removePostfix="", noClones=[], addToTask=False)
def setTrigger(module, pset)