Public Member Functions | Public Attributes | List of all members
ValidateOpDetReco.Flash Class Reference

Define objects #. More...

Inheritance diagram for ValidateOpDetReco.Flash:

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
 
 YCenter
 
 ZCenter
 
 YWidth
 
 ZWidth
 
 FlashFrame
 
 FlashTime
 
 AbsTime
 
 InBeamFrame
 
 OnBeamTime
 
 TotalPE
 

Detailed Description

Define objects #.

Definition at line 119 of file ValidateOpDetReco.py.

Constructor & Destructor Documentation

def ValidateOpDetReco.Flash.__init__ (   self,
  tree 
)

Definition at line 121 of file ValidateOpDetReco.py.

121  def __init__(self, tree):
122  self.EventID = tree.EventID
123  self.FlashID = tree.FlashID
124  self.YCenter = tree.YCenter
125  self.ZCenter = tree.ZCenter
126  self.YWidth = tree.YWidth
127  self.ZWidth = tree.ZWidth
128  self.FlashFrame = 0 #tree.FlashFrame
129  self.FlashTime = tree.FlashTime
130  self.AbsTime = tree.AbsTime
131  self.InBeamFrame = tree.InBeamFrame
132  self.OnBeamTime = tree.OnBeamTime
133  self.TotalPE = tree.TotalPE
134 

Member Function Documentation

def ValidateOpDetReco.Flash.__eq__ (   self,
  other 
)

Definition at line 156 of file ValidateOpDetReco.py.

156  def __eq__(self, other):
157  if not isinstance(other, Flash):
158  return NotImplemented
159 
160  if self.EventID != other.EventID: return False
161 
162  failures = ListFailures(self, other)
163  if "AbsTime" in failures or "FlashTime" in failures: return False
164 
165  if len(failures) > 3:
166  return False
167 
168  return True
169 
def ListFailures(left, right)
def ValidateOpDetReco.Flash.__ge__ (   self,
  other 
)

Definition at line 150 of file ValidateOpDetReco.py.

150  def __ge__(self, other):
151  if not isinstance(other, Flash):
152  return NotImplemented
153  return self.AbsTime >= other.AbsTime
154 
155 
def ValidateOpDetReco.Flash.__gt__ (   self,
  other 
)

Definition at line 145 of file ValidateOpDetReco.py.

145  def __gt__(self, other):
146  if not isinstance(other, Flash):
147  return NotImplemented
148  return self.AbsTime > other.AbsTime
149 
def ValidateOpDetReco.Flash.__le__ (   self,
  other 
)

Definition at line 140 of file ValidateOpDetReco.py.

140  def __le__(self, other):
141  if not isinstance(other, Flash):
142  return NotImplemented
143  return self.AbsTime <= other.AbsTime
144 
def ValidateOpDetReco.Flash.__lt__ (   self,
  other 
)

Definition at line 135 of file ValidateOpDetReco.py.

135  def __lt__(self, other):
136  if not isinstance(other, Flash):
137  return NotImplemented
138  return self.AbsTime < other.AbsTime
139 
def ValidateOpDetReco.Flash.__ne__ (   self,
  other 
)

Definition at line 170 of file ValidateOpDetReco.py.

170  def __ne__(self, other):
171  result = self.__eq__(other)
172  if result is NotImplemented:
173  return result
174  return not result
175 
def ValidateOpDetReco.Flash.PrintStr (   self)

Definition at line 176 of file ValidateOpDetReco.py.

176  def PrintStr(self):
177  return "t={0.AbsTime:9.3f} q={0.TotalPE:7.2f} FlashID={0.FlashID:2} Frame={0.FlashFrame:1}".format(self)
178 
179 
static bool format(QChar::Decomposition tag, QString &str, int index, int len)
Definition: qstring.cpp:11496

Member Data Documentation

ValidateOpDetReco.Flash.AbsTime

Definition at line 130 of file ValidateOpDetReco.py.

ValidateOpDetReco.Flash.EventID

Definition at line 122 of file ValidateOpDetReco.py.

ValidateOpDetReco.Flash.FlashFrame

Definition at line 128 of file ValidateOpDetReco.py.

ValidateOpDetReco.Flash.FlashID

Definition at line 123 of file ValidateOpDetReco.py.

ValidateOpDetReco.Flash.FlashTime

Definition at line 129 of file ValidateOpDetReco.py.

ValidateOpDetReco.Flash.InBeamFrame

Definition at line 131 of file ValidateOpDetReco.py.

ValidateOpDetReco.Flash.OnBeamTime

Definition at line 132 of file ValidateOpDetReco.py.

ValidateOpDetReco.Flash.TotalPE

Definition at line 133 of file ValidateOpDetReco.py.

ValidateOpDetReco.Flash.YCenter

Definition at line 124 of file ValidateOpDetReco.py.

ValidateOpDetReco.Flash.YWidth

Definition at line 126 of file ValidateOpDetReco.py.

ValidateOpDetReco.Flash.ZCenter

Definition at line 125 of file ValidateOpDetReco.py.

ValidateOpDetReco.Flash.ZWidth

Definition at line 127 of file ValidateOpDetReco.py.


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