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

Public Member Functions

def initialize (self)
 
def event (self)
 
def terminate (self)
 

Public Attributes

 outputFileName
 name of the output file provided by the user
 
 layer
 layer array for the tree
 
 ladder
 ladder array for the tree
 
 sensor
 sensor array for the tree
 
 side
 side array for the tree
 
 TB
 TB array for the tree.
 
 evtTime
 T0 array for the tree.
 
 evtTimeSync
 T0Sync array for the tree.
 
 clsTime
 cluster time array for the tree
 
 clsSize
 cluster size array for the tree
 
 clsCharge
 cluster charge array for the tree
 
 clsSNR
 cluster SNR array for the tree
 
 run
 run number array for the tree
 
 exp
 experiment number array for the tree
 
 layerTracks
 layer array for the tree for clusters associated to tracks
 
 ladderTracks
 ladder array for the tree for clusters associated to tracks
 
 sensorTracks
 sensor array for the tree for clusters associated to tracks
 
 sideTracks
 side array for the tree for clusters associated to tracks
 
 evtTimeTracks
 T0 array for the tree for clusters associated to tracks.
 
 evtTimeSyncTracks
 T0Sync array for the tree for clusters associated to tracks.
 
 clsTimeTracks
 cluster time array for the tree for clusters associated to tracks
 
 clsSizeTracks
 cluster size array for the tree for clusters associated to tracks
 
 clsChargeTracks
 cluster charge array for the tree for clusters associated to tracks
 
 clsSNRTracks
 cluster SNR array for the tree for clusters associated to tracks
 
 tree
 tree for clusters
 
 treeTracks
 tree for clusters, branch for layer number More...
 
 ftswShift
 correction to pass to the FTSW reference system
 
 ftswShiftTracks
 correction to pass to the FTSW reference system
 
 tFile
 creation of TFile
 

Detailed Description

Class used to check the goodness of the CoG time calibration

Definition at line 34 of file svdCoGCalibrationAnalysisToolModule.py.

Member Function Documentation

◆ event()

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

Definition at line 154 of file svdCoGCalibrationAnalysisToolModule.py.

154  def event(self):
155  """
156  Function that allows to cicle on the events
157  """
158  svd_cls = Belle2.PyStoreArray(svd_Clusters)
159  svd_clsFromTrks = Belle2.PyStoreArray(svd_ClustersFromTracks)
160  et0 = Belle2.PyStoreObj(time0)
161  svd_evtInfo = Belle2.PyStoreObj(svd_EventInfo)
162  clsTB = svd_evtInfo.getModeByte().getTriggerBin()
163  self.TB[0] = ord(clsTB)
164  svd_evtMD = Belle2.PyStoreObj(svd_EventMD)
165  self.run[0] = svd_evtMD.getRun()
166  self.exp[0] = svd_evtMD.getExperiment()
167 
168  for svdCluster in svd_cls:
169  self.clsTime[0] = svdCluster.getClsTime()
170  self.clsSize[0] = svdCluster.getSize()
171  self.clsCharge[0] = svdCluster.getCharge()
172  self.clsSNR[0] = svdCluster.getSNR()
173  self.layer[0] = svdCluster.getSensorID().getLayerNumber()
174  self.ladder[0] = svdCluster.getSensorID().getLadderNumber()
175  self.sensor[0] = svdCluster.getSensorID().getSensorNumber()
176  self.side[0] = svdCluster.isUCluster()
177 
178  self.ftswShift = svd_evtInfo.getSVD2FTSWTimeShift(svdCluster.getFirstFrame())
179  hasT0 = et0.hasEventT0()
180  if hasT0:
181  self.evtTime[0] = et0.getEventT0()
182  self.evtTimeSync[0] = et0.getEventT0() - self.ftswShift
183  else:
184  self.evtTime[0] = -999
185  self.evtTimeSync[0] = -999
186  self.tree.Fill()
187 
188  for svdClusterTracks in svd_clsFromTrks:
189  self.clsTimeTracks[0] = svdClusterTracks.getClsTime()
190  self.clsSizeTracks[0] = svdClusterTracks.getSize()
191  self.clsChargeTracks[0] = svdClusterTracks.getCharge()
192  self.clsSNRTracks[0] = svdClusterTracks.getSNR()
193  self.layerTracks[0] = svdClusterTracks.getSensorID().getLayerNumber()
194  self.ladderTracks[0] = svdClusterTracks.getSensorID().getLadderNumber()
195  self.sensorTracks[0] = svdClusterTracks.getSensorID().getSensorNumber()
196  self.sideTracks[0] = svdClusterTracks.isUCluster()
197 
198  self.ftswShiftTracks = svd_evtInfo.getSVD2FTSWTimeShift(svdCluster.getFirstFrame())
199  hasT0 = et0.hasEventT0()
200  if hasT0:
201  self.evtTimeTracks[0] = et0.getEventT0()
202  self.evtTimeSyncTracks[0] = et0.getEventT0() - self.ftswShiftTracks
203  else:
204  self.evtTimeTracks[0] = -999
205  self.evtTimeSyncTracks[0] = -999
206  self.treeTracks.Fill()
207 
A (simplified) python wrapper for StoreArray.
Definition: PyStoreArray.h:72
a (simplified) python wrapper for StoreObjPtr.
Definition: PyStoreObj.h:67

◆ initialize()

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

Definition at line 39 of file svdCoGCalibrationAnalysisToolModule.py.

◆ terminate()

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

Definition at line 208 of file svdCoGCalibrationAnalysisToolModule.py.

Member Data Documentation

◆ treeTracks

treeTracks

tree for clusters, branch for layer number

tree for clusters, branch for ladder number

tree for clusters, branch for sensor number

tree for clusters, branch for side

tree for clusters, branch for trigger bin

tree for clusters, branch for T0

tree for clusters, branch for T0Sync

tree for clusters, branch for cluster time

tree for clusters, branch for cluster size

tree for clusters, branch for cluster charge

tree for clusters, branch for cluster SNR

tree for clusters, branch for run number

tree for clusters, branch for exp number

tree for clusters associated to tracks

Definition at line 126 of file svdCoGCalibrationAnalysisToolModule.py.


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