Update SW Tutorial authored by Lorenzo Scavarda's avatar Lorenzo Scavarda
......@@ -17,6 +17,19 @@ This macro converts the binary file.dat acquired by the Digitizer into a ROOT fi
## Create ntuple
This macro aims at processing the TreeWave.root generating the major quantities required by the analysis (amplitude, charge, baseline, fit paramters, etc.).
This macro 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.
### How to run
The macro can be run trough the analyze.py script.
This script need some mandatory arguments:
- the path of the input file (TreeWave.root)
- the number of start event
- the number of the stop event
and some OPTIONAL argument:
- the list of the channel (i.e. the crystal ID number): [-c]
- the sampling rate of the digitizer: [-d]
- the bit number of the digitizer: [-b]
- the path of the output file: [-o]
- keyword to enable/disable the fit analysis: [-f]
- keyword to set the frequency for saving PDF waveforms: [-s]
- path of the ouput folder for PDF figures: [-p]
\ No newline at end of file