|
| dict | EM = {"e", "electron"} |
| dict | GAMMA = {"g", "photon"} |
|
| | __chain = trigger |
| | __legs = HLTChainInfo(trigger) |
| dict | __sigs = {leg.signature.lower() for leg in self.__legs} |
Definition at line 8 of file TrigEgammaInfo.py.
◆ __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
◆ chain()
| python.TrigEgammaInfo.TrigEgammaInfo.chain |
( |
| self | ) |
|
◆ isElectron()
| python.TrigEgammaInfo.TrigEgammaInfo.isElectron |
( |
| self | ) |
|
Definition at line 28 of file TrigEgammaInfo.py.
29 sigs = self.__sigs
30 return bool(sigs & self.EM) and not (sigs & self.GAMMA)
31
bool isElectron(const T &p)
◆ 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.
33 sigs = self.__sigs
34 return bool(sigs & self.GAMMA) and not (sigs & self.EM)
35
bool isPhoton(const T &p)
◆ 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 | ) |
|
◆ 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:
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.
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:
50 thresholdValue = self.__legs.threshold
51 thresholdString = str(thresholdValue)
52
53 return thresholdString
54
◆ __chain
| python.TrigEgammaInfo.TrigEgammaInfo.__chain = trigger |
|
private |
◆ __legs
| python.TrigEgammaInfo.TrigEgammaInfo.__legs = HLTChainInfo(trigger) |
|
private |
◆ __sigs
| dict python.TrigEgammaInfo.TrigEgammaInfo.__sigs = {leg.signature.lower() for leg in self.__legs} |
|
private |
◆ EM
| python.TrigEgammaInfo.TrigEgammaInfo.EM = {"e", "electron"} |
|
static |
◆ GAMMA
| python.TrigEgammaInfo.TrigEgammaInfo.GAMMA = {"g", "photon"} |
|
static |
The documentation for this class was generated from the following file: