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

Primary generator action. More...

#include <geant4/tree/geant4-10.6-release/examples/extended/persistency/P02/include/ExP02PrimaryGeneratorAction.hh>

+ Inheritance diagram for ExP02PrimaryGeneratorAction:
+ Collaboration diagram for ExP02PrimaryGeneratorAction:

Public Member Functions

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

Private Attributes

G4ParticleGunfParticleGun
 

Detailed Description

Primary generator action.

Definition at line 46 of file ExP02PrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 46 of file ExP02PrimaryGeneratorAction.hh

Constructor & Destructor Documentation

ExP02PrimaryGeneratorAction::ExP02PrimaryGeneratorAction ( )

Definition at line 41 of file ExP02PrimaryGeneratorAction.cc.

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

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

+ Here is the call graph for this function:

ExP02PrimaryGeneratorAction::~ExP02PrimaryGeneratorAction ( )

Definition at line 59 of file ExP02PrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 59 of file ExP02PrimaryGeneratorAction.cc

References fParticleGun.

Member Function Documentation

void ExP02PrimaryGeneratorAction::GeneratePrimaries ( G4Event anEvent)
virtual

Implements G4VUserPrimaryGeneratorAction.

Definition at line 66 of file ExP02PrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 66 of file ExP02PrimaryGeneratorAction.cc

References fParticleGun, G4ParticleGun::GeneratePrimaryVertex(), G4ParticleGun::SetParticleMomentumDirection(), and v.

+ Here is the call graph for this function:

Member Data Documentation

G4ParticleGun* ExP02PrimaryGeneratorAction::fParticleGun
private

Definition at line 55 of file ExP02PrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 55 of file ExP02PrimaryGeneratorAction.hh

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


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