ATLAS Offline Software
Loading...
Searching...
No Matches
python.TrigEgammaInfo.TrigEgammaInfo Class Reference
Inheritance diagram for python.TrigEgammaInfo.TrigEgammaInfo:
Collaboration diagram for python.TrigEgammaInfo.TrigEgammaInfo:

Public Member Functions

 __init__ (self, trigger)
 chain (self)
 legs (self)
 signatures (self)
 isElectron (self)
 isPhoton (self)
 isTagAndProbeZeeg (self)
 threshold (self)
 pidname (self)
 isIsolated (self)

Static Public Attributes

dict EM = {"e", "electron"}
dict GAMMA = {"g", "photon"}

Private Attributes

 __chain = trigger
 __legs = HLTChainInfo(trigger)
dict __sigs = {leg.signature.lower() for leg in self.__legs}

Detailed Description

Definition at line 8 of file TrigEgammaInfo.py.

Constructor & Destructor Documentation

◆ __init__()

python.TrigEgammaInfo.TrigEgammaInfo.__init__ ( self,
trigger )

Definition at line 14 of file TrigEgammaInfo.py.

14 def __init__(self, trigger):
15 self.__chain = trigger
16 self.__legs = HLTChainInfo(trigger)
17 self.__sigs = {leg.signature.lower() for leg in self.__legs}
18

Member Function Documentation

◆ chain()

python.TrigEgammaInfo.TrigEgammaInfo.chain ( self)

Definition at line 19 of file TrigEgammaInfo.py.

19 def chain(self):
20 return self.__chain
21

◆ isElectron()

python.TrigEgammaInfo.TrigEgammaInfo.isElectron ( self)

Definition at line 28 of file TrigEgammaInfo.py.

28 def isElectron(self):
29 sigs = self.__sigs
30 return bool(sigs & self.EM) and not (sigs & self.GAMMA)
31
bool isElectron(const T &p)
Definition AtlasPID.h:202

◆ isIsolated()

python.TrigEgammaInfo.TrigEgammaInfo.isIsolated ( self)

Definition at line 69 of file TrigEgammaInfo.py.

69 def isIsolated(self):
70 for part_name in ['iloose', 'ivarloose', 'icaloloose', 'icalovloose', 'icalotight']:
71 if part_name in self.chain():
72 return True
73 return False
74
75
76
77

◆ isPhoton()

python.TrigEgammaInfo.TrigEgammaInfo.isPhoton ( self)

Definition at line 32 of file TrigEgammaInfo.py.

32 def isPhoton(self):
33 sigs = self.__sigs
34 return bool(sigs & self.GAMMA) and not (sigs & self.EM)
35
bool isPhoton(const T &p)
Definition AtlasPID.h:376

◆ isTagAndProbeZeeg()

python.TrigEgammaInfo.TrigEgammaInfo.isTagAndProbeZeeg ( self)

Definition at line 36 of file TrigEgammaInfo.py.

36 def isTagAndProbeZeeg(self):
37 sigs = self.__sigs
38 return (
39 "probe" in self.__chain.lower()
40 or (bool(sigs & self.EM) and bool(sigs & self.GAMMA))
41 )
42

◆ legs()

python.TrigEgammaInfo.TrigEgammaInfo.legs ( self)

Definition at line 22 of file TrigEgammaInfo.py.

22 def legs(self):
23 return self.__legs
24

◆ pidname()

python.TrigEgammaInfo.TrigEgammaInfo.pidname ( self)

Definition at line 55 of file TrigEgammaInfo.py.

55 def pidname(self):
56 if not self.__legs:
57 return None
58 pid = None
59
60 if self.isElectron() or self.isPhoton():
61 pid = self.__legs.legParts[0]
62
63 elif self.isTagAndProbeZeeg():
64 if self.__sigs & self.GAMMA: # photon/gamma-like signature
65 pid = self.__legs.legParts[0]
66
67 return pid
68

◆ signatures()

python.TrigEgammaInfo.TrigEgammaInfo.signatures ( self)

Definition at line 25 of file TrigEgammaInfo.py.

25 def signatures(self):
26 return self.__sigs
27

◆ threshold()

python.TrigEgammaInfo.TrigEgammaInfo.threshold ( self)

Definition at line 43 of file TrigEgammaInfo.py.

43 def threshold(self):
44 if self.isElectron() or self.isPhoton():
45 thresholdValue = self.__legs.threshold
46 thresholdString = str(thresholdValue)
47
48 elif self.isTagAndProbeZeeg():
49 if self.__sigs & self.GAMMA: # photon/gamma-like signature
50 thresholdValue = self.__legs.threshold
51 thresholdString = str(thresholdValue)
52
53 return thresholdString
54

Member Data Documentation

◆ __chain

python.TrigEgammaInfo.TrigEgammaInfo.__chain = trigger
private

Definition at line 15 of file TrigEgammaInfo.py.

◆ __legs

python.TrigEgammaInfo.TrigEgammaInfo.__legs = HLTChainInfo(trigger)
private

Definition at line 16 of file TrigEgammaInfo.py.

◆ __sigs

dict python.TrigEgammaInfo.TrigEgammaInfo.__sigs = {leg.signature.lower() for leg in self.__legs}
private

Definition at line 17 of file TrigEgammaInfo.py.

◆ EM

python.TrigEgammaInfo.TrigEgammaInfo.EM = {"e", "electron"}
static

Definition at line 10 of file TrigEgammaInfo.py.

◆ GAMMA

python.TrigEgammaInfo.TrigEgammaInfo.GAMMA = {"g", "photon"}
static

Definition at line 11 of file TrigEgammaInfo.py.


The documentation for this class was generated from the following file: