Belle II Software  release-05-01-25
CheckCalibDB Class Reference
Inheritance diagram for CheckCalibDB:
Collaboration diagram for CheckCalibDB:

Public Member Functions

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

Public Attributes

 db
 payload
 
 lastRun
 last run number
 

Detailed Description

print content of TOPCalModuleT0 

Definition at line 25 of file checkDB-moduleT0.py.

Member Function Documentation

◆ event()

def event (   self)
event processing 

Definition at line 41 of file checkDB-moduleT0.py.

41  def event(self):
42  ''' event processing '''
43 
44  evtMetaData = Belle2.PyStoreObj('EventMetaData')
45  runNo = 'r' + '{:0=5d}'.format(evtMetaData.getRun())
46 
47  if not self.db:
48  B2ERROR(runNo + ': payload not found')
49  return
50  if not self.db.hasChanged():
51  self.lastRun = runNo
52  return
53  if self.lastRun:
54  print('... to ' + self.lastRun)
55  self.lastRun = None
56 
57  print(runNo + ':')
58  for slot in range(1, 17):
59  if self.db.isCalibrated(slot):
60  status = 'calibrated'
61  elif self.db.isUnusable(slot):
62  status = 'unusable'
63  else:
64  status = 'default'
65  print(' slot' + '{:0=2d}'.format(slot) + ': T0 =',
66  round(self.db.getT0(slot), 4), '+/-', round(self.db.getT0Error(slot), 4),
67  status)
68 

◆ initialize()

def initialize (   self)
initialize 

Definition at line 28 of file checkDB-moduleT0.py.

◆ terminate()

def terminate (   self)
terminate 

Definition at line 69 of file checkDB-moduleT0.py.


The documentation for this class was generated from the following file:
Belle2::PyStoreObj
a (simplified) python wrapper for StoreObjPtr.
Definition: PyStoreObj.h:69
ClusterEfficiency.ClusterEfficiency.event
def event(self)
Definition: ClusterEfficiency.py:146