Update SW Tutorial authored by Lorenzo Scavarda's avatar Lorenzo Scavarda
...@@ -21,6 +21,7 @@ The second step is: `/$HOME/foot_turin/Script/PythonScript/sw_standalone/create_ ...@@ -21,6 +21,7 @@ The second step is: `/$HOME/foot_turin/Script/PythonScript/sw_standalone/create_
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 the TreeWave.root generating the major quantities required by the analysis (amplitude, charge, baseline, fit paramters, etc.) and saving them in another ROOT file.
### Method list
The list of the class methods are: The list of the class methods are:
- `def _init_(self, dir_in, ch_list, isFitAn, dig, bit, save_canvas, pulse_folder)`: class constructor - `def _init_(self, dir_in, ch_list, isFitAn, dig, bit, save_canvas, pulse_folder)`: class constructor
...@@ -37,6 +38,7 @@ The list of the class methods are: ...@@ -37,6 +38,7 @@ The list of the class methods are:
- `def init_canvas(self)`: it creates the canvas of some PDF pictures - `def init_canvas(self)`: it creates the canvas of some PDF pictures
- `def draw_pulses(self, i, c_id, event)`: it draws the signals in the canvas - `def draw_pulses(self, i, c_id, event)`: it draws the signals in the canvas
- `def analyze_tree(self, ev_start, ev_stop, fout)`: main function which recalls all the previous ones. - `def analyze_tree(self, ev_start, ev_stop, fout)`: main function which recalls all the previous ones.
### How to run ### How to run
The macro can be run through the `/$HOME/foot_turin/Script/PythonScript/sw_standalone/analyze.py` script. The macro can be run through the `/$HOME/foot_turin/Script/PythonScript/sw_standalone/analyze.py` script.
... ...
......