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

Functions

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

Variables

str __doc__

Function Documentation

◆ AsgPhotonIsEMSelectorCfg()

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

Definition at line 15 of file AsgPhotonIsEMSelectorsConfig.py.

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
Photon isEM selector.

Variable Documentation

◆ __doc__

str 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.