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, 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 44 of file CoGCalibration_utils.py.

Member Function Documentation

◆ event()

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

Definition at line 312 of file CoGCalibration_utils.py.

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

◆ 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 63 of file CoGCalibration_utils.py.

◆ initialize()

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

Definition at line 127 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 50 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 117 of file CoGCalibration_utils.py.

◆ terminate()

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

Definition at line 335 of file CoGCalibration_utils.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