133 def __init__(self, process, pathName, pdgGen, requiredNumberOfGeneratedObjects, cutCollection = None):
135 pathName is the HLT path to be validated.
137 pdgGen is the PDG id of the corersponding generated particles
138 (11 for electrons, 22 for photons)
140 requiredNumberOfGeneratedObjects should be 1 for single triggers,
141 and 2 for double triggers (e.g. double photon triggers)
143 cutCollection is the name of the collection which should be used
144 to define the acceptance region (at reconstruction level ?).
145 typical values are 'fiducialZee'. If this is set to None,
146 will be determined automatically from pdgGen and requiredNumberOfGeneratedObjects
153 self.
path = getattr(process,pathName)
162 if cutCollection ==
None:
163 cutCollection =
"fiducial" +
getProcessName(pdgGen, requiredNumberOfGeneratedObjects)
168 mo = re.match(
"HLT_.*?(\d+).*",pathName)
171 etThreshold = float(mo.group(1))
178 from DQMServices.Core.DQMEDAnalyzer
import DQMEDAnalyzer
180 triggerobject = cms.InputTag(
"hltTriggerSummaryRAW",
"",
"HLT"),
181 genEtaAcc = cms.double(2.5),
182 genEtAcc = cms.double(2.0),
183 reqNum = cms.uint32(requiredNumberOfGeneratedObjects),
184 filters = cms.VPSet(),
185 PtMax = cms.untracked.double(100.0),
186 genEtMin = cms.untracked.double(etThreshold),
187 pdgGen = cms.int32(pdgGen),
188 cutcollection = cms.InputTag(cutCollection),
191 cutnum = cms.int32(requiredNumberOfGeneratedObjects),
233 import FWCore.ParameterSet.Modules
235 for moduleName
in moduleNames:
244 if not hasattr(self.
process, moduleName):
254 if moduleName
in (
'simulation',
261 module = getattr(self.
process,moduleName)
263 if not isinstance(module, FWCore.ParameterSet.Modules.EDFilter):
267 if module.type_()
in (
'HLTTriggerTypeFilter',
275 if module.type_() ==
'HLTLevel1GTSeed':
277 self.__result.filters.append(self.makePSetForL1SeedFilter(moduleName))
281 if module.type_() ==
'HLTEgammaL1MatchFilterRegional':
283 self.__result.filters.append(self.makePSetForL1SeedToSuperClusterMatchFilter(moduleName))
288 if module.type_() ==
"HLTEgammaEtFilter":
290 self.__result.filters.append(self.makePSetForEtFilter(moduleName))
295 if module.type_() ==
"HLTElectronOneOEMinusOneOPFilterRegional":
296 self.__result.filters.append(self.makePSetForOneOEMinusOneOPFilter(moduleName))
300 if module.type_() ==
"HLTElectronPixelMatchFilter":
301 self.__result.filters.append(self.makePSetForPixelMatchFilter(moduleName))
310 if module.type_() ==
"HLTEgammaGenericFilter":
312 pset = self.makePSetForEgammaGenericFilter(module, moduleName)
314 self.__result.filters.append(pset)
319 if module.type_() ==
"HLTElectronGenericFilter":
321 pset = self.makePSetForElectronGenericFilter(module, moduleName)
323 self.__result.filters.append(pset)