Geant4  10.02.p02
B1PrimaryGeneratorAction Class Reference

The primary generator action class with particle gun. More...

#include <B1PrimaryGeneratorAction.hh>

+ Inheritance diagram for B1PrimaryGeneratorAction:
+ Collaboration diagram for B1PrimaryGeneratorAction:

Public Member Functions

 B1PrimaryGeneratorAction ()
 
virtual ~B1PrimaryGeneratorAction ()
 
virtual void GeneratePrimaries (G4Event *)
 
const G4ParticleGunGetParticleGun () const
 
 B1PrimaryGeneratorAction ()
 
virtual ~B1PrimaryGeneratorAction ()
 
virtual void GeneratePrimaries (G4Event *)
 
const G4ParticleGunGetParticleGun () const
 
 B1PrimaryGeneratorAction ()
 
virtual ~B1PrimaryGeneratorAction ()
 
virtual void GeneratePrimaries (G4Event *)
 
const G4ParticleGunGetParticleGun () const
 
- Public Member Functions inherited from G4VUserPrimaryGeneratorAction
 G4VUserPrimaryGeneratorAction ()
 
virtual ~G4VUserPrimaryGeneratorAction ()
 

Private Attributes

G4ParticleGunfParticleGun
 
G4BoxfEnvelopeBox
 

Detailed Description

The primary generator action class with particle gun.

The default kinematic is a 6 MeV gamma, randomly distribued in front of the phantom across 80% of the (X,Y) phantom size.

Definition at line 47 of file B1PrimaryGeneratorAction.hh.

Constructor & Destructor Documentation

B1PrimaryGeneratorAction::B1PrimaryGeneratorAction ( )

Definition at line 45 of file B1PrimaryGeneratorAction.cc.

References G4ParticleTable::FindParticle(), fParticleGun, G4ParticleTable::GetParticleTable(), MeV, G4ParticleGun::SetParticleDefinition(), G4ParticleGun::SetParticleEnergy(), and G4ParticleGun::SetParticleMomentumDirection().

+ Here is the call graph for this function:

B1PrimaryGeneratorAction::~B1PrimaryGeneratorAction ( )
virtual

Definition at line 65 of file B1PrimaryGeneratorAction.cc.

References fParticleGun.

B1PrimaryGeneratorAction::B1PrimaryGeneratorAction ( )
virtual B1PrimaryGeneratorAction::~B1PrimaryGeneratorAction ( )
virtual
B1PrimaryGeneratorAction::B1PrimaryGeneratorAction ( )
virtual B1PrimaryGeneratorAction::~B1PrimaryGeneratorAction ( )
virtual

Member Function Documentation

void B1PrimaryGeneratorAction::GeneratePrimaries ( G4Event anEvent)
virtual
virtual void B1PrimaryGeneratorAction::GeneratePrimaries ( G4Event )
virtual
virtual void B1PrimaryGeneratorAction::GeneratePrimaries ( G4Event )
virtual
const G4ParticleGun* B1PrimaryGeneratorAction::GetParticleGun ( void  ) const
inline

Definition at line 57 of file B1PrimaryGeneratorAction.hh.

References fParticleGun.

const G4ParticleGun* B1PrimaryGeneratorAction::GetParticleGun ( void  ) const
inline

Definition at line 57 of file B1PrimaryGeneratorAction.hh.

References fParticleGun.

Referenced by B1RunAction::EndOfRunAction(), and B1ConRunAction::EndOfRunAction().

+ Here is the caller graph for this function:

const G4ParticleGun* B1PrimaryGeneratorAction::GetParticleGun ( void  ) const
inline

Definition at line 57 of file B1PrimaryGeneratorAction.hh.

References fParticleGun.

Member Data Documentation

G4Box * B1PrimaryGeneratorAction::fEnvelopeBox
private

Definition at line 61 of file B1PrimaryGeneratorAction.hh.

Referenced by GeneratePrimaries().

G4ParticleGun * B1PrimaryGeneratorAction::fParticleGun
private

The documentation for this class was generated from the following files: