Skip to content

Simulation software for the 2023 dual-readout calorimetry test-beam.

License

Notifications You must be signed in to change notification settings

polesell/DRTB23Sim

 
 

Repository files navigation

DRTB23Sim

A Geant4 simulation of the 2023 Dual-Readout em-sized tubes prototype beam test.

Table of Contents
  1. Project description
  2. Documentation and results
  3. Available datasets and analyses
  4. How to
  5. My quick Geant4 installation

Project description

The project targets a standalone Geant4 simulation of the dual-readout electromagnetic-sized calorimeter 2023 test beam at the CERN-SPS H8 beam line.

Documentation and results

Selected presentations

  • To be added.

Available datasets and analyses

  • To be added.

How to

Build, compile and execute on Mac/Linux

  1. git clone the repo
    git clone https://github.com/DRCalo/DRTB23Sim.git
  2. source Geant4 env
    source /relative_path_to/geant4-install/bin/geant4.sh
  3. 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
  4. 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)

Build, compile and execute on lxplus

  1. git clone the repo
    git clone https://github.com/DRCalo/DRTB23Sim.git
  2. 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
  3. 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

My quick Geant4 installation

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".

  1. create build directory alongside source files
    cd /path/to
    mkdir geant4.10.07-build
    cd geant4.10.07-build
  2. 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
  3. make it (using N threads, e.g. -j 4)
    make -jN
    make install

About

Simulation software for the 2023 dual-readout calorimetry test-beam.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 90.3%
  • C 8.3%
  • CMake 1.4%