Geant4  10.00.p01
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 ()
 

Static Public Member Functions

static const
B1PrimaryGeneratorAction
Instance ()
 

Private Attributes

G4ParticleGunfParticleGun
 
G4BoxfEnvelopeBox
 

Static Private Attributes

static B1PrimaryGeneratorActionfgInstance = 0
 

Detailed Description

The primary generator action class with particle gun.

The primary generator action class with particle gum.

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.

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.

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

Definition at line 60 of file B1PrimaryGeneratorAction.hh.

References fParticleGun.

const B1PrimaryGeneratorAction * B1PrimaryGeneratorAction::Instance ( void  )
static

Definition at line 49 of file B1PrimaryGeneratorAction.cc.

References fgInstance.

Member Data Documentation

G4Box * B1PrimaryGeneratorAction::fEnvelopeBox
private

Definition at line 61 of file B1PrimaryGeneratorAction.hh.

Referenced by GeneratePrimaries().

B1PrimaryGeneratorAction * B1PrimaryGeneratorAction::fgInstance = 0
staticprivate

Definition at line 63 of file B1PrimaryGeneratorAction.hh.

Referenced by Instance().

G4ParticleGun * B1PrimaryGeneratorAction::fParticleGun
private

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