A Geant4 simulation of the 2023 Dual-Readout em-sized tubes prototype beam test.
Table of Contents
The project targets a standalone Geant4 simulation of the dual-readout electromagnetic-sized calorimeter 2023 test beam at the CERN-SPS H8 beam line.
- To be added.
- To be added.
- git clone the repo
git clone https://github.com/DRCalo/DRTB23Sim.git
- source Geant4 env
source /relative_path_to/geant4-install/bin/geant4.sh
- cmake build directory and make (example using geant4.10.07_p01)
mkdir build && cd build cmake -DGeant4_DIR=/absolute_path_to/geant4.10.07_p01-install/lib/Geant4-10.7.1/ relative_path_to/DRTB23Sim/ make
- execute (example with DRTB23Sim_run.mac macro card, 2 thread, FTFP_BERT physics list)
./DRTB23Sim -m DRTB23Sim_run.mac -t 2 -pl FTFP_BERT
Parser options
- -m macro.mac: pass a Geant4 macro card
- -t integer: pass number of threads for multi-thread execution (example -t 3, default t 2)
- -pl Physics_List: select Geant4 physics list (example -pl FTFP_BERT)
Note: the test-beam simulated platform can be shifted in x and y directions as in the actual configuration. The platform can also rotate around its center (the horizontal rotation). The housing containing the calorimeter can the lifted up from its back side creating a spin around its front face (the vertical rotation). By default, such parameters are set to zero. They are configurable via the UI macro card before the run is initialized as:
/tbgeo/xshift <> [<Unit>]
/tbgeo/yshift <> [<Unit>]
/tbgeo/horizrot <> [<Unit>]
/tbgeo/vertrot <> [<Unit>]
- git clone the repo
git clone https://github.com/DRCalo/DRTB23Sim.git
- cmake, build directory and make (example using geant4.10.07_p01, check for gcc and cmake dependencies for other versions)
mkdir build && cd DREMTubes-build source /cvmfs/sft.cern.ch/lcg/contrib/gcc/8.3.0/x86_64-centos7/setup.sh source /cvmfs/geant4.cern.ch/geant4/10.7.p01/x86_64-centos7-gcc8-optdeb-MT/CMake-setup.sh export CXX=`which g++` export CC=`which gcc` cmake3 -DGeant4_DIR=/cvmfs/geant4.cern.ch/geant4/10.7.p01/x86_64-centos7-gcc8-optdeb-MT/lib64/Geant4-10.7.1 ../DRTB23Sim/ make
- execute (example with DRTB23Sim_run.mac macro card, 2 threads and FTFP_BERT physics list)
./DRTB23Sim -m DRTB23Sim_run.mac -t 2 -pl FTFP_BERT
Here is my standard Geant4 installation (example with Geant4.10.7.p01) starting from the unpacked geant4.10.07.tar.gz file under the example path "path/to".
- create build directory alongside source files
cd /path/to mkdir geant4.10.07-build cd geant4.10.07-build
- link libraries with CMAKE (example with my favourite libraries)
cmake -DCMAKE_INSTALL_PREFIX=/Users/lorenzo/myG4/geant4.10.07_p01-install \ -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_QT=ON -DGEANT4_BUILD_MULTITHREADED=ON \ -DGEANT4_USE_GDML=ON ../geant4.10.07.p01
- make it (using N threads, e.g. -j 4)
make -jN make install