132 def __init__(self, process, pathName, pdgGen, requiredNumberOfGeneratedObjects, cutCollection = None):
134 pathName is the HLT path to be validated.
136 pdgGen is the PDG id of the corersponding generated particles
137 (11 for electrons, 22 for photons)
139 requiredNumberOfGeneratedObjects should be 1 for single triggers,
140 and 2 for double triggers (e.g. double photon triggers)
142 cutCollection is the name of the collection which should be used
143 to define the acceptance region (at reconstruction level ?).
144 typical values are 'fiducialZee'. If this is set to None,
145 will be determined automatically from pdgGen and requiredNumberOfGeneratedObjects
152 self.
path = getattr(process,pathName)
161 if cutCollection ==
None:
162 cutCollection =
"fiducial" +
getProcessName(pdgGen, requiredNumberOfGeneratedObjects)
167 mo = re.match(
"HLT_.*?(\d+).*",pathName)
170 etThreshold = float(mo.group(1))
177 self.
__result = cms.EDAnalyzer(
"EmDQM",
178 triggerobject = cms.InputTag(
"hltTriggerSummaryRAW",
"",
"HLT"),
179 genEtaAcc = cms.double(2.5),
180 genEtAcc = cms.double(2.0),
181 reqNum = cms.uint32(requiredNumberOfGeneratedObjects),
182 filters = cms.VPSet(),
183 PtMax = cms.untracked.double(100.0),
184 genEtMin = cms.untracked.double(etThreshold),
185 pdgGen = cms.int32(pdgGen),
186 cutcollection = cms.InputTag(cutCollection),
189 cutnum = cms.int32(requiredNumberOfGeneratedObjects),
231 import FWCore.ParameterSet.Modules
233 for moduleName
in moduleNames:
242 if not hasattr(self.
process, moduleName):
252 if moduleName
in (
'simulation',
259 module = getattr(self.
process,moduleName)
261 if not isinstance(module, FWCore.ParameterSet.Modules.EDFilter):
265 if module.type_()
in (
'HLTTriggerTypeFilter',
273 if module.type_() ==
'HLTLevel1GTSeed':
275 self.__result.filters.append(self.makePSetForL1SeedFilter(moduleName))
279 if module.type_() ==
'HLTEgammaL1MatchFilterRegional':
281 self.__result.filters.append(self.makePSetForL1SeedToSuperClusterMatchFilter(moduleName))
286 if module.type_() ==
"HLTEgammaEtFilter":
288 self.__result.filters.append(self.makePSetForEtFilter(moduleName))
293 if module.type_() ==
"HLTElectronOneOEMinusOneOPFilterRegional":
294 self.__result.filters.append(self.makePSetForOneOEMinusOneOPFilter(moduleName))
298 if module.type_() ==
"HLTElectronPixelMatchFilter":
299 self.__result.filters.append(self.makePSetForPixelMatchFilter(moduleName))
308 if module.type_() ==
"HLTEgammaGenericFilter":
310 pset = self.makePSetForEgammaGenericFilter(module, moduleName)
312 self.__result.filters.append(pset)
317 if module.type_() ==
"HLTElectronGenericFilter":
319 pset = self.makePSetForElectronGenericFilter(module, moduleName)
321 self.__result.filters.append(pset)