In order to automatize the data analysis chain (create_ntuple+read_ntuple) a macro is provided: `$HOME/foot_turin/Scripts/utils/auto_foot_analysis_chain.sh`
To run it from command line it needs two arguments: 1. run number 2. number of events. Go in the right directory and launch:
`cd $HOME/foot_turin/Scripts/utils/`
`source auto_foot_analysis_chain.sh 0 10000`
## 4. Energy Resolution
## 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`
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`