@@ -19,11 +19,11 @@ This macro converts the binary file.dat acquired by the Digitizer into a ROOT fi
The second step is: `/$HOME/foot_turin/Script/PythonScript/sw_standalone/create_ntuple.py`.
This class aims at processing the TreeWave.root generating the major quantities required by the analysis (amplitude, charge, baseline, fit paramters, etc.) and saving them in another ROOT file.
This class aims at processing all events (selected by the user) of the TreeWave.root, generating the major quantities required by the analysis (amplitude, charge, baseline, fit paramters, etc.) and saving them in n-tuples in a ROOT file.
Enabling the fit analysis the processing time could be quite long (several minutes). Thus, the idea of the code is to run this class one time, generate the n-tuples of all the signals quantities and leave the histograms generation to the next step (read_ntuple.py).
Once all the signals quantities are stored in n-tuples, the class `/$HOME/foot_turin/Script/PythonScript/sw_standalone/read_ntuple.py` allows to quickly generate all the histograms/plots required by the user.
In this class the event-selection is performed. The event-selection is based on two cut levels:
1. Baseline RMS selection: signals with a baseline RMS greater than a threshold value are rejected
2. &chi^2 selection
### Class methods list
The list of the class methods are:
-`def _init_(self, file_in, ch_list, run, c_id_trg)`: class constructor
-`def load_campaign(self, cam)`: it loads the test beam campaigns