SciFi simulation
- signalsLite.C: macro to process MC output and mimic DAQ
- merge.C: macro to merge files
- parallel.py: parallelization script. To be improved: so far there is no queue, the next processes are started only after all the previous batch has been terminated. With this version is better to run geant4 macros that have similar processing time
git clone this repo and create a build directory.
cd path-to-build
cmake path-to-repo
make -jN
With N <= number of machine cores
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)