Geant4
10.03.p01
|
#include <G4GeneralParticleSource.hh>
Additional Inherited Members | |
Static Public Member Functions inherited from G4VPrimaryGenerator | |
static G4bool | CheckVertexInsideWorld (const G4ThreeVector &pos) |
Protected Attributes inherited from G4VPrimaryGenerator | |
G4ThreeVector | particle_position |
G4double | particle_time |
Andrea Dotti Feb 2015 GPS messenger design requires some explanation for what distributions parameters are concerned : Each thread has its own GPS since primary generation is a user action. However to save memory the underlying structures that provide the GPS functionalities ( the G4SPS*Distribution classes and the G4SPSRandomGenerator class) are shared among threads. This implies that modifying parameters of sources requires some attention: 1- Only one thread should change source parameters. 2- Changing of parameters can happen only between runs, when is guaranteed that no thread is accessing them 2- UI commands require that even if messenger is instantiated in a thread the commands are executed in the master (this is possible since V10.1) The simplest solution is to use UI commands to change GPS parameters and avoid C++ APIs. If this is inevitable a simple solution is to instantiate an instance of G4GeneralParticleSource explicitly in the master thread (for example in G4VUserActionInitialization::BuildForMaster() and set the defaults parameter there).
Definition at line 179 of file G4GeneralParticleSource.hh.
G4GeneralParticleSource::G4GeneralParticleSource | ( | ) |
Definition at line 78 of file G4GeneralParticleSource.cc.
G4GeneralParticleSource::~G4GeneralParticleSource | ( | ) |
Definition at line 97 of file G4GeneralParticleSource.cc.
Definition at line 102 of file G4GeneralParticleSource.cc.
void G4GeneralParticleSource::ClearAll | ( | ) |
Definition at line 166 of file G4GeneralParticleSource.cc.
Definition at line 172 of file G4GeneralParticleSource.cc.
Implements G4VPrimaryGenerator.
Definition at line 187 of file G4GeneralParticleSource.cc.
|
inline |
Definition at line 193 of file G4GeneralParticleSource.hh.
|
inline |
Definition at line 195 of file G4GeneralParticleSource.hh.
|
inline |
Definition at line 197 of file G4GeneralParticleSource.hh.
|
inline |
Definition at line 238 of file G4GeneralParticleSource.hh.
|
inline |
Definition at line 189 of file G4GeneralParticleSource.hh.
|
inline |
Definition at line 217 of file G4GeneralParticleSource.hh.
|
inline |
Definition at line 244 of file G4GeneralParticleSource.hh.
|
inline |
Definition at line 242 of file G4GeneralParticleSource.hh.
|
inline |
Definition at line 226 of file G4GeneralParticleSource.hh.
|
inline |
Definition at line 240 of file G4GeneralParticleSource.hh.
|
inline |
Definition at line 232 of file G4GeneralParticleSource.hh.
void G4GeneralParticleSource::ListSource | ( | ) |
Definition at line 118 of file G4GeneralParticleSource.cc.
Definition at line 158 of file G4GeneralParticleSource.cc.
Definition at line 141 of file G4GeneralParticleSource.cc.
Definition at line 211 of file G4GeneralParticleSource.hh.
Definition at line 207 of file G4GeneralParticleSource.hh.
Definition at line 235 of file G4GeneralParticleSource.hh.
Definition at line 220 of file G4GeneralParticleSource.hh.
|
inline |
Definition at line 214 of file G4GeneralParticleSource.hh.
|
inline |
Definition at line 224 of file G4GeneralParticleSource.hh.
Definition at line 230 of file G4GeneralParticleSource.hh.
Definition at line 204 of file G4GeneralParticleSource.hh.