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

#include <geant4/tree/geant4-10.6-release/examples/extended/parallel/TopC/ParN02/include/ExN02PrimaryGeneratorAction.hh>

+ Inheritance diagram for ExN02PrimaryGeneratorAction:
+ Collaboration diagram for ExN02PrimaryGeneratorAction:

Public Member Functions

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

Private Attributes

G4ParticleGunparticleGun
 
ExN02DetectorConstructionmyDetector
 

Detailed Description

Definition at line 45 of file ExN02PrimaryGeneratorAction.hh.

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

Constructor & Destructor Documentation

ExN02PrimaryGeneratorAction::ExN02PrimaryGeneratorAction ( ExN02DetectorConstruction myDC)

Definition at line 45 of file ExN02PrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 45 of file ExN02PrimaryGeneratorAction.cc

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

+ Here is the call graph for this function:

ExN02PrimaryGeneratorAction::~ExN02PrimaryGeneratorAction ( )

Definition at line 64 of file ExN02PrimaryGeneratorAction.cc.

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

References particleGun.

Member Function Documentation

void ExN02PrimaryGeneratorAction::GeneratePrimaries ( G4Event anEvent)
virtual

Implements G4VUserPrimaryGeneratorAction.

Definition at line 71 of file ExN02PrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 71 of file ExN02PrimaryGeneratorAction.cc

References cm, G4ParticleGun::GeneratePrimaryVertex(), ExN02DetectorConstruction::GetWorldFullLength(), myDetector, particleGun, and G4VPrimaryGenerator::SetParticlePosition().

+ Here is the call graph for this function:

Member Data Documentation

ExN02DetectorConstruction* ExN02PrimaryGeneratorAction::myDetector
private

Definition at line 56 of file ExN02PrimaryGeneratorAction.hh.

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

Referenced by GeneratePrimaries().

G4ParticleGun* ExN02PrimaryGeneratorAction::particleGun
private

Definition at line 55 of file ExN02PrimaryGeneratorAction.hh.

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

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


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