DDSim: Geant4ParticleGun: restore simple way for fixed energy
Some time in the past, the simple fixed momentum setting for particle gun was lost. Now we set a fixed energy if the Energy property is set, otherwise we use momentumMin and momentumMax to chose a momentum from a range. Also changed some printouts to show the range we chose and the final value used during simulation.
Showing
- DDG4/include/DDG4/Geant4IsotropeGenerator.h 1 addition, 7 deletionsDDG4/include/DDG4/Geant4IsotropeGenerator.h
- DDG4/include/DDG4/Geant4ParticleGenerator.h 7 additions, 1 deletionDDG4/include/DDG4/Geant4ParticleGenerator.h
- DDG4/include/DDG4/Geant4ParticleGun.h 1 addition, 1 deletionDDG4/include/DDG4/Geant4ParticleGun.h
- DDG4/python/DDG4.py 1 addition, 1 deletionDDG4/python/DDG4.py
- DDG4/python/DDSim/Helper/Gun.py 6 additions, 0 deletionsDDG4/python/DDSim/Helper/Gun.py
- DDG4/src/Geant4IsotropeGenerator.cpp 1 addition, 13 deletionsDDG4/src/Geant4IsotropeGenerator.cpp
- DDG4/src/Geant4ParticleGenerator.cpp 26 additions, 6 deletionsDDG4/src/Geant4ParticleGenerator.cpp
- DDG4/src/Geant4ParticleGun.cpp 12 additions, 6 deletionsDDG4/src/Geant4ParticleGun.cpp
- doc/usermanuals/DDG4/sections/Setup.tex 1 addition, 1 deletiondoc/usermanuals/DDG4/sections/Setup.tex
- examples/ClientTests/scripts/NestedBoxReflection.py 1 addition, 1 deletionexamples/ClientTests/scripts/NestedBoxReflection.py
Loading
Please register or sign in to comment