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

Classes

class  TrigEgammaPrecisionPhotonCaloIsoHypoToolConfig

Functions

 createTrigEgammaPrecisionPhotonCaloIsoHypoAlg (name, sequenceOut, sequenceIn)
 _IncTool (flags, name, monGroups, cpart, tool=None)
 TrigEgammaPrecisionPhotonCaloIsoHypoToolFromDict (flags, d, tool=None)

Function Documentation

◆ _IncTool()

python.TrigEgammaPrecisionPhotonCaloIsoHypoTool._IncTool ( flags,
name,
monGroups,
cpart,
tool = None )
protected

Definition at line 147 of file TrigEgammaPrecisionPhotonCaloIsoHypoTool.py.

147def _IncTool( flags, name, monGroups, cpart, tool=None ):
148 config = TrigEgammaPrecisionPhotonCaloIsoHypoToolConfig(name, monGroups, cpart, tool=tool)
149 config.compile(flags)
150 return config.tool()
151
152
153

◆ createTrigEgammaPrecisionPhotonCaloIsoHypoAlg()

python.TrigEgammaPrecisionPhotonCaloIsoHypoTool.createTrigEgammaPrecisionPhotonCaloIsoHypoAlg ( name,
sequenceOut,
sequenceIn )

Definition at line 9 of file TrigEgammaPrecisionPhotonCaloIsoHypoTool.py.

9def createTrigEgammaPrecisionPhotonCaloIsoHypoAlg(name, sequenceOut, sequenceIn):
10
11 thePrecisionPhotonCaloIsoHypo = CompFactory.TrigEgammaPrecisionPhotonCaloIsoHypoAlg(name)
12 thePrecisionPhotonCaloIsoHypo.Photons = sequenceIn # Key of the input photon container
13 thePrecisionPhotonCaloIsoHypo.IsoPhotons = sequenceOut # key of the output isolated photon container
14 return thePrecisionPhotonCaloIsoHypo
15
16
17#
18# For photons
19#

◆ TrigEgammaPrecisionPhotonCaloIsoHypoToolFromDict()

python.TrigEgammaPrecisionPhotonCaloIsoHypoTool.TrigEgammaPrecisionPhotonCaloIsoHypoToolFromDict ( flags,
d,
tool = None )
Use menu decoded chain dictionary to configure the tool 

Definition at line 154 of file TrigEgammaPrecisionPhotonCaloIsoHypoTool.py.

154def TrigEgammaPrecisionPhotonCaloIsoHypoToolFromDict(flags, d, tool=None):
155 """ Use menu decoded chain dictionary to configure the tool """
156 cparts = [i for i in d['chainParts'] if ((i['signature']=='Electron') or (i['signature']=='Photon'))]
157 return _IncTool( flags, d['chainName'], d['monGroups'], cparts[0], tool=tool )