Belle II Software  release-05-02-19
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 49 of file CoGCalibration_utils_tbindependent.py.

Member Function Documentation

◆ event()

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

Definition at line 378 of file CoGCalibration_utils_tbindependent.py.

378  def event(self):
379  """
380  Function that allows to cicle on the events
381  """
382  timeClusterU = 0
383  timeClusterV = 0
384  sideIndex = 0
385  TBIndexU = 0
386  TBIndexV = 0
387 
388  self.Evt = self.Evt + 1
389 
390 
391  self.cdcEventT0 = Belle2.PyStoreObj(cdc_Time0)
392  svdCluster_list = Belle2.PyStoreArray(svd_Clusters)
393  svdRecoDigit_list = Belle2.PyStoreArray(svd_recoDigits)
394 
395  for svdCluster in svdCluster_list:
396  svdRecoDigit = svdCluster.getRelatedTo(svd_recoDigits)
397  self.fillLists(svdRecoDigit, svdCluster)
398 

◆ 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 68 of file CoGCalibration_utils_tbindependent.py.

◆ initialize()

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

Definition at line 148 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 55 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 138 of file CoGCalibration_utils_tbindependent.py.

◆ terminate()

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

Definition at line 399 of file CoGCalibration_utils_tbindependent.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