Calibration Algorithm
Input Calibration Algorithm
The input of the Calibration Algorithm is a *.root files containing a ROOT Tree named “waveforms_unblinded” with the following structure for entries:
| Variable Name | Variable Type | Description |
|---|---|---|
| nHit | Integer | Number of pulse in the events |
| time [nHit] | Array of Float | Array of the hit time of each pulse |
| charge [nHit] | Array of Float | Array of the charge Produced by each pulse |
| nSample | Integer | Number of the sampling point of the waveform |
| waveform [nSample] | Array of Integer | Waveform to be analysed |
Table 1: Structure of the tree in the *.root input files
In the ROOT file are stored waveform samples coming form an LED calibration of the PMT
To work properly the macro need a config file situated in ./conf/config_cal.txt with the following structure
| # nSamples = 1000 |
| # nSPE = 16 |
Where:
| # nSamples: is the number of sampling point of each waveform |
| # nSPE: is the maximum number of SPE waveform to be used for the building of the template |
Output of Calibration Calibration
The algorithm will give two different outputs stored in the folder ./data/data_folder
1)The Noise sample in the file Noise.txt
2)The SPE template stored in SPE_template.txt
both with the structure showed in the Charge Reconstruction Section