|
def | __init__ (self, pads=[], **kargs) |
|
def | setFont (self, font) |
|
def | isPivot (self) |
|
def | isConfirm (self) |
|
def | sector (self) |
|
def | draw (self, view) |
|
def | minMaxPadPar (self, parNames=['',]) |
|
def | minMaxPadX (self) |
|
def | minMaxPadY (self) |
|
def | minMaxPadZ (self) |
|
def | minMaxPadH (self) |
|
def | minMaxPadPhi (self) |
|
def | minMaxPadVar (self, var) |
|
def | drawLabelsLeft (self, x, y, dy) |
|
Definition at line 150 of file drawFromPickle.py.
◆ __init__()
def drawFromPickle.SingleWedgePadTrigger.__init__ |
( |
|
self, |
|
|
|
pads = [] , |
|
|
** |
kargs |
|
) |
| |
Definition at line 151 of file drawFromPickle.py.
151 def __init__(self, pads=[], **kargs) :
152 self.pads = [PadWithHits(**ka)
for ka
in pads]
153 super(SingleWedgePadTrigger, self).
__init__(**kargs)
◆ draw()
def drawFromPickle.SingleWedgePadTrigger.draw |
( |
|
self, |
|
|
|
view |
|
) |
| |
◆ drawLabelsLeft()
def drawFromPickle.SingleWedgePadTrigger.drawLabelsLeft |
( |
|
self, |
|
|
|
x, |
|
|
|
y, |
|
|
|
dy |
|
) |
| |
Definition at line 176 of file drawFromPickle.py.
176 def drawLabelsLeft(self, x, y, dy) :
177 text = r.TLatex( x, y,
'')
179 if hasattr(self,
'font') : text.SetTextFont(self.font)
180 if hasattr(self,
'_labels') : self._labels.
append(text)
181 else : self._labels = [text]
182 text.DrawLatex(x, y,
"Sector %d"%self.sector())
184 text.DrawLatex(x, y, ((
'Pivot' if self.isPivot()
else '') +
185 (
'Confirm' if self.isConfirm()
else '') +
186 ", %d/4"%len(self.pads) +
189 ieta, iphi = self.halfPadIndices
190 text.DrawLatex(x, y,
"Half-pad indices : (%d, %d)"%(ieta, iphi))
◆ isConfirm()
def drawFromPickle.SingleWedgePadTrigger.isConfirm |
( |
|
self | ) |
|
Definition at line 158 of file drawFromPickle.py.
158 def isConfirm(self) :
return not self.isPivot()
◆ isPivot()
def drawFromPickle.SingleWedgePadTrigger.isPivot |
( |
|
self | ) |
|
Definition at line 157 of file drawFromPickle.py.
157 def isPivot(self) :
return self.pads[0].isPivot()
◆ minMaxPadH()
def drawFromPickle.SingleWedgePadTrigger.minMaxPadH |
( |
|
self | ) |
|
Definition at line 168 of file drawFromPickle.py.
168 def minMaxPadH(self) :
return self.minMaxPadPar([
'minH',
'maxH'])
◆ minMaxPadPar()
def drawFromPickle.SingleWedgePadTrigger.minMaxPadPar |
( |
|
self, |
|
|
|
parNames = ['',] |
|
) |
| |
Definition at line 162 of file drawFromPickle.py.
162 def minMaxPadPar(self, parNames=['',]) :
163 values = [getattr(p, pname)
for p
in self.pads
for pname
in parNames]
164 return min(values),
max(values)
◆ minMaxPadPhi()
def drawFromPickle.SingleWedgePadTrigger.minMaxPadPhi |
( |
|
self | ) |
|
Definition at line 169 of file drawFromPickle.py.
169 def minMaxPadPhi(self) :
return self.minMaxPadPar([
'minPhi',
'maxPhi'])
◆ minMaxPadVar()
def drawFromPickle.SingleWedgePadTrigger.minMaxPadVar |
( |
|
self, |
|
|
|
var |
|
) |
| |
Definition at line 170 of file drawFromPickle.py.
170 def minMaxPadVar(self, var) :
171 if var==
'x' :
return self.minMaxPadX()
172 elif var==
'y' :
return self.minMaxPadY()
173 elif var==
'z' :
return self.minMaxPadZ()
174 elif var==
'h' :
return self.minMaxPadH()
175 elif var==
'phi' :
return self.minMaxPadPhi()
◆ minMaxPadX()
def drawFromPickle.SingleWedgePadTrigger.minMaxPadX |
( |
|
self | ) |
|
Definition at line 165 of file drawFromPickle.py.
165 def minMaxPadX(self) :
return self.minMaxPadPar([
'minX',
'maxX'])
◆ minMaxPadY()
def drawFromPickle.SingleWedgePadTrigger.minMaxPadY |
( |
|
self | ) |
|
Definition at line 166 of file drawFromPickle.py.
166 def minMaxPadY(self) :
return self.minMaxPadPar([
'minY',
'maxY'])
◆ minMaxPadZ()
def drawFromPickle.SingleWedgePadTrigger.minMaxPadZ |
( |
|
self | ) |
|
Definition at line 167 of file drawFromPickle.py.
167 def minMaxPadZ(self) :
return self.minMaxPadPar([
'minZ',
'maxZ'])
◆ sector()
def drawFromPickle.SingleWedgePadTrigger.sector |
( |
|
self | ) |
|
◆ setFont()
def drawFromPickle.SingleWedgePadTrigger.setFont |
( |
|
self, |
|
|
|
font |
|
) |
| |
Definition at line 154 of file drawFromPickle.py.
154 def setFont(self, font) :
156 for p
in self.pads : p.setFont(font)
◆ _labels
drawFromPickle.SingleWedgePadTrigger._labels |
|
private |
◆ font
drawFromPickle.SingleWedgePadTrigger.font |
◆ pads
drawFromPickle.SingleWedgePadTrigger.pads |
The documentation for this class was generated from the following file: