Skip to content
This repository was archived by the owner on Mar 31, 2022. It is now read-only.

gdalmaso96/SciFi

Repository files navigation

SciFi

SciFi simulation

Macros

  • 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

Installation:

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

Output signals

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)

About

SciFi complete simulation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages