Geant4 VMC Version 6.6
|
Primary generator action defined via TVirtualMCStack and TVirtualMCApplication. More...
#include <TG4PrimaryGeneratorAction.h>
Public Member Functions | |
TG4PrimaryGeneratorAction () | |
virtual | ~TG4PrimaryGeneratorAction () |
virtual void | GeneratePrimaries (G4Event *event) |
void | SetSkipUnknownParticles (G4bool value) |
Set the option to skip particles which do not exist in Geant4. | |
G4bool | GetSkipUnknownParticles () const |
Return the option to skip particles which do not exist in Geant4. | |
Public Member Functions inherited from TG4Verbose | |
TG4Verbose (const G4String &cmdName) | |
TG4Verbose (const G4String &cmdName, G4int verboseLevel) | |
virtual | ~TG4Verbose () |
virtual void | VerboseLevel (G4int level) |
virtual G4int | VerboseLevel () const |
Private Member Functions | |
G4bool | CheckVMCStack (TVirtualMCStack *stack) const |
G4bool | CheckParticleDefinition (const G4ParticleDefinition *particleDefinition, const TParticle *particle) const |
G4double | GetProperCharge (const G4ParticleDefinition *particleDefinition, const TParticle *particle) const |
G4PrimaryVertex * | AddParticleToVertex (G4Event *event, G4PrimaryVertex *vertex, const G4ParticleDefinition *particleDefinition, const G4ThreeVector &position, G4double time, const G4ThreeVector &momentum, G4double energy, const G4ThreeVector &polarization, G4double charge, G4double weight) const |
void | TransformPrimaries (G4Event *event) |
void | TransformTracks (G4Event *event) |
Private Attributes | |
TG4PrimaryGeneratorMessenger * | fMessenger |
Messenger. | |
TG4ParticlesManager * | fParticlesManager |
Thread-local particles manager. | |
TG4TrackManager * | fTrackManager |
Thread-local track manager. | |
TVirtualMCStack * | fMCStack |
Thread-local stacks. | |
TMCManagerStack * | fMCManagerStack |
G4bool | fCached |
Flag whether thread-local variables have been cached. | |
G4bool | fSkipUnknownParticles |
Option to skip particles which do not exist in Geant4. | |
Primary generator action defined via TVirtualMCStack and TVirtualMCApplication.
Definition at line 41 of file TG4PrimaryGeneratorAction.h.
TG4PrimaryGeneratorAction::TG4PrimaryGeneratorAction | ( | ) |
Default constructor
Definition at line 55 of file TG4PrimaryGeneratorAction.cxx.
|
virtual |
Destructor
Definition at line 71 of file TG4PrimaryGeneratorAction.cxx.
|
virtual |
Generate primary particles by the selected generator.
Definition at line 304 of file TG4PrimaryGeneratorAction.cxx.
|
inline |
Set the option to skip particles which do not exist in Geant4.
Definition at line 92 of file TG4PrimaryGeneratorAction.h.
Referenced by TG4PrimaryGeneratorMessenger::SetNewValue().
|
inline |
Return the option to skip particles which do not exist in Geant4.
Definition at line 98 of file TG4PrimaryGeneratorAction.h.
|
private |
Definition at line 83 of file TG4PrimaryGeneratorAction.cxx.
Referenced by TransformPrimaries(), and TransformTracks().
|
private |
Definition at line 101 of file TG4PrimaryGeneratorAction.cxx.
Referenced by TransformPrimaries(), and TransformTracks().
|
private |
Definition at line 126 of file TG4PrimaryGeneratorAction.cxx.
Referenced by TransformPrimaries(), and TransformTracks().
|
private |
Definition at line 142 of file TG4PrimaryGeneratorAction.cxx.
Referenced by TransformPrimaries(), and TransformTracks().
|
private |
Create a new G4PrimaryVertex objects for each TParticle in the VMC stack.
Definition at line 171 of file TG4PrimaryGeneratorAction.cxx.
Referenced by GeneratePrimaries().
|
private |
Create a new G4PrimaryVertex objects for each TParticle in the VMC stack.
Definition at line 229 of file TG4PrimaryGeneratorAction.cxx.
Referenced by GeneratePrimaries().
|
private |
Messenger.
Definition at line 75 of file TG4PrimaryGeneratorAction.h.
Referenced by TG4PrimaryGeneratorAction(), and ~TG4PrimaryGeneratorAction().
|
private |
Thread-local particles manager.
Definition at line 77 of file TG4PrimaryGeneratorAction.h.
Referenced by GeneratePrimaries(), GetProperCharge(), TransformPrimaries(), and TransformTracks().
|
private |
Thread-local track manager.
Definition at line 79 of file TG4PrimaryGeneratorAction.h.
Referenced by GeneratePrimaries(), TransformPrimaries(), and TransformTracks().
|
private |
Thread-local stacks.
Definition at line 81 of file TG4PrimaryGeneratorAction.h.
Referenced by GeneratePrimaries(), and TransformPrimaries().
|
private |
Definition at line 82 of file TG4PrimaryGeneratorAction.h.
Referenced by GeneratePrimaries(), and TransformTracks().
|
private |
Flag whether thread-local variables have been cached.
Definition at line 84 of file TG4PrimaryGeneratorAction.h.
Referenced by GeneratePrimaries().
|
private |
Option to skip particles which do not exist in Geant4.
Definition at line 86 of file TG4PrimaryGeneratorAction.h.
Referenced by CheckParticleDefinition(), GetSkipUnknownParticles(), and SetSkipUnknownParticles().