Standard simulation

To run a simulation:

  1. cd R3BROOT_BUILD_DIR
  2. . ./config.sh
  3. cd R3BROOT_SOURCE_DIR/macros/r3b
  4. root -l run_sim.C
  5. [..] .q

This will produce output file sim.root with results of simulation in TTree format and parameter file par.root with parameter containers and detector geometry.

Output file can be directly opened and viewed with ROOT. TTree object with name "evt" contains branches of type TClonesArray with MC tracks and MC points for each detector present in the simulation.