Belle II Software  release-05-02-19
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
 
 bunchTimeSep
 bunch time separation
 

Detailed Description

print content of TOPCalCommonT0 

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

Member Function Documentation

◆ event()

def event (   self)
event processing 

Definition at line 43 of file checkDB-commonT0.py.

43  def event(self):
44  ''' event processing '''
45 
46  evtMetaData = Belle2.PyStoreObj('EventMetaData')
47  runNo = 'r' + '{:0=5d}'.format(evtMetaData.getRun())
48 
49  if not self.db:
50  B2ERROR(runNo + ': payload not found')
51  return
52  if not self.db.hasChanged():
53  self.lastRun = runNo
54  return
55  if self.lastRun:
56  print('... to ' + self.lastRun)
57  self.lastRun = None
58 
59  if self.db.isCalibrated():
60  status = 'calibrated'
61  elif self.db.isUnusable():
62  status = 'unusable'
63  elif self.db.isRoughlyCalibrated():
64  status = 'roughly calibrated'
65  else:
66  status = 'default'
67  n = round(self.db.getT0() / self.bunchTimeSep, 0)
68  if n == 0:
69  print(runNo + ': T0 =',
70  round(self.db.getT0(), 4), '+/-', round(self.db.getT0Error(), 4),
71  status)
72  else:
73  print(runNo + ': T0 =',
74  round(self.db.getT0(), 4), '+/-', round(self.db.getT0Error(), 4),
75  status, '-- out of range')
76 

◆ initialize()

def initialize (   self)
initialize 

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

◆ terminate()

def terminate (   self)
terminate 

Definition at line 77 of file checkDB-commonT0.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