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

Classes

class  TrigEgammaPrecisionPhotonHypoToolConfig

Functions

 TrigEgammaPrecisionPhotonHypoAlgCfg (flags, name, sequenceOut, **kwargs)
 same (val, tool)
 _IncTool (flags, name, monGroups, cpart, tool=None)
 TrigEgammaPrecisionPhotonHypoToolFromDict (flags, d, tool=None)

Function Documentation

◆ _IncTool()

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

Definition at line 158 of file TrigEgammaPrecisionPhotonHypoTool.py.

158def _IncTool( flags, name, monGroups, cpart, tool=None ):
159 config = TrigEgammaPrecisionPhotonHypoToolConfig(name, monGroups, cpart, tool=tool)
160 config.compile(flags)
161 return config.tool()
162
163
164

◆ same()

python.TrigEgammaPrecisionPhotonHypoTool.same ( val,
tool )

Definition at line 33 of file TrigEgammaPrecisionPhotonHypoTool.py.

33def same( val , tool):
34 return [val]*( len( tool.EtaBins ) - 1 )
35
36
37#
38# For photons
39#

◆ TrigEgammaPrecisionPhotonHypoAlgCfg()

python.TrigEgammaPrecisionPhotonHypoTool.TrigEgammaPrecisionPhotonHypoAlgCfg ( flags,
name,
sequenceOut,
** kwargs )

Definition at line 12 of file TrigEgammaPrecisionPhotonHypoTool.py.

12def TrigEgammaPrecisionPhotonHypoAlgCfg(flags, name, sequenceOut,**kwargs ):
13 acc = ComponentAccumulator()
14 from ElectronPhotonSelectorTools.AsgPhotonIsEMSelectorsConfig import (AsgPhotonIsEMSelectorCfg)
15 from TriggerMenuMT.HLT.Photon.TriggerPhotonIsEMSelectorMapping import (triggerPhotonPIDmenu)
16
17 if "PhotonIsEMSelectorTools" not in kwargs:
18 LoosePhotonSelector = acc.popToolsAndMerge(AsgPhotonIsEMSelectorCfg(flags, "LoosePhotonSelector", egammaPID.PhotonIDLoose, triggerPhotonPIDmenu.menuCurrentCuts, trigger = True))
19 MediumPhotonSelector = acc.popToolsAndMerge(AsgPhotonIsEMSelectorCfg(flags, "MediumPhotonSelector", egammaPID.PhotonIDMedium, triggerPhotonPIDmenu.menuCurrentCuts, trigger = True))
20 TightPhotonSelector = acc.popToolsAndMerge(AsgPhotonIsEMSelectorCfg(flags, "TightPhotonSelector", egammaPID.PhotonIDTight, triggerPhotonPIDmenu.menuCurrentCuts, trigger = True))
21 kwargs["PhotonIsEMSelectorTools"] = [TightPhotonSelector, MediumPhotonSelector, LoosePhotonSelector]
22 if "IsEMNames" not in kwargs:
23 kwargs["IsEMNames"]=['tight','medium','loose']
24
25 if "Photons" not in kwargs:
26 kwargs["Photons"] = sequenceOut
27
28 hypoAlg = CompFactory.TrigEgammaPrecisionPhotonHypoAlg(name, **kwargs)
29 acc.addEventAlgo( hypoAlg )
30 return acc
31
32

◆ TrigEgammaPrecisionPhotonHypoToolFromDict()

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

Definition at line 165 of file TrigEgammaPrecisionPhotonHypoTool.py.

165def TrigEgammaPrecisionPhotonHypoToolFromDict(flags, d , tool=None):
166 """ Use menu decoded chain dictionary to configure the tool """
167 cparts = [i for i in d['chainParts'] if ((i['signature']=='Electron') or (i['signature']=='Photon'))]
168 return _IncTool( flags, d['chainName'], d['monGroups'], cparts[0], tool=tool )
169
170
171