Belle II Software  release-08-01-10
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 33 of file checkDB-moduleT0.py.

Member Function Documentation

◆ event()

def event (   self)
 event processing 

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

49  def event(self):
50  ''' event processing '''
51 
52  evtMetaData = Belle2.PyStoreObj('EventMetaData')
53  runNo = 'r' + '{:0=5d}'.format(evtMetaData.getRun())
54 
55  if not self.db:
56  b2.B2ERROR(runNo + ': payload not found')
57  return
58  if not self.db.hasChanged():
59  self.lastRun = runNo
60  return
61  if self.lastRun:
62  print('... to ' + self.lastRun)
63  self.lastRun = None
64 
65  print(runNo + ':')
66  for slot in range(1, 17):
67  if self.db.isCalibrated(slot):
68  status = 'calibrated'
69  elif self.db.isUnusable(slot):
70  status = 'unusable'
71  else:
72  status = 'default'
73  print(' slot' + '{:0=2d}'.format(slot) + ': T0 =',
74  round(self.db.getT0(slot), 4), '+/-', round(self.db.getT0Error(slot), 4),
75  status)
76 
a (simplified) python wrapper for StoreObjPtr.
Definition: PyStoreObj.h:67

◆ initialize()

def initialize (   self)
 initialize 

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

◆ terminate()

def terminate (   self)
 terminate 

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


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