ATLAS Offline Software
Functions | Variables
python.AsgForwardElectronIsEMSelectorsConfig Namespace Reference

Functions

def AsgForwardElectronIsEMSelectorCfg (flags, name, quality, menu=forwardelectronPIDmenu.menuMC15)
 

Variables

string __doc__
 

Function Documentation

◆ AsgForwardElectronIsEMSelectorCfg()

def python.AsgForwardElectronIsEMSelectorsConfig.AsgForwardElectronIsEMSelectorCfg (   flags,
  name,
  quality,
  menu = forwardelectronPIDmenu.menuMC15 
)

Definition at line 14 of file AsgForwardElectronIsEMSelectorsConfig.py.

15  name,
16  quality,
17  menu=forwardelectronPIDmenu.menuMC15):
18 
19  mlog = logging.getLogger('AsgForwardElectronIsEMSelector')
20  mlog.debug('Start configuration')
21  acc = ComponentAccumulator()
22  AsgForwardElectronIsEMSelector = CompFactory.AsgForwardElectronIsEMSelector
23 
24  try:
25  ntuple = ForwardElectronIsEMMap(quality, menu)
26  mlog.debug('ntuple: %s', ntuple)
27  except KeyError:
28  mlog.error("Fwd Electron quality not found."
29  "Please use an egammaIDQuality"
30  "(ElectronPhotonSelectorTools/egammaPIDdefs.h)."
31  "This function only supports forward IDs,"
32  "and not photon or standard electron IDs")
33  raise
34 
35  # Create and instance of the tool
37 
38  # Call the function and configure it with the standard configuration
39  ntuple[1](tool)
40  tool.isEMMask = ntuple[0]
41 
42  mlog.debug('isEMMask: %x', tool.isEMMask)
43 
44  acc.setPrivateTools(tool)
45  return acc

Variable Documentation

◆ __doc__

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

Definition at line 4 of file AsgForwardElectronIsEMSelectorsConfig.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
AsgForwardElectronIsEMSelector
Electron isEM selector.
Definition: AsgForwardElectronIsEMSelector.h:43
python.AsgForwardElectronIsEMSelectorsConfig.AsgForwardElectronIsEMSelectorCfg
def AsgForwardElectronIsEMSelectorCfg(flags, name, quality, menu=forwardelectronPIDmenu.menuMC15)
Definition: AsgForwardElectronIsEMSelectorsConfig.py:14
python.ForwardElectronIsEMSelectorMapping.ForwardElectronIsEMMap
def ForwardElectronIsEMMap(quality, menu)
Definition: ForwardElectronIsEMSelectorMapping.py:39