Matrix simulation
Datas are saved into the build folder in the "data.root" file. You can change file name with:
/Analysis/SetFileName <new_name.root> (must include ".root")
It is possible to change the scintillation crystals material and size:
/MatriX/det/CrysSize
/MatriX/det/CrysSize3
/MatriX/det/CrysMaterial <material_name> ("BC400" or "LYSO")
It is possible to change the SiPM model:
/MatriX/det/SiPMmodel <model_name> ("25PE", "50PE", "75PE", "25CS", "50CS", "75CS")
It is possible to put a mask on MatriX to isolate the elements:
/MatriX/det/Mask (default is "false")
It is possible to activate dark counts or optical cross talk:
/Element/det/OCT (default is false)
/Element/det/DN (default is false)
It is possible to change beam rate, particle or energy:
/Primaries/Rate
/gun/particle
/gun/energy (momentum as well)
To see the signals you must use signals.C macro:
bash>> root
root-bash>> .L signals.C
root-bash>> signals()
or
signals(path-to-file)
or
signals(path-to-file, path-to-output-file)
or
signals(path-to-file, threashold, path-to-output-file) (threashold is in number of pixel activated per channel)
These commands will produce a out.txt file. Here you have the number of signals per channel, the proton current (always at max 0.22) and the run duration. To extract beam information from datas you can use readgio.cpp macro:
bash>> root
root-bash>> .L readgio.cpp
root-bash>> readMatrix("out.txt") (it requires a "fig" directory to exist in the build folder)