Skip to content

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

License

Notifications You must be signed in to change notification settings

DRCalo/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)
    ./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>]

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