GLAD-TPC (HYDRA) is part of the R3BRoot software, the Monte Carlo simulation and experimental data analysis of the R3B (Reactions with Relativistic Radioactive Beams) nuclear physics experiments at the FAIR research center (Facility for Antiproton and Ion Research).
For the software-related user support you can post a new topic on our forum.
Please visit releases
Please ask your questions, request features, and report issues by creating a github issue.
The GLAD-TPC project (as part of R3BRoot) uses clang-format-15 to ensure a common code formatting. The script "apply-format.sh" can be used for this purpose:
source apply-format.sh
First, you will need to install FairSoft and FairRoot and R3BRoot. For more details: instructions. FaiSoft version: nov22p1 FairROOT version: v18.8.0 Newer versions will not work properly with the simulation.
Follow the instructions in the R3BRoot README.
For the general R3BRoot simulations, follow the instructions in R3BRoot README.
The steps to properly run the glad-tpc simulation:
-
Create all the necessary files to run the code:
- The particle generator needs to be created, to do so go in the folder
/glad-tpc/gtpgen/
and run the macroINCL_Background_ASCIIGenerator.cc
to generate the bkg orPhaseSpaceDecay_hypertriton_ASCIIGenerator.cc
to generate the hypertriton decay. The instructions are inside the macros. The output of the macros could be found in the folder/glad-tpc/gtpgen/ASCII/
- The geometry of the detector you want to use should be already in the folder
/glad-tpc/geometry/
if it is not the case, go in the folder/glad-tpc/macros/geo/
and run the macro for the geometry you want.
- The particle generator needs to be created, to do so go in the folder
-
How to run the simulation, in the folder
/glad-tpc/macros/sim
there are 2 macros:simHYDRA.C
: Needs the files created in step 1 to produce the events.run_simHYDRA
: It requires the definition of the number of events, geometry and generator you want to use. In output will producepar.root
,sim.root
and two.png
figures (these to check that the chamber is well placed).
-
Check the simulation output, in the folder of the geometry chosen ,e.g. Prototype, there are the following macros:
eventDisplay.C
: To see the geometry and the particles event by event. Be careful, close it from the terminal (.q).checkAll.C
: Checks the primary, Points and Hits characteristics.
-
Electron drift, in the folder
/glad-tpc/macros/proj/
there are several macros, the important ones are:run_proj.root
: Simple projection of the tracks onto the pad planes, produce in output the fileproj.root
.readProjPoints.C
: General macro for checking the projPoints from the projector.
-
Visualization of the pad plane, in the folder
/glad-tpc/macro/vis
there is the macroreadVPadPlane.C
: This macro plots the output of the glad-tpc projector: plots theR3BGTPCProjPoint
which contains the virtual pads calculated after the projection of the track. -
Electronics response, in the folder
/glad-tpc/macro/electronics
there is the macroElectronics_MT.C
: This macro simulate the electronics response.
It is possible to use the bash script run_full.sh
to run all these steps at once. BE CAREFUL, set first the wanted parameters in the different folders.
...Under development...