Geant4  10.02.p02
Par02PrimaryGeneratorAction Class Reference

Construction of a primary generation action. More...

#include <Par02PrimaryGeneratorAction.hh>

+ Inheritance diagram for Par02PrimaryGeneratorAction:
+ Collaboration diagram for Par02PrimaryGeneratorAction:

Public Member Functions

 Par02PrimaryGeneratorAction ()
 
 ~Par02PrimaryGeneratorAction ()
 
virtual void GeneratePrimaries (G4Event *anEvent)
 
G4ParticleGunGetParticleGun ()
 
- Public Member Functions inherited from G4VUserPrimaryGeneratorAction
 G4VUserPrimaryGeneratorAction ()
 
virtual ~G4VUserPrimaryGeneratorAction ()
 

Private Attributes

G4ParticleGunfParticleGun
 

Detailed Description

Construction of a primary generation action.

For simplicity, we use here the particle gun, but in the original application for FCC (developed by Anna Zaborowska), the Monte Carlo event generator Pythia8 is used as generator and it is interfaced to Geant4 via HepMC.

Definition at line 46 of file Par02PrimaryGeneratorAction.hh.

Constructor & Destructor Documentation

Par02PrimaryGeneratorAction::Par02PrimaryGeneratorAction ( )

Definition at line 42 of file Par02PrimaryGeneratorAction.cc.

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

+ Here is the call graph for this function:

Par02PrimaryGeneratorAction::~Par02PrimaryGeneratorAction ( )

Definition at line 59 of file Par02PrimaryGeneratorAction.cc.

References fParticleGun.

Member Function Documentation

void Par02PrimaryGeneratorAction::GeneratePrimaries ( G4Event anEvent)
virtual
G4ParticleGun * Par02PrimaryGeneratorAction::GetParticleGun ( void  )

Definition at line 92 of file Par02PrimaryGeneratorAction.cc.

References fParticleGun.

Member Data Documentation

G4ParticleGun* Par02PrimaryGeneratorAction::fParticleGun
private

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