Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ExExChPrimaryGeneratorAction Class Reference

#include <ExExChPrimaryGeneratorAction.hh>

Inheritance diagram for ExExChPrimaryGeneratorAction:
Collaboration diagram for ExExChPrimaryGeneratorAction:

Public Member Functions

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

Detailed Description

Definition at line 43 of file ExExChPrimaryGeneratorAction.hh.

Constructor & Destructor Documentation

ExExChPrimaryGeneratorAction::ExExChPrimaryGeneratorAction ( )

Definition at line 42 of file ExExChPrimaryGeneratorAction.cc.

43 {
44  fParticleGun = new G4GeneralParticleSource();
45 }
ExExChPrimaryGeneratorAction::~ExExChPrimaryGeneratorAction ( )
virtual

Definition at line 49 of file ExExChPrimaryGeneratorAction.cc.

49  {
50  delete fParticleGun;
51 }

Member Function Documentation

void ExExChPrimaryGeneratorAction::GeneratePrimaries ( G4Event anEvent)
virtual

Implements G4VUserPrimaryGeneratorAction.

Definition at line 58 of file ExExChPrimaryGeneratorAction.cc.

58  {
59  fParticleGun->GeneratePrimaryVertex(anEvent);
60 }

Here is the call graph for this function:


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