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

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
 
 FlashID
 
 HitID
 
 OpChannel
 
 HitPeakTimeAbs
 
 HitPeakTime
 
 HitPE
 
 FlashPE
 
 FlashTimeAbs
 
 FlashTime
 
 HitFrame
 
 FlashFrame
 

Detailed Description

Definition at line 180 of file ValidateOpDetReco.py.

Constructor & Destructor Documentation

def ValidateOpDetReco.Assoc.__init__ (   self,
  tree 
)

Definition at line 182 of file ValidateOpDetReco.py.

182  def __init__(self, tree):
183  self.EventID = tree.EventID
184  self.FlashID = tree.FlashID
185  self.HitID = tree.HitID
186  self.OpChannel = tree.OpChannel
187  self.HitPeakTimeAbs = tree.HitPeakTimeAbs
188  self.HitPeakTime = tree.HitPeakTime
189  self.HitPE = tree.HitPE
190  self.FlashPE = tree.FlashPE
191  self.FlashTimeAbs = tree.FlashTimeAbs
192  self.FlashTime = tree.FlashTime
193  self.HitFrame = tree.HitFrame
194  self.FlashFrame = tree.FlashFrame
195 

Member Function Documentation

def ValidateOpDetReco.Assoc.__eq__ (   self,
  other 
)

Definition at line 224 of file ValidateOpDetReco.py.

224  def __eq__(self, other):
225  if not isinstance(other, Assoc):
226  return NotImplemented
227  if self.EventID != other.EventID: return False
228  if self.OpChannel != other.OpChannel: return False
229  failures = ListFailures(self, other)
230  if "HitPeakTimeAbs" in failures \
231  or "HitPeakTime" in failures \
232  or "PE" in failures : return False
233  return True
234 
def ListFailures(left, right)
def ValidateOpDetReco.Assoc.__ge__ (   self,
  other 
)

Definition at line 219 of file ValidateOpDetReco.py.

219  def __ge__(self, other):
220  if not isinstance(other, Assoc):
221  return NotImplemented
222  return not (self < other)
223 
def ValidateOpDetReco.Assoc.__gt__ (   self,
  other 
)

Definition at line 214 of file ValidateOpDetReco.py.

214  def __gt__(self, other):
215  if not isinstance(other, Assoc):
216  return NotImplemented
217  return not (self <= other)
218 
def ValidateOpDetReco.Assoc.__le__ (   self,
  other 
)

Definition at line 205 of file ValidateOpDetReco.py.

205  def __le__(self, other):
206  if not isinstance(other, Assoc):
207  return NotImplemented
208  if self < other:
209  return True
210  if self.HitPeakTimeAbs == other.HitPeakTimeAbs and self.OpChannel == other.OpChannel:
211  return true
212  return False
213 
def ValidateOpDetReco.Assoc.__lt__ (   self,
  other 
)

Definition at line 196 of file ValidateOpDetReco.py.

196  def __lt__(self, other):
197  if not isinstance(other, Assoc):
198  return NotImplemented
199  if self.HitPeakTimeAbs < other.HitPeakTimeAbs:
200  return true
201  if self.HitPeakTimeAbs == other.HitPeakTimeAbs and self.OpChannel < other.OpChannel:
202  return true
203  return False
204 
def ValidateOpDetReco.Assoc.__ne__ (   self,
  other 
)

Definition at line 235 of file ValidateOpDetReco.py.

235  def __ne__(self, other):
236  result = self.__eq__(other)
237  if result is NotImplemented:
238  return result
239  return not result
240 
def ValidateOpDetReco.Assoc.PrintStr (   self)

Definition at line 241 of file ValidateOpDetReco.py.

241  def PrintStr(self):
242  return "{0.OpChannel:2d} t={0.HitPeakTimeAbs:8.3f}/{0.FlashTimeAbs:8.3f} q={0.HitPE:7.2f}/{0.FlashPE:7.2f} frame={0.HitFrame:1}/{0.FlashFrame:1}".format(self)
static bool format(QChar::Decomposition tag, QString &str, int index, int len)
Definition: qstring.cpp:11496

Member Data Documentation

ValidateOpDetReco.Assoc.EventID

Definition at line 183 of file ValidateOpDetReco.py.

ValidateOpDetReco.Assoc.FlashFrame

Definition at line 194 of file ValidateOpDetReco.py.

ValidateOpDetReco.Assoc.FlashID

Definition at line 184 of file ValidateOpDetReco.py.

ValidateOpDetReco.Assoc.FlashPE

Definition at line 190 of file ValidateOpDetReco.py.

ValidateOpDetReco.Assoc.FlashTime

Definition at line 192 of file ValidateOpDetReco.py.

ValidateOpDetReco.Assoc.FlashTimeAbs

Definition at line 191 of file ValidateOpDetReco.py.

ValidateOpDetReco.Assoc.HitFrame

Definition at line 193 of file ValidateOpDetReco.py.

ValidateOpDetReco.Assoc.HitID

Definition at line 185 of file ValidateOpDetReco.py.

ValidateOpDetReco.Assoc.HitPE

Definition at line 189 of file ValidateOpDetReco.py.

ValidateOpDetReco.Assoc.HitPeakTime

Definition at line 188 of file ValidateOpDetReco.py.

ValidateOpDetReco.Assoc.HitPeakTimeAbs

Definition at line 187 of file ValidateOpDetReco.py.

ValidateOpDetReco.Assoc.OpChannel

Definition at line 186 of file ValidateOpDetReco.py.


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