Belle II Software  release-08-01-10
SaveModuleT0 Class Reference
Inheritance diagram for SaveModuleT0:
Collaboration diagram for SaveModuleT0:

Public Member Functions

def initialize (self)
 
def event (self)
 
def terminate (self)
 

Public Attributes

 db
 payload
 
 file
 output file name
 
 h
 histogram
 

Detailed Description

 Save module T0 from database into a root file as histogram 

Definition at line 33 of file getModuleT0Histo.py.

Member Function Documentation

◆ event()

def event (   self)
 event processing 

Definition at line 48 of file getModuleT0Histo.py.

48  def event(self):
49  ''' event processing '''
50 
51  for slot in range(1, 17):
52  self.h.SetBinContent(slot, self.db.getT0(slot))
53  self.h.SetBinError(slot, self.db.getT0Error(slot))
54  if self.db.isCalibrated(slot):
55  print('slot', slot, 'status = calibrated')
56  elif self.db.isUnusable(slot):
57  print('slot', slot, 'status = unusable')
58  else:
59  print('slot', slot, 'status = default')
60 

◆ initialize()

def initialize (   self)
 initialize 

Definition at line 36 of file getModuleT0Histo.py.

◆ terminate()

def terminate (   self)
 terminate 

Definition at line 61 of file getModuleT0Histo.py.


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