Public Member Functions | Public Attributes | List of all members
ValidateOpDetReco.Hit Class Reference
Inheritance diagram for ValidateOpDetReco.Hit:

Public Member Functions

def __init__ (self, tree)
 
def __lt__ (self, other)
 
def __le__ (self, other)
 
def __gt__ (self, other)
 
def __ge__ (self, other)
 
def __eq__ (self, other)
 
def __ne__ (self, other)
 
def PrintStr (self)
 

Public Attributes

 EventID
 
 OpChannel
 
 PeakTimeAbs
 
 PeakTime
 
 Frame
 
 Width
 
 Area
 
 Amplitude
 
 PE
 
 FastToTotal
 

Detailed Description

Definition at line 247 of file ValidateOpDetReco.py.

Constructor & Destructor Documentation

def ValidateOpDetReco.Hit.__init__ (   self,
  tree 
)

Definition at line 249 of file ValidateOpDetReco.py.

249  def __init__(self, tree):
250  self.EventID = tree.EventID
251  self.OpChannel = tree.OpChannel
252  self.PeakTimeAbs = tree.PeakTimeAbs
253  self.PeakTime = tree.PeakTime
254  self.Frame = tree.Frame
255  self.Width = tree.Width
256  self.Area = tree.Area
257  self.Amplitude = tree.Amplitude
258  self.PE = tree.PE
259  self.FastToTotal = tree.FastToTotal
260 
261 
def __init__(self, tree)

Member Function Documentation

def ValidateOpDetReco.Hit.__eq__ (   self,
  other 
)

Definition at line 282 of file ValidateOpDetReco.py.

282  def __eq__(self, other):
283  if not isinstance(other, Hit):
284  return NotImplemented
285  if self.EventID != other.EventID: return False
286  if self.OpChannel != other.OpChannel: return False
287  failures = ListFailures(self, other)
288  if "PeakTimeAbs" in failures \
289  or "PeakTime" in failures: return False
290  if len(failures) > 0: return False
291  return True
292 
def __eq__(self, other)
def ListFailures(left, right)
def ValidateOpDetReco.Hit.__ge__ (   self,
  other 
)

Definition at line 277 of file ValidateOpDetReco.py.

277  def __ge__(self, other):
278  if not isinstance(other, Hit):
279  return NotImplemented
280  return self.PeakTimeAbs >= other.PeakTimeAbs
281 
def __ge__(self, other)
def ValidateOpDetReco.Hit.__gt__ (   self,
  other 
)

Definition at line 272 of file ValidateOpDetReco.py.

272  def __gt__(self, other):
273  if not isinstance(other, Hit):
274  return NotImplemented
275  return self.PeakTimeAbs > other.PeakTimeAbs
276 
def __gt__(self, other)
def ValidateOpDetReco.Hit.__le__ (   self,
  other 
)

Definition at line 267 of file ValidateOpDetReco.py.

267  def __le__(self, other):
268  if not isinstance(other, Hit):
269  return NotImplemented
270  return self.PeakTimeAbs <= other.PeakTimeAbs
271 
def __le__(self, other)
def ValidateOpDetReco.Hit.__lt__ (   self,
  other 
)

Definition at line 262 of file ValidateOpDetReco.py.

262  def __lt__(self, other):
263  if not isinstance(other, Hit):
264  return NotImplemented
265  return self.PeakTimeAbs < other.PeakTimeAbs
266 
def __lt__(self, other)
def ValidateOpDetReco.Hit.__ne__ (   self,
  other 
)

Definition at line 293 of file ValidateOpDetReco.py.

293  def __ne__(self, other):
294  result = self.__eq__(other)
295  if result is NotImplemented:
296  return result
297  return not result
298 
def __eq__(self, other)
def __ne__(self, other)
def ValidateOpDetReco.Hit.PrintStr (   self)

Definition at line 299 of file ValidateOpDetReco.py.

299  def PrintStr(self):
300  return "{0:2d} t={1:9.3f} q={2:7.2f}".format(self.OpChannel, self.PeakTimeAbs, self.PE)
301 
302 
303 
304 
static bool format(QChar::Decomposition tag, QString &str, int index, int len)
Definition: qstring.cpp:11496

Member Data Documentation

ValidateOpDetReco.Hit.Amplitude

Definition at line 257 of file ValidateOpDetReco.py.

ValidateOpDetReco.Hit.Area

Definition at line 256 of file ValidateOpDetReco.py.

ValidateOpDetReco.Hit.EventID

Definition at line 250 of file ValidateOpDetReco.py.

ValidateOpDetReco.Hit.FastToTotal

Definition at line 259 of file ValidateOpDetReco.py.

ValidateOpDetReco.Hit.Frame

Definition at line 254 of file ValidateOpDetReco.py.

ValidateOpDetReco.Hit.OpChannel

Definition at line 251 of file ValidateOpDetReco.py.

ValidateOpDetReco.Hit.PE

Definition at line 258 of file ValidateOpDetReco.py.

ValidateOpDetReco.Hit.PeakTime

Definition at line 253 of file ValidateOpDetReco.py.

ValidateOpDetReco.Hit.PeakTimeAbs

Definition at line 252 of file ValidateOpDetReco.py.

ValidateOpDetReco.Hit.Width

Definition at line 255 of file ValidateOpDetReco.py.


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