Update SW Tutorial authored by Lorenzo Scavarda's avatar Lorenzo Scavarda
......@@ -72,6 +72,10 @@ example from terminal:
`> 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`
Example of structure of fout_ntuple.root:
![Immagine_2022-07-14_115538](uploads/52fcaf7b1d1a6ad5c5a240a3802314ac/Immagine_2022-07-14_115538.png)
## 3. Read n-tuple
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.
......@@ -174,6 +178,10 @@ example from terminal:
`> python analyze_ntuple.py fout_ntuple.root 0 10000 -c 0 1 2 3 4 5 6 7 8 -o data_analysis.root -r 0 -exp CNAO_2021_11_17 -t 4`
Example of data_analysis.root:
![Immagine_2022-07-14_115856](uploads/869e5660328b0ef65973ca3b6bfc2de6/Immagine_2022-07-14_115856.png)
## 4. Energy Resolution
The function in `$HOME/foot_turin/Script/PythonScript/sw_standalone/energy_resolution.py` performs the energy resolution evaluation from the Amplitude and Charge histograms created in step 3. It is called by the `Jupyter Notebook` script in `$HOME/foot_turin/Script/PythonScript/sw_standalone/notebook/FitCalorimeterDistribution.ipynb`
......
......