Geant4  10.01.p01
B01PrimaryGeneratorAction Class Reference

#include <B01PrimaryGeneratorAction.hh>

+ Inheritance diagram for B01PrimaryGeneratorAction:
+ Collaboration diagram for B01PrimaryGeneratorAction:

Public Member Functions

 B01PrimaryGeneratorAction ()
 
 ~B01PrimaryGeneratorAction ()
 
virtual void GeneratePrimaries (G4Event *anEvent)
 
- Public Member Functions inherited from G4VUserPrimaryGeneratorAction
 G4VUserPrimaryGeneratorAction ()
 
virtual ~G4VUserPrimaryGeneratorAction ()
 

Private Attributes

G4ParticleGunfParticleGun
 

Detailed Description

Definition at line 39 of file B01PrimaryGeneratorAction.hh.

Constructor & Destructor Documentation

B01PrimaryGeneratorAction::B01PrimaryGeneratorAction ( )

Definition at line 46 of file B01PrimaryGeneratorAction.cc.

References cm, fParticleGun, MeV, G4Neutron::NeutronDefinition(), G4ParticleGun::SetParticleDefinition(), G4ParticleGun::SetParticleEnergy(), G4ParticleGun::SetParticleMomentumDirection(), and G4VPrimaryGenerator::SetParticlePosition().

+ Here is the call graph for this function:

B01PrimaryGeneratorAction::~B01PrimaryGeneratorAction ( )

Definition at line 59 of file B01PrimaryGeneratorAction.cc.

References fParticleGun.

Member Function Documentation

void B01PrimaryGeneratorAction::GeneratePrimaries ( G4Event anEvent)
virtual

Implements G4VUserPrimaryGeneratorAction.

Definition at line 66 of file B01PrimaryGeneratorAction.cc.

References fParticleGun, and G4ParticleGun::GeneratePrimaryVertex().

+ Here is the call graph for this function:

Member Data Documentation

G4ParticleGun* B01PrimaryGeneratorAction::fParticleGun
private

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