ATLAS Offline Software
Functions | Variables
python.AsgElectronLikelihoodToolsConfig Namespace Reference

Functions

def AsgElectronLikelihoodToolCfg (flag, name, quality, menu=electronLHmenu.offlineMC21)
 

Variables

string __doc__
 

Function Documentation

◆ AsgElectronLikelihoodToolCfg()

def python.AsgElectronLikelihoodToolsConfig.AsgElectronLikelihoodToolCfg (   flag,
  name,
  quality,
  menu = electronLHmenu.offlineMC21 
)

Definition at line 13 of file AsgElectronLikelihoodToolsConfig.py.

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

Variable Documentation

◆ __doc__

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

Definition at line 3 of file AsgElectronLikelihoodToolsConfig.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.AsgElectronLikelihoodToolsConfig.AsgElectronLikelihoodToolCfg
def AsgElectronLikelihoodToolCfg(flag, name, quality, menu=electronLHmenu.offlineMC21)
Definition: AsgElectronLikelihoodToolsConfig.py:13
AsgElectronLikelihoodTool
Electron selector tool to select objects in Athena using an underlying pure ROOT tool.
Definition: AsgElectronLikelihoodTool.h:30
python.ElectronLikelihoodToolMapping.ElectronLikelihoodMap
def ElectronLikelihoodMap(quality, menu)
Definition: ElectronLikelihoodToolMapping.py:57