1#ifndef TG4_PRIMARY_GENERATOR_ACTION_H
2#define TG4_PRIMARY_GENERATOR_ACTION_H
20#include <G4VUserPrimaryGeneratorAction.hh>
62 const TParticle* particle)
const;
64 const TParticle* particle)
const;
67 const G4ThreeVector& position, G4double time,
const G4ThreeVector& momentum,
68 G4double energy,
const G4ThreeVector& polarization, G4double charge,
69 G4double weight)
const;
Definition of the TG4Verbose class.
Provides mapping between TDatabasePDG and Geant4 particles.
Primary generator action defined via TVirtualMCStack and TVirtualMCApplication.
G4bool fSkipUnknownParticles
Option to skip particles which do not exist in Geant4.
G4bool CheckParticleDefinition(const G4ParticleDefinition *particleDefinition, const TParticle *particle) const
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.
TG4ParticlesManager * fParticlesManager
Thread-local particles manager.
TG4PrimaryGeneratorMessenger * fMessenger
Messenger.
TVirtualMCStack * fMCStack
Thread-local stacks.
G4bool fCached
Flag whether thread-local variables have been cached.
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
virtual void GeneratePrimaries(G4Event *event)
G4bool CheckVMCStack(TVirtualMCStack *stack) const
void TransformPrimaries(G4Event *event)
TG4TrackManager * fTrackManager
Thread-local track manager.
virtual ~TG4PrimaryGeneratorAction()
void TransformTracks(G4Event *event)
G4double GetProperCharge(const G4ParticleDefinition *particleDefinition, const TParticle *particle) const
TG4PrimaryGeneratorAction()
TMCManagerStack * fMCManagerStack
Messenger class that defines commands for TG4PrimaryGeneratorAction.
The class for storing G4 tracks in VMC sack.
Base class for defining the verbose level and a common messenger.