TTree
from the data files (test files) of Pacman. We have a set of text files contained in an archived tar file.
We have the following data file (in Text format):
TTree
containing all these data (or several TTree
if you prefer).
pacman.root
TGraphErrors
together with the true known energy of the peaks. By fitting this Graph we can then build the calibration curve (Energy vs ADC) that we can use to convert ADC counts in energy for the other data sets.
Correct then the other data set and plots the spectrum in term of Energy and not ADC counts.
Here (Calibrate.C) is the ROOT macro fitting the spectra from the calibration detectors and then making the calibration curve.
I | Attachment | History | Action | Size | Date | Who | Comment |
---|---|---|---|---|---|---|---|
![]() |
Calibrate.C | r1 | manage | 1.5 K | 2013-02-28 - 12:02 | LorenzoMoneta | Macro to read the tree, make calibration histograms to fit and then fit a calibration curve (ADC vs Energy) |
![]() |
FitIRMMSpectrum.C | r1 | manage | 3.6 K | 2013-02-28 - 10:40 | LorenzoMoneta | Macro fitting and analyzing the spectrum ROOT file |
![]() |
ReadSpectrum.C | r1 | manage | 2.6 K | 2013-02-28 - 09:18 | LorenzoMoneta | Macro to read .csv file from Excel |
![]() |
calibration_curve.png | r1 | manage | 13.1 K | 2013-02-28 - 12:02 | LorenzoMoneta | Macro to read the tree, make calibration histograms to fit and then fit a calibration curve (ADC vs Energy) |
![]() |
calibration_peaks.png | r1 | manage | 16.4 K | 2013-02-28 - 12:02 | LorenzoMoneta | Macro to read the tree, make calibration histograms to fit and then fit a calibration curve (ADC vs Energy) |
![]() |
data-InCl3.xls | r1 | manage | 1132.5 K | 2013-02-28 - 02:53 | LorenzoMoneta | Excel Data File |
![]() |
formula.png | r1 | manage | 25.6 K | 2013-02-28 - 01:08 | LorenzoMoneta | FIt spectrum and function formula for modified gaussian peak |
![]() |
fullfit.png | r1 | manage | 13.0 K | 2013-02-28 - 15:09 | LorenzoMoneta | Fitted spectrum |
![]() |
fullfitNew.png | r1 | manage | 13.0 K | 2013-02-28 - 15:11 | LorenzoMoneta | Fitted spectrum |
![]() |
pacman.C | r1 | manage | 1.8 K | 2013-02-28 - 11:48 | LorenzoMoneta | Macro reading all the text file and creating a ROOT Tree |
![]() |
pacman_data.tgz | r1 | manage | 48973.7 K | 2013-02-28 - 09:36 | LorenzoMoneta | Tar file with Pacman text data files |
![]() |
test.csv | r1 | manage | 256.4 K | 2013-02-28 - 10:43 | LorenzoMoneta | csv file created from Excel |