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

Public Member Functions

def notApplyCorrectForCDCLatency (self, mode)
 
def fillLists (self, mode_byte_object, svdClusters_rel_RecoTracks_cl)
 
def set_localdb (self, localDB)
 
def initialize (self)
 
def event (self)
 
def terminate (self)
 

Public Attributes

 notApplyCDCLatencyCorrection
 parameter that allows to apply or not the CDC latency correction
 
 NTOT
 counts the number of clusters
 
 localdb
 set the name of the localDB used
 
 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.
 
 nList
 number of clusters
 
 sumCOGList
 sum of CoG times
 
 Evt
 counts the number of events
 
 EventT0Hist
 distribution of EventT0
 
 AlphaUTB
 alpha parameter vs TB, for U side
 
 AlphaVTB
 alpha parameter vs TB, for V side
 
 BetaUTB
 beta parameter vs TB, for U side
 
 BetaVTB
 beta parameter vs TB, for V side
 
 MeanHistVTB
 mean of the residuals distribution vs TB, for V side
 
 MeanHistUTB
 mean of the residuals distribution vs TB, for U side
 
 RMSHistVTB
 RMS of the residuals distribution vs TB, for V side.
 
 RMSHistUTB
 RMS of the residuals distribution vs TB, for U side.
 
 MeanFitVTB
 mean of the residuals distribution vs TB, for V side (from gaussian fit)
 
 MeanFitUTB
 mean of the residuals distribution vs TB, for U side (from gaussian fit)
 
 RMSFitUTB
 RMS of the residuals distribution vs TB, for U side (from gaussian fit)
 
 RMSFitVTB
 RMS of the residuals distribution vs TB, for V side (from gaussian fit)
 
 gaus
 gaus function used for fitting distributions
 
 cdcEventT0
 registers PyStoreObj EventT0
 

Detailed Description

Python class used for evaluating the CoG corrections, create a localDB,
creating a localDB with the corrections and a root file to check the corrections

Definition at line 42 of file CoGCalibration_utils.py.

Member Function Documentation

◆ event()

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

Definition at line 310 of file CoGCalibration_utils.py.

310  def event(self):
311  """
312  Function that allows to cicle on the events
313  """
314  svd_evt_info = Belle2.PyStoreObj('SVDEventInfo')
315  mode_byte = svd_evt_info.getModeByte()
316  # timeClusterU = 0
317  # timeClusterV = 0
318  # sideIndex = 0
319  # TBIndexU = 0
320  # TBIndexV = 0
321 
322  self.Evt = self.Evt + 1
323 
324 
325  self.cdcEventT0 = Belle2.PyStoreObj(cdc_Time0)
326  svdCluster_list = Belle2.PyStoreArray(svd_Clusters)
327  # svdRecoDigit_list = Belle2.PyStoreArray(svd_recoDigits)
328 
329  for svdCluster in svdCluster_list:
330  # svdRecoDigit = svdCluster.getRelatedTo(svd_recoDigits)
331  self.fillLists(mode_byte, svdCluster)
332 
A (simplified) python wrapper for StoreArray.
Definition: PyStoreArray.h:72
a (simplified) python wrapper for StoreObjPtr.
Definition: PyStoreObj.h:67

◆ fillLists()

def fillLists (   self,
  mode_byte_object,
  svdClusters_rel_RecoTracks_cl 
)
Function that fill the lists needed for the CoG corrections

parameters:
     mode_byte_object (modeByte): modeByte that contains the information about the TB
     svdClusters_rel_RecoTracks_cl (SVDCluster): cluster related to tracks

Definition at line 61 of file CoGCalibration_utils.py.

◆ initialize()

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

Definition at line 125 of file CoGCalibration_utils.py.

◆ notApplyCorrectForCDCLatency()

def notApplyCorrectForCDCLatency (   self,
  mode 
)
Function that allows to set if apply the CDC latency correction

parameters:
     mode (bool):
     - if True -> not apply correction
     - if False -> apply correction

Definition at line 48 of file CoGCalibration_utils.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 115 of file CoGCalibration_utils.py.

◆ terminate()

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

Definition at line 333 of file CoGCalibration_utils.py.


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