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

Example of primary generator action. More...

#include <geant4/tree/geant4-10.6-release/examples/extended/persistency/P03/include/ExTGPrimaryGeneratorAction.hh>

+ Inheritance diagram for ExTGPrimaryGeneratorAction:
+ Collaboration diagram for ExTGPrimaryGeneratorAction:

Public Member Functions

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

Private Attributes

G4ParticleGunfParticleGun
 

Detailed Description

Example of primary generator action.

Definition at line 40 of file ExTGPrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 40 of file ExTGPrimaryGeneratorAction.hh

Constructor & Destructor Documentation

ExTGPrimaryGeneratorAction::ExTGPrimaryGeneratorAction ( )

Definition at line 39 of file ExTGPrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 39 of file ExTGPrimaryGeneratorAction.cc

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

+ Here is the call graph for this function:

ExTGPrimaryGeneratorAction::~ExTGPrimaryGeneratorAction ( )

Definition at line 55 of file ExTGPrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 55 of file ExTGPrimaryGeneratorAction.cc

References fParticleGun.

Member Function Documentation

void ExTGPrimaryGeneratorAction::GeneratePrimaries ( G4Event anEvent)
virtual

Implements G4VUserPrimaryGeneratorAction.

Definition at line 61 of file ExTGPrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 61 of file ExTGPrimaryGeneratorAction.cc

References cm, fParticleGun, G4ParticleGun::GeneratePrimaryVertex(), and G4VPrimaryGenerator::SetParticlePosition().

+ Here is the call graph for this function:

Member Data Documentation

G4ParticleGun* ExTGPrimaryGeneratorAction::fParticleGun
private

Definition at line 51 of file ExTGPrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 51 of file ExTGPrimaryGeneratorAction.hh

Referenced by ExTGPrimaryGeneratorAction(), GeneratePrimaries(), and ~ExTGPrimaryGeneratorAction().


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