403 from ElectronPhotonSelectorTools.TrigEGammaPIDdefs
import BitDefElectron
404 from ROOT
import egammaPID
407 | 1 << BitDefElectron.ClusterEtaRange_Electron
408 | 1 << BitDefElectron.ClusterHadronicLeakage_Electron
409 | 1 << BitDefElectron.ClusterMiddleEnergy_Electron
410 | 1 << BitDefElectron.ClusterMiddleEratio37_Electron
411 | 1 << BitDefElectron.ClusterMiddleWidth_Electron
412 | 1 << BitDefElectron.ClusterStripsWtot_Electron
415 ElectronMediumHI = (ElectronLooseHI
416 | 1 << BitDefElectron.ClusterMiddleEratio33_Electron
417 | 1 << BitDefElectron.ClusterBackEnergyFraction_Electron
418 | 1 << BitDefElectron.ClusterStripsEratio_Electron
419 | 1 << BitDefElectron.ClusterStripsDeltaEmax2_Electron
420 | 1 << BitDefElectron.ClusterStripsDeltaE_Electron
421 | 1 << BitDefElectron.ClusterStripsFracm_Electron
422 | 1 << BitDefElectron.ClusterStripsWeta1c_Electron
425 if not ConfigFilePath:
426 ConfigFilePath = flags.Trigger.egamma.electronHIPidVersion
429 'medium':
'AsgElectronIsEMSelectorHIMedium',
430 'loose':
'AsgElectronIsEMSelectorHILoose',
431 'mergedtight' :
'AsgElectronIsEMSelectorMergedTight',
434 ElectronToolConfigFile = {
435 'medium':
'ElectronIsEMMediumSelectorCutDefs.conf',
436 'loose':
'ElectronIsEMLooseSelectorCutDefs.conf',
437 'mergedtight' :
'ElectronIsEMMergedTightSelectorCutDefs.conf',
441 'medium': ElectronMediumHI,
442 'loose': ElectronLooseHI,
443 'mergedtight' : egammaPID.ElectronTightHLT,
446 for sel, name
in SelectorNames.items():
447 SelectorTool = CompFactory.AsgElectronIsEMSelector(name)
448 SelectorTool.ConfigFile = ConfigFilePath +
'/' + ElectronToolConfigFile[sel]
449 SelectorTool.isEMMask = ElectronMaskBits[sel]
450 acc.addPublicTool(SelectorTool)