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

#include <geant4/tree/geant4-10.6-release/examples/extended/field/field05/include/F05PrimaryGeneratorAction.hh>

+ Inheritance diagram for F05PrimaryGeneratorAction:
+ Collaboration diagram for F05PrimaryGeneratorAction:

Public Member Functions

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

Private Attributes

G4ParticleGunfParticleGun
 

Detailed Description

Definition at line 45 of file F05PrimaryGeneratorAction.hh.

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

Constructor & Destructor Documentation

F05PrimaryGeneratorAction::F05PrimaryGeneratorAction ( void  )

Definition at line 47 of file F05PrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 47 of file F05PrimaryGeneratorAction.cc

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

+ Here is the call graph for this function:

F05PrimaryGeneratorAction::~F05PrimaryGeneratorAction ( )
virtual

Definition at line 60 of file F05PrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 60 of file F05PrimaryGeneratorAction.cc

References fParticleGun.

Member Function Documentation

void F05PrimaryGeneratorAction::GeneratePrimaries ( G4Event anEvent)
virtual

Implements G4VUserPrimaryGeneratorAction.

Definition at line 67 of file F05PrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 67 of file F05PrimaryGeneratorAction.cc

References fParticleGun, G4ParticleGun::GeneratePrimaryVertex(), m, MeV, G4ParticleGun::SetParticleEnergy(), G4ParticleGun::SetParticleMomentumDirection(), G4ParticleGun::SetParticlePolarization(), G4VPrimaryGenerator::SetParticlePosition(), and G4InuclParticleNames::z0.

+ Here is the call graph for this function:

Member Data Documentation

G4ParticleGun* F05PrimaryGeneratorAction::fParticleGun
private

Definition at line 56 of file F05PrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 56 of file F05PrimaryGeneratorAction.hh

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


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