ATLAS Offline Software
Loading...
Searching...
No Matches
python.AsgElectronLikelihoodToolsConfig Namespace Reference

Functions

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

Variables

str __doc__

Function Documentation

◆ AsgElectronLikelihoodToolCfg()

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

Definition at line 13 of file AsgElectronLikelihoodToolsConfig.py.

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

Variable Documentation

◆ __doc__

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

Definition at line 3 of file AsgElectronLikelihoodToolsConfig.py.