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, svdRecoDigits_rel_Clusters, 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
 
 sumCOGList2
 sum of CoG times squared
 
 sumCOGList3
 sum of CoG times to the third
 
 sumCOGList4
 sum of CoG times to the fourth
 
 sumCOGList5
 sum of CoG times to the fifth
 
 sumCOGList6
 sum of CoG times to the sixth
 
 sumCDCList
 sum of t0 times
 
 sumCDCCOGList
 sum of t0*cog
 
 sumCDCCOGList2
 sum of t0*cog squared
 
 sumCDCCOGList3
 sum of t0 times to the third
 
 Evt
 counts the number of events
 
 EventT0Hist
 distribution of EventT0
 
 gaus
 gaus function used for fitting distributions
 
 pol
 third order polynomial function used for fitting distributions
 
 cdcEventT0
 registers PyStoreObj EventT0
 

Detailed Description

Python class used for checking SVD CoG Calibration stored in a localDB,
creating a localDB with the correction and a root file to check the corrections

Definition at line 44 of file CoGCalibration_utils_tbindependent.py.

Member Function Documentation

◆ event()

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

Definition at line 374 of file CoGCalibration_utils_tbindependent.py.

374  def event(self):
375  """
376  Function that allows to cicle on the events
377  """
378  # timeClusterU = 0
379  # timeClusterV = 0
380  # sideIndex = 0
381  # TBIndexU = 0
382  # TBIndexV = 0
383 
384  self.Evt = self.Evt + 1
385 
386 
387  self.cdcEventT0 = Belle2.PyStoreObj(cdc_Time0)
388  svdCluster_list = Belle2.PyStoreArray(svd_Clusters)
389  # svdRecoDigit_list = Belle2.PyStoreArray(svd_recoDigits)
390 
391  for svdCluster in svdCluster_list:
392  svdRecoDigit = svdCluster.getRelatedTo(svd_recoDigits)
393  self.fillLists(svdRecoDigit, svdCluster)
394 
A (simplified) python wrapper for StoreArray.
Definition: PyStoreArray.h:72
a (simplified) python wrapper for StoreObjPtr.
Definition: PyStoreObj.h:67

◆ fillLists()

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

parameters:
     svdRecoDigits_rel_Clusters (SVDRecoDigit): reco digits related to clusters
     svdClusters_rel_RecoTracks_cl (SVDCluster): cluster related to tracks

Definition at line 63 of file CoGCalibration_utils_tbindependent.py.

◆ initialize()

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

Definition at line 144 of file CoGCalibration_utils_tbindependent.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 50 of file CoGCalibration_utils_tbindependent.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 134 of file CoGCalibration_utils_tbindependent.py.

◆ terminate()

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

Definition at line 395 of file CoGCalibration_utils_tbindependent.py.


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