ATLAS Offline Software
Functions | Variables
python.AsgElectronIsEMSelectorsConfig Namespace Reference

Functions

def AsgElectronIsEMSelectorCfg (flags, name, quality, menu=electronPIDmenu.menuDC14)
 

Variables

string __doc__
 

Function Documentation

◆ AsgElectronIsEMSelectorCfg()

def python.AsgElectronIsEMSelectorsConfig.AsgElectronIsEMSelectorCfg (   flags,
  name,
  quality,
  menu = electronPIDmenu.menuDC14 
)

Definition at line 14 of file AsgElectronIsEMSelectorsConfig.py.

15  flags,
16  name,
17  quality,
18  menu=electronPIDmenu.menuDC14):
19 
20  mlog = logging.getLogger('AsgElectronIsEMSelector')
21  mlog.debug('Start configuration')
22 
23  AsgElectronIsEMSelector = CompFactory.AsgElectronIsEMSelector
24  acc = ComponentAccumulator()
25  try:
26  ntuple = ElectronIsEMMap(quality, menu)
27  mlog.debug('ntuple: %s', ntuple)
28  except KeyError:
29  mlog.error("Electron quality not found. Please use an egammaIDQuality"
30  "(ElectronPhotonSelectorTools/egammaPIDdefs.h)."
31  "This function only supports standard electron IDs,"
32  "and not photon or forward IDs")
33  raise
34 
35  # Create and instance of the tool
36  tool = AsgElectronIsEMSelector(name)
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.AsgElectronIsEMSelectorsConfig.__doc__
private
Initial value:
1 = """Configure the AsgElectronIsEMSelector with the quality cuts
2  and allow for (re-)setting of all provided cuts."""

Definition at line 4 of file AsgElectronIsEMSelectorsConfig.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
AsgElectronIsEMSelector
Tool to select objects.
Definition: AsgElectronIsEMSelector.h:39
python.ElectronIsEMSelectorMapping.ElectronIsEMMap
def ElectronIsEMMap(quality, menu)
Definition: ElectronIsEMSelectorMapping.py:51
python.AsgElectronIsEMSelectorsConfig.AsgElectronIsEMSelectorCfg
def AsgElectronIsEMSelectorCfg(flags, name, quality, menu=electronPIDmenu.menuDC14)
Definition: AsgElectronIsEMSelectorsConfig.py:14