ATLAS Offline Software
Classes | Functions
TrigEgammaForwardFastCaloHypoTool Namespace Reference

Classes

class  TrigEgammaForwardFastCaloHypoToolConfig
 

Functions

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

Function Documentation

◆ _IncTool()

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

Definition at line 90 of file TrigEgammaForwardFastCaloHypoTool.py.

90 def _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()

def TrigEgammaForwardFastCaloHypoTool.createTrigEgammaForwardFastCaloHypoAlg (   name,
  sequenceOut 
)

Definition at line 8 of file TrigEgammaForwardFastCaloHypoTool.py.

8 def 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()

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

Definition at line 96 of file TrigEgammaForwardFastCaloHypoTool.py.

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 
TrigEgammaForwardFastCaloHypoTool._IncTool
def _IncTool(name, cand, threshold, sel, trackinfo, noringerinfo)
Definition: TrigEgammaForwardFastCaloHypoTool.py:90
TrigEgammaForwardFastCaloHypoTool.TrigEgammaForwardFastCaloHypoToolFromDict
def TrigEgammaForwardFastCaloHypoToolFromDict(d)
Definition: TrigEgammaForwardFastCaloHypoTool.py:96
TrigEgammaForwardFastCaloHypoTool.createTrigEgammaForwardFastCaloHypoAlg
def createTrigEgammaForwardFastCaloHypoAlg(name, sequenceOut)
Definition: TrigEgammaForwardFastCaloHypoTool.py:8