![]() |
Belle II Software development
|
Public Member Functions | |
| notApplyCorrectForCDCLatency (self, mode) | |
| fillLists (self, mode_byte_object, svdClusters_rel_RecoTracks_cl) | |
| set_localdb (self, localDB) | |
| initialize (self) | |
| event (self) | |
| terminate (self) | |
Public Attributes | |
| notApplyCDCLatencyCorrection = mode | |
| parameter that allows to apply or not the CDC latency correction | |
| int | NTOT = self.NTOT + 1 |
| counts the number of clusters | |
| localdb = localDB | |
| set the name of the localDB used | |
| str | outputFileName = "CoGCorrectionMonitor_" + self.localdb + ".root" |
| name of the output file | |
| list | resList = [] |
| lists used to create the histograms for each TB : residuals | |
| list | spList = [] |
| scatterplot t0 vs cog | |
| list | cogList = [] |
| cog | |
| list | cdcList = [] |
| t0 | |
| list | snrList = [] |
| Cluster SNR. | |
| list | nList = [] |
| number of clusters | |
| list | sumCOGList = [] |
| sum of CoG times | |
| int | Evt = 0 |
| counts the number of events | |
| EventT0Hist = TH1F("EventT0", " ", 200, -100, 100) | |
| distribution of EventT0 | |
| AlphaUTB = TH2F("alphaVsTB_U", " ", 400, 0.5, 2, 4, 0, 4) | |
| alpha parameter vs TB, for U side | |
| AlphaVTB = TH2F("alphaVsTB_V", " ", 400, 0.5, 2, 4, 0, 4) | |
| alpha parameter vs TB, for V side | |
| BetaUTB = TH2F("betaVsTB_U", " ", 200, -100, 100, 4, 0, 4) | |
| beta parameter vs TB, for U side | |
| BetaVTB = TH2F("betaVsTB_V", " ", 200, -100, 100, 4, 0, 4) | |
| beta parameter vs TB, for V side | |
| MeanHistVTB = TH2F("meanHistVsTB_V", " ", 100, -10, 10, 4, 0, 4) | |
| mean of the residuals distribution vs TB, for V side | |
| MeanHistUTB = TH2F("meanHistVsTB_U", " ", 100, -10, 10, 4, 0, 4) | |
| mean of the residuals distribution vs TB, for U side | |
| RMSHistVTB = TH2F("rmsHistVsTB_V", " ", 100, 0, 10, 4, 0, 4) | |
| RMS of the residuals distribution vs TB, for V side. | |
| RMSHistUTB = TH2F("rmsHistVsTB_U", " ", 100, 0, 10, 4, 0, 4) | |
| RMS of the residuals distribution vs TB, for U side. | |
| MeanFitVTB = TH2F("meanFitVsTB_V", " ", 100, -10, 10, 4, 0, 4) | |
| mean of the residuals distribution vs TB, for V side (from gaussian fit) | |
| MeanFitUTB = TH2F("meanFitVsTB_U", " ", 100, -10, 10, 4, 0, 4) | |
| mean of the residuals distribution vs TB, for U side (from gaussian fit) | |
| RMSFitUTB = TH2F("rmsFitVsTB_U", " ", 100, 0, 10, 4, 0, 4) | |
| RMS of the residuals distribution vs TB, for U side (from gaussian fit) | |
| RMSFitVTB = TH2F("rmsFitVsTB_V", " ", 100, 0, 10, 4, 0, 4) | |
| RMS of the residuals distribution vs TB, for V side (from gaussian fit) | |
| gaus = TF1("gaus", 'gaus(0)', -150, 100) | |
| gauss function used for fitting distributions | |
| cdcEventT0 = Belle2.PyStoreObj(cdc_Time0) | |
| counts the number of events | |
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 41 of file CoGCalibration_utils.py.
| event | ( | self | ) |
Function that allows to cycle on the events
Definition at line 309 of file CoGCalibration_utils.py.
| 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 60 of file CoGCalibration_utils.py.
| initialize | ( | self | ) |
Initialize object (histograms, lists, ...) used by the class
Definition at line 124 of file CoGCalibration_utils.py.
| 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 47 of file CoGCalibration_utils.py.
| set_localdb | ( | self, | |
| localDB ) |
Function that allows to set the localDB
parameters:
localDB (str): Name of the localDB used
Definition at line 114 of file CoGCalibration_utils.py.
| terminate | ( | self | ) |
Terminates the class and produces the output rootfile
Definition at line 332 of file CoGCalibration_utils.py.
| AlphaUTB = TH2F("alphaVsTB_U", " ", 400, 0.5, 2, 4, 0, 4) |
alpha parameter vs TB, for U side
Definition at line 255 of file CoGCalibration_utils.py.
| AlphaVTB = TH2F("alphaVsTB_V", " ", 400, 0.5, 2, 4, 0, 4) |
alpha parameter vs TB, for V side
Definition at line 259 of file CoGCalibration_utils.py.
| BetaUTB = TH2F("betaVsTB_U", " ", 200, -100, 100, 4, 0, 4) |
beta parameter vs TB, for U side
Definition at line 263 of file CoGCalibration_utils.py.
| BetaVTB = TH2F("betaVsTB_V", " ", 200, -100, 100, 4, 0, 4) |
beta parameter vs TB, for V side
Definition at line 267 of file CoGCalibration_utils.py.
| cdcEventT0 = Belle2.PyStoreObj(cdc_Time0) |
counts the number of events
registers PyStoreObj EventT0
Definition at line 324 of file CoGCalibration_utils.py.
| list cdcList = [] |
t0
Definition at line 140 of file CoGCalibration_utils.py.
| list cogList = [] |
cog
Definition at line 138 of file CoGCalibration_utils.py.
| EventT0Hist = TH1F("EventT0", " ", 200, -100, 100) |
distribution of EventT0
Definition at line 253 of file CoGCalibration_utils.py.
| int Evt = 0 |
counts the number of events
Definition at line 150 of file CoGCalibration_utils.py.
| gaus = TF1("gaus", 'gaus(0)', -150, 100) |
gauss function used for fitting distributions
Definition at line 305 of file CoGCalibration_utils.py.
| localdb = localDB |
set the name of the localDB used
Definition at line 122 of file CoGCalibration_utils.py.
| MeanFitUTB = TH2F("meanFitVsTB_U", " ", 100, -10, 10, 4, 0, 4) |
mean of the residuals distribution vs TB, for U side (from gaussian fit)
Definition at line 292 of file CoGCalibration_utils.py.
| MeanFitVTB = TH2F("meanFitVsTB_V", " ", 100, -10, 10, 4, 0, 4) |
mean of the residuals distribution vs TB, for V side (from gaussian fit)
Definition at line 288 of file CoGCalibration_utils.py.
| MeanHistUTB = TH2F("meanHistVsTB_U", " ", 100, -10, 10, 4, 0, 4) |
mean of the residuals distribution vs TB, for U side
Definition at line 276 of file CoGCalibration_utils.py.
| MeanHistVTB = TH2F("meanHistVsTB_V", " ", 100, -10, 10, 4, 0, 4) |
mean of the residuals distribution vs TB, for V side
Definition at line 272 of file CoGCalibration_utils.py.
| list nList = [] |
number of clusters
Definition at line 144 of file CoGCalibration_utils.py.
| notApplyCDCLatencyCorrection = mode |
parameter that allows to apply or not the CDC latency correction
Definition at line 57 of file CoGCalibration_utils.py.
| int NTOT = self.NTOT + 1 |
counts the number of clusters
Definition at line 112 of file CoGCalibration_utils.py.
| str outputFileName = "CoGCorrectionMonitor_" + self.localdb + ".root" |
name of the output file
Definition at line 130 of file CoGCalibration_utils.py.
| list resList = [] |
lists used to create the histograms for each TB : residuals
Definition at line 134 of file CoGCalibration_utils.py.
| RMSFitUTB = TH2F("rmsFitVsTB_U", " ", 100, 0, 10, 4, 0, 4) |
RMS of the residuals distribution vs TB, for U side (from gaussian fit)
Definition at line 296 of file CoGCalibration_utils.py.
| RMSFitVTB = TH2F("rmsFitVsTB_V", " ", 100, 0, 10, 4, 0, 4) |
RMS of the residuals distribution vs TB, for V side (from gaussian fit)
Definition at line 300 of file CoGCalibration_utils.py.
| RMSHistUTB = TH2F("rmsHistVsTB_U", " ", 100, 0, 10, 4, 0, 4) |
RMS of the residuals distribution vs TB, for U side.
Definition at line 284 of file CoGCalibration_utils.py.
| RMSHistVTB = TH2F("rmsHistVsTB_V", " ", 100, 0, 10, 4, 0, 4) |
RMS of the residuals distribution vs TB, for V side.
Definition at line 280 of file CoGCalibration_utils.py.
| list snrList = [] |
Cluster SNR.
Definition at line 142 of file CoGCalibration_utils.py.
| list spList = [] |
scatterplot t0 vs cog
Definition at line 136 of file CoGCalibration_utils.py.
| list sumCOGList = [] |
sum of CoG times
Definition at line 146 of file CoGCalibration_utils.py.