TreeBranchesDescription
This file has all the information about the format of the variables inside the Trees with data, which is in the .root file. The data file is just a small sample to run some tests if needed.
BeamParticleSelection_DataSorted.C
This macro takes the Trees whitin the data, which have the clusters already constructed, and rejects those that are noise, problems with the electronics and the cosmic rays that don't pass throught the beginning of the prototype. Then it outputs another file with the same structure as the data but with only the events selected as beam particles.
ParticleTypeSelection.C
Separation between muons, remaining cosmic rays and the pion and electron cascades are done with this macro. (Half documented)
To run a macro just open the .root file with root and then execute the macro using the command:
.x Path to macro
10/02/2018 -> Fixed a bug where BeamParticleSelection_DataSorted.C crashes if executed twice without exiting root. Also now the program outputs how much evenets has eliminated. The name of the function now matchs the name of the file (for some reason Root needs it that way).