Geant4  10.01
ExP01PrimaryGeneratorAction Class Reference

Primary generator action for the persistency example. More...

#include <ExP01PrimaryGeneratorAction.hh>

+ Inheritance diagram for ExP01PrimaryGeneratorAction:
+ Collaboration diagram for ExP01PrimaryGeneratorAction:

Public Member Functions

 ExP01PrimaryGeneratorAction (ExP01DetectorConstruction *)
 
 ~ExP01PrimaryGeneratorAction ()
 
virtual void GeneratePrimaries (G4Event *)
 
- Public Member Functions inherited from G4VUserPrimaryGeneratorAction
 G4VUserPrimaryGeneratorAction ()
 
virtual ~G4VUserPrimaryGeneratorAction ()
 

Private Attributes

G4ParticleGunfParticleGun
 
ExP01DetectorConstructionfMyDetector
 

Detailed Description

Primary generator action for the persistency example.

Definition at line 48 of file ExP01PrimaryGeneratorAction.hh.

Constructor & Destructor Documentation

ExP01PrimaryGeneratorAction::ExP01PrimaryGeneratorAction ( ExP01DetectorConstruction myDC)

Definition at line 47 of file ExP01PrimaryGeneratorAction.cc.

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

+ Here is the call graph for this function:

ExP01PrimaryGeneratorAction::~ExP01PrimaryGeneratorAction ( )

Definition at line 67 of file ExP01PrimaryGeneratorAction.cc.

References fParticleGun.

Member Function Documentation

void ExP01PrimaryGeneratorAction::GeneratePrimaries ( G4Event anEvent)
virtual

Implements G4VUserPrimaryGeneratorAction.

Definition at line 74 of file ExP01PrimaryGeneratorAction.cc.

References cm, fMyDetector, fParticleGun, G4ParticleGun::GeneratePrimaryVertex(), ExP01DetectorConstruction::GetWorldFullLength(), position, and G4VPrimaryGenerator::SetParticlePosition().

+ Here is the call graph for this function:

Member Data Documentation

ExP01DetectorConstruction* ExP01PrimaryGeneratorAction::fMyDetector
private

Definition at line 59 of file ExP01PrimaryGeneratorAction.hh.

Referenced by GeneratePrimaries().

G4ParticleGun* ExP01PrimaryGeneratorAction::fParticleGun
private

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