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 efficienciesRealElectronsData+
37 efficienciesRealMuonsData+
38 normalizePlotsRealMuonsData
48 produceDenomsSingleMu = cms.Sequence(
49 produceDenominatorRealData+
50 produceDenominatorRealMuonsData
52 produceDenomsJet = cms.Sequence(produceDenominatorRealData)
53 produceDenomsMultiJet = cms.Sequence(produceDenomsJet)
55 produceDenomsDoubleElectron = cms.Sequence(produceDenominatorRealElectronsData)
56 produceDenomsTauPlusX = cms.Sequence(produceDenomsDoubleElectron)
61 proc.GeneralMuSequence = cms.Sequence( proc.TauValNumeratorAndDenominatorRealData * proc.TauValNumeratorAndDenominatorRealMuonsData )
81 procAttributes =
dir(proc)
83 seqModifier = ApplyFunctionToSequence(
lambda module:
setTrigger( module, cms.PSet( hltDBKey = cms.string(
'TauTriggerForSingleMuDataset'), hltPaths = cms.vstring(
'HLT_IsoMu24_eta2p1_v*') ) ) )
84 proc.GeneralMuSequenceAtSingleMu.visit(seqModifier)
86 newProcAttributes =
filter(
lambda x: (x
not in procAttributes)
and (x.find(
'AtSingleMu') != -1),
dir(proc) )
88 for newAttr
in newProcAttributes:
89 locals()[newAttr] = getattr(proc,newAttr)
91 pfTauRunDQMValidationSingleMu = cms.Sequence(
92 GeneralMuSequenceAtSingleMu+
97 procAttributes =
dir(proc)
99 seqModifier = ApplyFunctionToSequence(
lambda module:
setTrigger( module, cms.PSet( hltDBKey = cms.string(
'TauTriggerForJetDataset'), hltPaths = cms.vstring(
'HLT_Jet30_L1FastJet_v*') ) ) )
100 proc.TauValNumeratorAndDenominatorRealDataAtJet.visit(seqModifier)
102 newProcAttributes =
filter(
lambda x: (x
not in procAttributes)
and (x.find(
'AtJet') != -1),
dir(proc) )
104 for newAttr
in newProcAttributes:
105 locals()[newAttr] = getattr(proc,newAttr)
107 pfTauRunDQMValidationJet = cms.Sequence(
108 TauValNumeratorAndDenominatorRealDataAtJet+
113 procAttributes =
dir(proc)
115 seqModifier = ApplyFunctionToSequence(
lambda module:
setTrigger( module, cms.PSet( hltDBKey = cms.string(
'TauTriggerForMultiJetDataset'), hltPaths = cms.vstring(
'OUR_HLT_FALLBACK_PATH') ) ) )
116 proc.TauValNumeratorAndDenominatorRealDataAtMultiJet.visit(seqModifier)
118 newProcAttributes =
filter(
lambda x: (x
not in procAttributes)
and (x.find(
'AtMultiJet') != -1),
dir(proc) )
120 for newAttr
in newProcAttributes:
121 locals()[newAttr] = getattr(proc,newAttr)
123 pfTauRunDQMValidationMultiJet = cms.Sequence(
124 TauValNumeratorAndDenominatorRealDataAtMultiJet+
129 procAttributes =
dir(proc)
131 seqModifier = ApplyFunctionToSequence(
lambda module:
setTrigger( module, cms.PSet( hltDBKey = cms.string(
'TauTriggerForDoubleElectronDataset'), hltPaths = cms.vstring(
'HLT_Ele20_CaloIdVT_CaloIsoVT_TrkIdT_TrkIsoVT_SC4_Mass50_v*') ) ) )
132 proc.TauValNumeratorAndDenominatorRealElectronsDataAtDoubleElectron.visit(seqModifier)
134 newProcAttributes =
filter(
lambda x: (x
not in procAttributes)
and (x.find(
'AtDoubleElectron') != -1),
dir(proc) )
136 for newAttr
in newProcAttributes:
137 locals()[newAttr] = getattr(proc,newAttr)
139 pfTauRunDQMValidationDoubleElectron = cms.Sequence(
140 TauValNumeratorAndDenominatorRealElectronsDataAtDoubleElectron+
145 procAttributes =
dir(proc)
147 seqModifier = ApplyFunctionToSequence(
lambda module:
setTrigger( module, cms.PSet( hltDBKey = cms.string(
'TauTriggerForTauPlusXDataset'), hltPaths = cms.vstring(
'HLT_Ele20_CaloIdVT_CaloIsoRhoT_TrkIdT_TrkIsoT_LooseIsoPFTau20_v*') ) ) )
148 proc.TauValNumeratorAndDenominatorRealElectronsDataTauPlusX.visit(seqModifier)
150 newProcAttributes =
filter(
lambda x: (x
not in procAttributes)
and (x.find(
'TauPlusX') != -1),
dir(proc) )
152 for newAttr
in newProcAttributes:
153 locals()[newAttr] = getattr(proc,newAttr)
155 pfTauRunDQMValidationTauPlusX = cms.Sequence(
156 TauValNumeratorAndDenominatorRealElectronsDataTauPlusX+
168 runTauEffSingleMu = cms.Sequence(
169 efficienciesRealMuonsData+
170 efficienciesRealData+
171 normalizePlotsRealMuonsData
174 runTauEffJet = cms.Sequence(TauEfficienciesRealData)
175 runTauEffMutiJet = cms.Sequence(runTauEffJet)
177 runTauEffDoubleElectron = cms.Sequence(produceDenominatorRealElectronsData)
178 runTauEffTauPlusX = cms.Sequence(runTauEffDoubleElectron)
def cloneProcessingSnippet(process, sequence, postfix, removePostfix="", noClones=[], addToTask=False)
def setTrigger(module, pset)