ATLAS Offline Software
Public Member Functions | Public Attributes | Private Attributes | List of all members
drawFromPickle.SingleWedgePadTrigger Class Reference
Inheritance diagram for drawFromPickle.SingleWedgePadTrigger:
Collaboration diagram for drawFromPickle.SingleWedgePadTrigger:

Public Member Functions

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)
 

Public Attributes

 pads
 
 font
 

Private Attributes

 _labels
 

Detailed Description

Definition at line 150 of file drawFromPickle.py.

Constructor & Destructor Documentation

◆ __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)

Member Function Documentation

◆ draw()

def drawFromPickle.SingleWedgePadTrigger.draw (   self,
  view 
)

Definition at line 160 of file drawFromPickle.py.

160  def draw(self, view) :
161  for p in self.pads : p.draw(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, '')
178  text.SetNDC()
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())
183  y = y + dy
184  text.DrawLatex(x, y, (('Pivot' if self.isPivot() else '') +
185  ('Confirm' if self.isConfirm() else '') +
186  ", %d/4"%len(self.pads) +
187  ' : '+self.pattern))
188  y = y + dy
189  ieta, iphi = self.halfPadIndices
190  text.DrawLatex(x, y, "Half-pad indices : (%d, %d)"%(ieta, iphi))
191 
192  return y+dy
193 
194 #_________________________________________________

◆ 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)

Definition at line 159 of file drawFromPickle.py.

159  def sector(self) : return self.pads[0].sector

◆ setFont()

def drawFromPickle.SingleWedgePadTrigger.setFont (   self,
  font 
)

Definition at line 154 of file drawFromPickle.py.

154  def setFont(self, font) :
155  self.font = font
156  for p in self.pads : p.setFont(font)

Member Data Documentation

◆ _labels

drawFromPickle.SingleWedgePadTrigger._labels
private

Definition at line 181 of file drawFromPickle.py.

◆ font

drawFromPickle.SingleWedgePadTrigger.font

Definition at line 155 of file drawFromPickle.py.

◆ pads

drawFromPickle.SingleWedgePadTrigger.pads

Definition at line 152 of file drawFromPickle.py.


The documentation for this class was generated from the following file:
max
#define max(a, b)
Definition: cfImp.cxx:41
dumpHVPathFromNtuple.append
bool append
Definition: dumpHVPathFromNtuple.py:91
LArG4FSStartPointFilterLegacy.draw
draw
Definition: LArG4FSStartPointFilterLegacy.py:20
min
#define min(a, b)
Definition: cfImp.cxx:40
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18