Geant4  10.01.p03
ExN02PrimaryGeneratorAction Class Reference

#include <ExN02PrimaryGeneratorAction.hh>

+ Inheritance diagram for ExN02PrimaryGeneratorAction:
+ Collaboration diagram for ExN02PrimaryGeneratorAction:

Public Member Functions

 ExN02PrimaryGeneratorAction (ExN02DetectorConstruction *)
 
 ~ExN02PrimaryGeneratorAction ()
 
void GeneratePrimaries (G4Event *)
 
- Public Member Functions inherited from G4VUserPrimaryGeneratorAction
 G4VUserPrimaryGeneratorAction ()
 
virtual ~G4VUserPrimaryGeneratorAction ()
 

Private Attributes

G4ParticleGunparticleGun
 
ExN02DetectorConstructionmyDetector
 

Detailed Description

Definition at line 46 of file ExN02PrimaryGeneratorAction.hh.

Constructor & Destructor Documentation

ExN02PrimaryGeneratorAction::ExN02PrimaryGeneratorAction ( ExN02DetectorConstruction myDC)

Definition at line 46 of file ExN02PrimaryGeneratorAction.cc.

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

+ Here is the call graph for this function:

ExN02PrimaryGeneratorAction::~ExN02PrimaryGeneratorAction ( )

Definition at line 65 of file ExN02PrimaryGeneratorAction.cc.

References particleGun.

Member Function Documentation

void ExN02PrimaryGeneratorAction::GeneratePrimaries ( G4Event anEvent)
virtual

Implements G4VUserPrimaryGeneratorAction.

Definition at line 72 of file ExN02PrimaryGeneratorAction.cc.

References cm, G4ParticleGun::GeneratePrimaryVertex(), ExN02DetectorConstruction::GetWorldFullLength(), myDetector, particleGun, position, and G4VPrimaryGenerator::SetParticlePosition().

+ Here is the call graph for this function:

Member Data Documentation

ExN02DetectorConstruction* ExN02PrimaryGeneratorAction::myDetector
private

Definition at line 57 of file ExN02PrimaryGeneratorAction.hh.

Referenced by GeneratePrimaries().

G4ParticleGun* ExN02PrimaryGeneratorAction::particleGun
private

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