- Geant4-10.7 stable version
git clone https:://github.com/sh-lim/PNU-NPL.gitcd Geant4/Geant4_simulation/Opsim
mkdir build
cd build
cmake ..
makeTo manage parameter.conf, link of parameter file is required. and also if you want to make another parameter.conf or want to link , make and link it to the build directory
and linking other macros including vis.mac and run1.mac make easier to manage
cd build
ln -sf ../OpParameter.conf .
ln -sf ../run1.mac .
ln -sf ../vis.mac .You can run this example with simple command.
./OpsimThe default setting of parameter container is "OpParameter.conf" in build directory
- applied random number to X,Y and Z of beam starting point with its unit.
- renamed function name 'read,'Print' to 'ReadParameters',"PrintParameter".
- unified the style (int, Int_t, G4int) to G4int.
- checked Random Seed and output
- applying seed at G4sim.cc is effective to PrimaryGeneratorAction
- checked 10000 different outputs of flat distribution of G4UniformRand
- /random/setSeed command in run1.mac was removed because it is not effective
Opsim.cc: batch mode condition was modified (argc>2 => argc>=2)Opsim.cc: time based seed was implemented
OpRunAction.xx: added container for optical photonsOpTrackingAction.cc: extract optical photons when it created and diedOpParameters.conf: added boolean structure for photon output
OpParameterContainer.xx: moved to standard class to static class