Geant4  10.02.p02
TSPrimaryGeneratorAction Class Reference

#include <TSPrimaryGeneratorAction.hh>

+ Inheritance diagram for TSPrimaryGeneratorAction:
+ Collaboration diagram for TSPrimaryGeneratorAction:

Public Member Functions

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

Private Attributes

G4ParticleGunfGun
 

Detailed Description

Definition at line 50 of file TSPrimaryGeneratorAction.hh.

Constructor & Destructor Documentation

TSPrimaryGeneratorAction::TSPrimaryGeneratorAction ( )

Definition at line 54 of file TSPrimaryGeneratorAction.cc.

References G4ParticleTable::FindParticle(), G4ParticleTable::GetParticleTable(), and MeV.

+ Here is the call graph for this function:

TSPrimaryGeneratorAction::~TSPrimaryGeneratorAction ( )
virtual

Definition at line 70 of file TSPrimaryGeneratorAction.cc.

Member Function Documentation

void TSPrimaryGeneratorAction::GeneratePrimaries ( G4Event anEvent)
virtual

Implements G4VUserPrimaryGeneratorAction.

Definition at line 77 of file TSPrimaryGeneratorAction.cc.

References G4UniformRand, TSDetectorConstruction::GetWorldDimensions(), TSDetectorConstruction::Instance(), and pos.

+ Here is the call graph for this function:

Member Data Documentation

G4ParticleGun* TSPrimaryGeneratorAction::fGun
private

Definition at line 60 of file TSPrimaryGeneratorAction.hh.


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