ATLAS Offline Software
Classes | Functions
python.TrigEgammaPrecisionPhotonHypoTool Namespace Reference

Classes

class  TrigEgammaPrecisionPhotonHypoToolConfig
 

Functions

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

Function Documentation

◆ _IncTool()

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

Definition at line 158 of file TrigEgammaPrecisionPhotonHypoTool.py.

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

def python.TrigEgammaPrecisionPhotonHypoTool.same (   val,
  tool 
)

Definition at line 33 of file TrigEgammaPrecisionPhotonHypoTool.py.

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

◆ TrigEgammaPrecisionPhotonHypoAlgCfg()

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

Definition at line 12 of file TrigEgammaPrecisionPhotonHypoTool.py.

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

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

Definition at line 165 of file TrigEgammaPrecisionPhotonHypoTool.py.

165 def 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 
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.TrigEgammaPrecisionPhotonHypoTool.TrigEgammaPrecisionPhotonHypoToolFromDict
def TrigEgammaPrecisionPhotonHypoToolFromDict(flags, d, tool=None)
Definition: TrigEgammaPrecisionPhotonHypoTool.py:165
python.TrigEgammaPrecisionPhotonHypoTool.same
def same(val, tool)
Definition: TrigEgammaPrecisionPhotonHypoTool.py:33
python.AsgPhotonIsEMSelectorsConfig.AsgPhotonIsEMSelectorCfg
def AsgPhotonIsEMSelectorCfg(flags, name, quality, menu=photonPIDmenu.menuCurrentCuts, trigger=False)
Definition: AsgPhotonIsEMSelectorsConfig.py:15
python.TrigEgammaPrecisionPhotonHypoTool._IncTool
def _IncTool(flags, name, monGroups, cpart, tool=None)
Definition: TrigEgammaPrecisionPhotonHypoTool.py:158
python.TrigEgammaPrecisionPhotonHypoTool.TrigEgammaPrecisionPhotonHypoAlgCfg
def TrigEgammaPrecisionPhotonHypoAlgCfg(flags, name, sequenceOut, **kwargs)
Definition: TrigEgammaPrecisionPhotonHypoTool.py:12