Update SW Tutorial authored by Lorenzo Scavarda's avatar Lorenzo Scavarda
...@@ -32,7 +32,8 @@ Enabling the fit analysis the processing time could be quite long (several minut ...@@ -32,7 +32,8 @@ Enabling the fit analysis the processing time could be quite long (several minut
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
- `def constant_numbers(self, bit)`: it defines some constant numbers - `def daq(self, daq, sampl_rate):`: it allows the user to choose the digitizer and its features
- `def constant_numbers(self)`: it defines some constant numbers
- `def open_tree(self)`: it opens the input TreeWave.root file - `def open_tree(self)`: it opens the input TreeWave.root file
- `def init_data(self)`: it initialises the arrays to store the main quantities (amplitude, charge, etc.) - `def init_data(self)`: it initialises the arrays to store the main quantities (amplitude, charge, etc.)
- `def reset_data(self)`: it resets the arrays each event - `def reset_data(self)`: it resets the arrays each event
...@@ -57,8 +58,8 @@ This script need some **POSITIONAL** arguments: ...@@ -57,8 +58,8 @@ This script need some **POSITIONAL** arguments:
and some **OPTIONAL** arguments: and some **OPTIONAL** arguments:
- the list of the channel (i.e. the crystal ID number): `[-c]` - the list of the channel (i.e. the crystal ID number): `[-c]`
- the sampling rate of the digitizer: `[-d]` - the sampling rate of the digitizer: `[-srate]`
- the bit number of the digitizer: `[-b]` - digitizer model: `[-daq]`
- the path of the output file: `[-o]` - the path of the output file: `[-o]`
- keyword to enable/disable the fit analysis: `[-f]` - keyword to enable/disable the fit analysis: `[-f]`
- keyword to set the frequency for saving PDF waveforms: `[-s]` - keyword to set the frequency for saving PDF waveforms: `[-s]`
...@@ -66,7 +67,7 @@ and some **OPTIONAL** arguments: ...@@ -66,7 +67,7 @@ and some **OPTIONAL** arguments:
example from terminal: example from terminal:
`> python analyze.py TreeWave.root 0 10000 -c 0 1 2 3 4 5 6 7 8 -d 1024 -b 12 -o fout_ntuple.root -f -s 1000 -p PulseWF` `> python analyze.py TreeWave.root 0 10000 -c 0 1 2 3 4 5 6 7 8 -o fout_ntuple.root -f -s 1000 -p PulseWF -daq wave_daq -srate 1024`
## 3. Read n-tuple ## 3. Read n-tuple
... ...
......