Geant4  10.00.p02
PurgMagPrimaryGeneratorAction Class Reference

#include <PurgMagPrimaryGeneratorAction.hh>

+ Inheritance diagram for PurgMagPrimaryGeneratorAction:
+ Collaboration diagram for PurgMagPrimaryGeneratorAction:

Public Member Functions

 PurgMagPrimaryGeneratorAction ()
 
 ~PurgMagPrimaryGeneratorAction ()
 
void GeneratePrimaries (G4Event *)
 
void SetRndmVertex (G4bool val)
 
- Public Member Functions inherited from G4VUserPrimaryGeneratorAction
 G4VUserPrimaryGeneratorAction ()
 
virtual ~G4VUserPrimaryGeneratorAction ()
 

Private Attributes

G4ParticleGunparticleGun
 
G4bool rndmVertex
 

Detailed Description

Definition at line 52 of file PurgMagPrimaryGeneratorAction.hh.

Constructor & Destructor Documentation

PurgMagPrimaryGeneratorAction::PurgMagPrimaryGeneratorAction ( )

Definition at line 57 of file PurgMagPrimaryGeneratorAction.cc.

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

+ Here is the call graph for this function:

PurgMagPrimaryGeneratorAction::~PurgMagPrimaryGeneratorAction ( )

Definition at line 78 of file PurgMagPrimaryGeneratorAction.cc.

References particleGun.

Member Function Documentation

void PurgMagPrimaryGeneratorAction::GeneratePrimaries ( G4Event anEvent)
virtual

Implements G4VUserPrimaryGeneratorAction.

Definition at line 85 of file PurgMagPrimaryGeneratorAction.cc.

References cm, G4BestUnit, G4cout, G4ParticleGun::GeneratePrimaryVertex(), particleGun, G4VPrimaryGenerator::SetParticlePosition(), and G4InuclParticleNames::z0.

+ Here is the call graph for this function:

void PurgMagPrimaryGeneratorAction::SetRndmVertex ( G4bool  val)
inline

Definition at line 60 of file PurgMagPrimaryGeneratorAction.hh.

References rndmVertex.

Member Data Documentation

G4ParticleGun* PurgMagPrimaryGeneratorAction::particleGun
private
G4bool PurgMagPrimaryGeneratorAction::rndmVertex
private

Definition at line 64 of file PurgMagPrimaryGeneratorAction.hh.

Referenced by SetRndmVertex().


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