This repository contains code and scripts developed as part of the feasibility study for a monitored neutrino beam at the European Spallation Source (ESS). The main goal of this project is to analyze data coming from Geant4 simulations — with a current focus on simulating the hadron dump.
- skim_tree.cpp — Processes the .root output from the simulation, picking out the relevant info and creating a new ROOT tree for further analysis.
- data_analysis.cpp — Takes the .root file produced by skim_tree.cpp and runs the actual data analysis: making plots, histograms, mapping particle positions in the x-y plane, etc.
- anything else that might come to mind (I will try to update this README whenever I add new code).
This is very much a work in progress — things are likely to change and evolve.
To get a local copy of this repository, simply run in your terminal:
git clone https://github.com/annascanu/ESSDataAnalysis- ROOT (CERN data analysis framework): make sure ROOT is installed and properly configured on your machine.
If ROOT is available on your system, you should be able to run:
root-config --versionTo compile the scripts:
c++ skim_tree.cpp `root-config --cflags --libs` -o skim_tree.out
c++ data_analysis.cpp `root-config --cflags --libs` -o data_analysis.outand to run them:
./skim_tree.out input.root
./data_analysis.out filtered_input.rootReplace input.root with the .root file produced by your Geant4 simulation.
- This is still very early-stage work — feedback, suggestions, and contributions are welcome!
- If you run into any issues, please contact me: I have much to learn :)
This project is licensed under the MIT License — see the LICENSE file for details.