This is an example of Geant4 simulation for experiment.
- Prepare materials
- Output for ROOT tree
> git clone https://github.com/mzks/mc
> cd mc
> cmake -S source -B build
> cmake --build build
- GUI mode
>cd bench
>../build/mc
- Batch mode
>cd bench
>../build/mc bat.mac
- Geant4.10.6
- ROOT6
- Qt (GUI mode)
You can run easily, without installing ROOT and Geant4 using virtual machine.
When you use this virtual machine, you have to do >source $ROOTSYS/bin/thisroot.sh before running.