Belle II Software  release-05-02-19
SVDCoGTimeCalibrationCheckModule Class Reference
Inheritance diagram for SVDCoGTimeCalibrationCheckModule:
Collaboration diagram for SVDCoGTimeCalibrationCheckModule:

Public Member Functions

def fillLists (self, svdClusterFromTracks)
 
def set_localdb (self, localDB)
 
def set_run_number (self, run)
 
def set_exp_number (self, exp)
 
def initialize (self)
 
def event (self)
 
def terminate (self)
 

Public Attributes

 NTOT
 counts the number of clusters
 
 localdb
 set the name of the localDB used
 
 runnumber
 set the run number
 
 expnumber
 set the experiment number
 
 outputFileName
 name of the output file
 
 resList
 lists used to create the histograms for each TB : residuals
 
 spList
 scatterplot t0 vs cog
 
 cogList
 cog
 
 cdcList
 t0
 
 snrList
 Cluster SNR.
 
 sizeList
 Cluster Size.
 
 chargeList
 Cluster charge.
 
 cdcErrorList
 t0 no synchronized
 
 Evt
 counts the number of events
 
 EventT0Hist
 distribution of EventT0
 
 gaus
 gaus function used for fitting distributions
 
 pol1
 order 1 polynomium used for the calibration
 
 pol3
 order 3 polynomium used for the calibration
 
 cdcEventT0
 registers PyStoreObj EventT0
 
 TB
 

Detailed Description

Python class used for checking SVD CoG Calibration stored in a localDB

Definition at line 40 of file CoGCalibration_utils_checkCalibration.py.

Member Function Documentation

◆ event()

def event (   self)
Function that allows to cicle on the events

Definition at line 255 of file CoGCalibration_utils_checkCalibration.py.

255  def event(self):
256  """
257  Function that allows to cicle on the events
258  """
259  self.Evt = self.Evt + 1
260 
261  # fill EventT0 histogram
262 
263  self.cdcEventT0 = Belle2.PyStoreObj(cdc_Time0)
264  if self.cdcEventT0.hasEventT0():
265  et0 = self.EventT0Hist
266  et0.Fill(self.cdcEventT0.getEventT0())
267 
268  # fill plots
269  svdCluster_list = Belle2.PyStoreArray(svd_Clusters)
270  svd_evtInfo = Belle2.PyStoreObj(svd_EventInfo)
271  clsTB = svd_evtInfo.getModeByte().getTriggerBin()
272  self.TB = ord(clsTB)
273 
274  for svdCluster in svdCluster_list:
275  self.fillLists(svdCluster)
276 

◆ fillLists()

def fillLists (   self,
  svdClusterFromTracks 
)
Function that fill the lists needed for the check of the calibration

parameters:
     svdClusterFromTracks (SVDCluster): Cluster related to tracks

Definition at line 45 of file CoGCalibration_utils_checkCalibration.py.

◆ initialize()

def initialize (   self)
Initialize object (histograms, lists, ...) used by the class

Definition at line 123 of file CoGCalibration_utils_checkCalibration.py.

◆ set_exp_number()

def set_exp_number (   self,
  exp 
)
Function that allows to save the experiment number

parameters:
     exp (int): experiment number

Definition at line 113 of file CoGCalibration_utils_checkCalibration.py.

◆ set_localdb()

def set_localdb (   self,
  localDB 
)
Function that allows to set the localDB

parameters:
     localDB (str): Name of the localDB used

Definition at line 93 of file CoGCalibration_utils_checkCalibration.py.

◆ set_run_number()

def set_run_number (   self,
  run 
)
Function that allows to save the run number

parameters:
     run (int): run number

Definition at line 103 of file CoGCalibration_utils_checkCalibration.py.

◆ terminate()

def terminate (   self)
Terminates te class and produces the output rootfile

Definition at line 277 of file CoGCalibration_utils_checkCalibration.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
Belle2::PyStoreArray
a (simplified) python wrapper for StoreArray.
Definition: PyStoreArray.h:58