394 from ElectronPhotonSelectorTools.TrigEGammaPIDdefs
import BitDefElectron
397 | 1 << BitDefElectron.ClusterEtaRange_Electron
398 | 1 << BitDefElectron.ClusterHadronicLeakage_Electron
399 | 1 << BitDefElectron.ClusterMiddleEnergy_Electron
400 | 1 << BitDefElectron.ClusterMiddleEratio37_Electron
401 | 1 << BitDefElectron.ClusterMiddleWidth_Electron
402 | 1 << BitDefElectron.ClusterStripsWtot_Electron
405 ElectronMediumHI = (ElectronLooseHI
406 | 1 << BitDefElectron.ClusterMiddleEratio33_Electron
407 | 1 << BitDefElectron.ClusterBackEnergyFraction_Electron
408 | 1 << BitDefElectron.ClusterStripsEratio_Electron
409 | 1 << BitDefElectron.ClusterStripsDeltaEmax2_Electron
410 | 1 << BitDefElectron.ClusterStripsDeltaE_Electron
411 | 1 << BitDefElectron.ClusterStripsFracm_Electron
412 | 1 << BitDefElectron.ClusterStripsWeta1c_Electron
415 if not ConfigFilePath:
416 ConfigFilePath = flags.Trigger.egamma.electronHIPidVersion
418 from collections
import OrderedDict
419 SelectorNames = OrderedDict({
420 'medium':
'AsgElectronIsEMSelectorHIMedium',
421 'loose':
'AsgElectronIsEMSelectorHILoose',
422 'mergedtight' :
'AsgElectronIsEMSelectorMergedTight',
425 ElectronToolConfigFile = {
426 'medium':
'ElectronIsEMMediumSelectorCutDefs.conf',
427 'loose':
'ElectronIsEMLooseSelectorCutDefs.conf',
428 'mergedtight' :
'ElectronIsEMMergedTightSelectorCutDefs.conf',
432 'medium': ElectronMediumHI,
433 'loose': ElectronLooseHI,
434 'mergedtight' : egammaPID.ElectronTightHLT,
437 for sel, name
in SelectorNames.items():
438 SelectorTool = CompFactory.AsgElectronIsEMSelector(name)
439 SelectorTool.ConfigFile = ConfigFilePath +
'/' + ElectronToolConfigFile[sel]
440 SelectorTool.isEMMask = ElectronMaskBits[sel]
441 acc.addPublicTool(SelectorTool)