CMS 3D CMS Logo

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

Public Member Functions

def __init__ (self, data_block=None)
 
def __len__ (self)
 
def add (self, new_block)
 
def lum_cert (self, units="b^{-1}")
 
def lum_cert_tot (self, units="b^{-1}")
 
def lum_del (self, units="b^{-1}")
 
def lum_del_tot (self, units="b^{-1}")
 
def lum_inst_max (self, units="Hz/b")
 
def lum_rec (self, units="b^{-1}")
 
def lum_rec_tot (self, units="b^{-1}")
 
def sort (self)
 
def time_begin (self)
 
def time_end (self)
 
def times (self)
 

Public Attributes

 data_blocks
 

Detailed Description

A collection of LumiDataBlocks.

Definition at line 208 of file create_public_lumi_plots.py.

Constructor & Destructor Documentation

def create_public_lumi_plots.LumiDataBlockCollection.__init__ (   self,
  data_block = None 
)

Definition at line 211 of file create_public_lumi_plots.py.

211  def __init__(self, data_block=None):
212  if not data_block:
213  self.data_blocks = []
214  else:
215  self.data_blocks = [data_block]
216  # End of __init__().
217 

Member Function Documentation

def create_public_lumi_plots.LumiDataBlockCollection.__len__ (   self)
def create_public_lumi_plots.LumiDataBlockCollection.add (   self,
  new_block 
)

Definition at line 222 of file create_public_lumi_plots.py.

Referenced by counter.Counter.register().

222  def add(self, new_block):
223  self.data_blocks.append(new_block)
224  # End of add().
225 
def create_public_lumi_plots.LumiDataBlockCollection.lum_cert (   self,
  units = "b^{-1}" 
)

Definition at line 259 of file create_public_lumi_plots.py.

References create_public_lumi_plots.LumiDataBlockCollection.data_blocks.

Referenced by create_public_lumi_plots.LumiDataBlockCollection.lum_cert_tot().

259  def lum_cert(self, units="b^{-1}"):
260  res = [i.lum_cert_tot(units) for i in self.data_blocks]
261  # End of lum_cert().
262  return res
263 
def create_public_lumi_plots.LumiDataBlockCollection.lum_cert_tot (   self,
  units = "b^{-1}" 
)

Definition at line 272 of file create_public_lumi_plots.py.

References create_public_lumi_plots.LumiDataPoint.lum_cert, and create_public_lumi_plots.LumiDataBlockCollection.lum_cert().

272  def lum_cert_tot(self, units="b^{-1}"):
273  # End of lum_cert().
274  return sum(self.lum_cert(units))
275 
def create_public_lumi_plots.LumiDataBlockCollection.lum_del (   self,
  units = "b^{-1}" 
)

Definition at line 249 of file create_public_lumi_plots.py.

References create_public_lumi_plots.LumiDataBlockCollection.data_blocks.

Referenced by create_public_lumi_plots.LumiDataBlockCollection.lum_del_tot().

249  def lum_del(self, units="b^{-1}"):
250  res = [i.lum_del_tot(units) for i in self.data_blocks]
251  # End of lum_del().
252  return res
253 
def create_public_lumi_plots.LumiDataBlockCollection.lum_del_tot (   self,
  units = "b^{-1}" 
)

Definition at line 264 of file create_public_lumi_plots.py.

References create_public_lumi_plots.LumiDataPoint.lum_del, and create_public_lumi_plots.LumiDataBlockCollection.lum_del().

264  def lum_del_tot(self, units="b^{-1}"):
265  # End of lum_del().
266  return sum(self.lum_del(units))
267 
def create_public_lumi_plots.LumiDataBlockCollection.lum_inst_max (   self,
  units = "Hz/b" 
)

Definition at line 276 of file create_public_lumi_plots.py.

References create_public_lumi_plots.LumiDataBlockCollection.data_blocks.

276  def lum_inst_max(self, units="Hz/b"):
277  res = [i.max_inst_lum(units) for i in self.data_blocks]
278  # End of lum_inst_max().
279  return res
280 
def create_public_lumi_plots.LumiDataBlockCollection.lum_rec (   self,
  units = "b^{-1}" 
)

Definition at line 254 of file create_public_lumi_plots.py.

References create_public_lumi_plots.LumiDataBlockCollection.data_blocks.

Referenced by create_public_lumi_plots.LumiDataBlockCollection.lum_rec_tot().

254  def lum_rec(self, units="b^{-1}"):
255  res = [i.lum_rec_tot(units) for i in self.data_blocks]
256  # End of lum_rec().
257  return res
258 
def create_public_lumi_plots.LumiDataBlockCollection.lum_rec_tot (   self,
  units = "b^{-1}" 
)

Definition at line 268 of file create_public_lumi_plots.py.

References create_public_lumi_plots.LumiDataPoint.lum_rec, and create_public_lumi_plots.LumiDataBlockCollection.lum_rec().

268  def lum_rec_tot(self, units="b^{-1}"):
269  # End of lum_rec().
270  return sum(self.lum_rec(units))
271 
def create_public_lumi_plots.LumiDataBlockCollection.sort (   self)

Definition at line 226 of file create_public_lumi_plots.py.

226  def sort(self):
227  self.data_blocks.sort()
228  # End of sort().
229 
def create_public_lumi_plots.LumiDataBlockCollection.time_begin (   self)

Definition at line 230 of file create_public_lumi_plots.py.

References create_public_lumi_plots.LumiDataBlockCollection.data_blocks, and min().

230  def time_begin(self):
231  res = datetime.datetime.max
232  if len(self.data_blocks):
233  res = min([i.time_begin() for i in self.data_blocks])
234  # End of time_begin().
235  return res
236 
T min(T a, T b)
Definition: MathUtil.h:58
def create_public_lumi_plots.LumiDataBlockCollection.time_end (   self)

Definition at line 237 of file create_public_lumi_plots.py.

References create_public_lumi_plots.LumiDataBlockCollection.data_blocks, and SiStripPI.max.

237  def time_end(self):
238  res = datetime.datetime.min
239  if len(self.data_blocks):
240  res = max([i.time_end() for i in self.data_blocks])
241  # End of time_end().
242  return res
243 
def create_public_lumi_plots.LumiDataBlockCollection.times (   self)

Definition at line 244 of file create_public_lumi_plots.py.

References create_public_lumi_plots.LumiDataBlockCollection.data_blocks.

244  def times(self):
245  res = [i.time_mid() for i in self.data_blocks]
246  # End of times().
247  return res
248 

Member Data Documentation

create_public_lumi_plots.LumiDataBlockCollection.data_blocks