Program to build experimental geometries for the HIBEAM and NNBAR experiments using the TGeo classes of ROOT. The program creates root or gdml files that can be used with hibeam_g4 (https://github.com/HIBEAM-NNBAR/hibeam_g4).
Go to the path you want to install hibeam_g4_geobuilder and clone the repository:
cd /install/path
git clone git@github.com:HIBEAM-NNBAR/hibeam_g4_geobuilder.git
Create a build directory. In the build directory, first run cmake then compile:
mkdir hibeam_g4_geobuilder_build
cd hibeam_g4_geobuilder_build
cmake ../hibeam_g4_geobuilder
make
Run the program with
./geobuilder [OPTIONS]
The following options are available:
-h or --help: Display the help message.-c filename or --config filename: Specify the name of the file containing model parameters. If no file is specified, default parameters will be used.-v or --view: Display the created geometry in ROOT event viewer.-s filename or --save_as filename: Save the created geometry to a file with the specified name.The geobuilder can create a number of models for different setups. Currently supported are:
--hibeam The HIBEAM annihilation setup: Carbon foil, beam pipe, TPC, WASA calorimeter barrel, cosmic veto and beam dump.--sterile The HIBEAM sterile neutron annihilation setup: Carbon foil, beam pipe, TPC, WASA calorimeter barrel and back endcap, cosmic veto and beam dump.--krakow The prototypes test setup at the CCB in Krakow.--axion The neutron detector and beam dump for the HIBEAM axion search.It is also possible to build models of single components of the HIBEAM annihilation component or a combination of a few of them. The corresponding commands are
--barrel for the WASA scintillator barrel.--f_endcap for the WASA scintillator front endcap.--b_endcap for the WASA scintillator back endcap.--yoke for the WASA iron yoke.--tpc for the HIBEAM TPC.--veto for the HIBEAM cosmic veto.