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, no optical propagation, and no vertical rotation of the calorimeter)
./DRTB23Sim -m DRTB23Sim_run.mac -t 2 -pl FTFP_BERT -opt false -vert false
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)
- -opt FullOptic: boolean variable to switch on (true) the optical photon propagation in fibers (example -opt true, default false)
- -vert VertRot: boolean to switch on (true) vertical rotation of the calorimeter (example -vert true, default false)
- 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