338def createTrigEgammaFastCaloElectronSelectors(flags, ConfigFilePath=None):
339
340 if not ConfigFilePath:
341 ConfigFilePath = flags.Trigger.egamma.ringerVersion
342
343
344 SelectorNames = {
345 'tight' : 'AsgElectronFastCaloRingerTightSelectorTool',
346 'medium' : 'AsgElectronFastCaloRingerMediumSelectorTool',
347 'loose' : 'AsgElectronFastCaloRingerLooseSelectorTool',
348 'vloose' : 'AsgElectronFastCaloRingerVeryLooseSelectorTool',
349 }
350
351
352 ToolConfigFile = {
353 'tight' :['ElectronRingerTightTriggerConfig.conf' ],
354 'medium' :['ElectronRingerMediumTriggerConfig.conf' ],
355 'loose' :['ElectronRingerLooseTriggerConfig.conf' ],
356 'vloose' :['ElectronRingerVeryLooseTriggerConfig.conf'],
357 }
358
359 selectors = []
360
361 for pidname , name in SelectorNames.items():
362 SelectorTool=CompFactory.Ringer.AsgRingerSelectorTool(name)
363 SelectorTool.ConfigFiles = [ (ConfigFilePath+'/'+path) for path in ToolConfigFile[pidname] ]
364 selectors.append(SelectorTool)
365 return selectors
366
367
368