ATLAS Offline Software
Loading...
Searching...
No Matches
TrigEgammaForwardFastCaloHypoTool Namespace Reference

Classes

class  TrigEgammaForwardFastCaloHypoToolConfig

Functions

 createTrigEgammaForwardFastCaloHypoAlg (name, sequenceOut)
 _IncTool (name, cand, threshold, sel, trackinfo, noringerinfo)
 TrigEgammaForwardFastCaloHypoToolFromDict (d)

Function Documentation

◆ _IncTool()

TrigEgammaForwardFastCaloHypoTool._IncTool ( name,
cand,
threshold,
sel,
trackinfo,
noringerinfo )
protected

Definition at line 90 of file TrigEgammaForwardFastCaloHypoTool.py.

90def _IncTool(name, cand, threshold, sel, trackinfo, noringerinfo):
91 config = TrigEgammaForwardFastCaloHypoToolConfig(name, cand, threshold, sel, trackinfo, noringerinfo )
92 config.compile()
93 return config.tool()
94
95

◆ createTrigEgammaForwardFastCaloHypoAlg()

TrigEgammaForwardFastCaloHypoTool.createTrigEgammaForwardFastCaloHypoAlg ( name,
sequenceOut )

Definition at line 8 of file TrigEgammaForwardFastCaloHypoTool.py.

8def createTrigEgammaForwardFastCaloHypoAlg(name, sequenceOut):
9
10 # make the Hypo alg
11 from AthenaConfiguration.ComponentFactory import CompFactory
12 theFastCaloHypo = CompFactory.TrigEgammaForwardFastCaloHypoAlg(name)
13 theFastCaloHypo.CaloClusters = sequenceOut
14 return theFastCaloHypo
15
16
17

◆ TrigEgammaForwardFastCaloHypoToolFromDict()

TrigEgammaForwardFastCaloHypoTool.TrigEgammaForwardFastCaloHypoToolFromDict ( d)
Use menu decoded chain dictionary to configure the tool 

Definition at line 96 of file TrigEgammaForwardFastCaloHypoTool.py.

96def TrigEgammaForwardFastCaloHypoToolFromDict( d ):
97 """ Use menu decoded chain dictionary to configure the tool """
98 cparts = [i for i in d['chainParts'] if ((i['signature']=='Electron') or (i['signature']=='Photon'))]
99
100 def __th(cpart):
101 return cpart['threshold']
102
103 def __sel(cpart):
104 return cpart['addInfo'][0] if cpart['addInfo'] else cpart['IDinfo']
105
106 def __cand(cpart):
107 return cpart['trigType']
108
109 def __trackinfo(cpart):
110 return cpart['trkInfo'] if cpart['trkInfo'] else ''
111
112 def __noringer(cpart):
113 return cpart['L2IDAlg'] if cpart['trigType']=='e' else ''
114
115 name = d['chainName']
116
117 return _IncTool( name, __cand( cparts[0]), __th( cparts[0]), __sel( cparts[0]), __trackinfo(cparts[0]), __noringer(cparts[0]))
118
119