ATLAS Offline Software
Functions | Variables
python.AsgPhotonIsEMSelectorsConfig Namespace Reference

Functions

def AsgPhotonIsEMSelectorCfg (flags, name, quality, menu=photonPIDmenu.menuCurrentCuts, trigger=False)
 

Variables

string __doc__
 

Function Documentation

◆ AsgPhotonIsEMSelectorCfg()

def python.AsgPhotonIsEMSelectorsConfig.AsgPhotonIsEMSelectorCfg (   flags,
  name,
  quality,
  menu = photonPIDmenu.menuCurrentCuts,
  trigger = False 
)

Definition at line 15 of file AsgPhotonIsEMSelectorsConfig.py.

15 def AsgPhotonIsEMSelectorCfg(flags,
16  name,
17  quality,
18  menu=photonPIDmenu.menuCurrentCuts,
19  trigger = False):
20 
21  mlog = logging.getLogger('AsgPhotonIsEMSelector')
22  mlog.debug('Start configuration')
23  acc = ComponentAccumulator()
24  AsgPhotonIsEMSelector = CompFactory.AsgPhotonIsEMSelector
25 
26  try:
27  if trigger:
28  menu = triggerPhotonPIDmenu.menuCurrentCuts
29  ntuple = TriggerPhotonIsEMMap(quality, menu)
30  else:
31  ntuple = PhotonIsEMMap(quality, menu)
32  mlog.debug('ntuple: %s', ntuple)
33  except KeyError:
34  mlog.error("Photon quality not found."
35  "Please use an egammaIDQuality"
36  "(ElectronPhotonSelectorTools/egammaPIDdefs.h)."
37  "This function only supports standard photon IDs,"
38  "and not electron IDs or forward IDs")
39  raise
40 
41  # Create and instance of the tool
42  tool = AsgPhotonIsEMSelector(name)
43 
44  # # Call the function and configure it with the standard configuration
45  ntuple[1](tool)
46  tool.isEMMask = ntuple[0]
47 
48  mlog.debug('isEMMask: %x', tool.isEMMask)
49 
50  acc.setPrivateTools(tool)
51  return acc
52 

Variable Documentation

◆ __doc__

string python.AsgPhotonIsEMSelectorsConfig.__doc__
private
Initial value:
1 = """Configure the AsgPhotonIsEMSelector with the quality cuts
2  and allow for (re-)setting of all provided cuts."""

Definition at line 3 of file AsgPhotonIsEMSelectorsConfig.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.PhotonIsEMSelectorMapping.PhotonIsEMMap
def PhotonIsEMMap(quality, menu)
Definition: PhotonIsEMSelectorMapping.py:74
TriggerPhotonIsEMSelectorMapping.TriggerPhotonIsEMMap
def TriggerPhotonIsEMMap(quality, menu)
Definition: TriggerPhotonIsEMSelectorMapping.py:37
python.AsgPhotonIsEMSelectorsConfig.AsgPhotonIsEMSelectorCfg
def AsgPhotonIsEMSelectorCfg(flags, name, quality, menu=photonPIDmenu.menuCurrentCuts, trigger=False)
Definition: AsgPhotonIsEMSelectorsConfig.py:15
AsgPhotonIsEMSelector
Photon isEM selector.
Definition: AsgPhotonIsEMSelector.h:41