ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Par02PrimaryGeneratorAction Class Reference

#include <geant4/tree/geant4-10.6-release/examples/extended/parameterisations/Par02/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 45 of file Par02PrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 45 of file Par02PrimaryGeneratorAction.hh

Constructor & Destructor Documentation

Par02PrimaryGeneratorAction::Par02PrimaryGeneratorAction ( )

Definition at line 41 of file Par02PrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 41 of file Par02PrimaryGeneratorAction.cc

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

+ Here is the call graph for this function:

Par02PrimaryGeneratorAction::~Par02PrimaryGeneratorAction ( )

Definition at line 58 of file Par02PrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 58 of file Par02PrimaryGeneratorAction.cc

References fParticleGun.

Member Function Documentation

void Par02PrimaryGeneratorAction::GeneratePrimaries ( G4Event anEvent)
virtual

Implements G4VUserPrimaryGeneratorAction.

Definition at line 64 of file Par02PrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 64 of file Par02PrimaryGeneratorAction.cc

References fParticleGun, G4ParticleGun::GeneratePrimaryVertex(), G4PrimaryParticle::GetMomentum(), G4PrimaryVertex::GetNumberOfParticle(), G4Event::GetNumberOfPrimaryVertex(), G4PrimaryParticle::GetPDGcode(), G4PrimaryVertex::GetPrimary(), G4Event::GetPrimaryVertex(), and G4PrimaryParticle::SetUserInformation().

+ Here is the call graph for this function:

G4ParticleGun * Par02PrimaryGeneratorAction::GetParticleGun ( void  )

Definition at line 91 of file Par02PrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 91 of file Par02PrimaryGeneratorAction.cc

References fParticleGun.

Member Data Documentation

G4ParticleGun* Par02PrimaryGeneratorAction::fParticleGun
private

Definition at line 54 of file Par02PrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 54 of file Par02PrimaryGeneratorAction.hh

Referenced by GeneratePrimaries(), GetParticleGun(), Par02PrimaryGeneratorAction(), and ~Par02PrimaryGeneratorAction().


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