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

The primary generator class with particle gun. More...

#include <geant4/tree/geant4-10.6-release/examples/extended/common/include/GunPrimaryGeneratorAction.hh>

+ Inheritance diagram for GunPrimaryGeneratorAction:
+ Collaboration diagram for GunPrimaryGeneratorAction:

Public Member Functions

 GunPrimaryGeneratorAction (const G4String &particleName="geantino", G4double energy=1.*CLHEP::MeV, G4ThreeVector position=G4ThreeVector(0, 0, 0), G4ThreeVector momentumDirection=G4ThreeVector(0, 0, 1))
 
 ~GunPrimaryGeneratorAction ()
 
virtual void GeneratePrimaries (G4Event *)
 
 GunPrimaryGeneratorAction (const G4String &particleName="geantino", G4double energy=1.*CLHEP::MeV, G4ThreeVector position=G4ThreeVector(0, 0, 0), G4ThreeVector momentumDirection=G4ThreeVector(0, 0, 1))
 
 ~GunPrimaryGeneratorAction ()
 
virtual void GeneratePrimaries (G4Event *)
 
 GunPrimaryGeneratorAction (const G4String &particleName="geantino", G4double energy=1.*CLHEP::MeV, G4ThreeVector position=G4ThreeVector(0, 0, 0), G4ThreeVector momentumDirection=G4ThreeVector(0, 0, 1))
 
 ~GunPrimaryGeneratorAction ()
 
virtual void GeneratePrimaries (G4Event *)
 
- Public Member Functions inherited from G4VUserPrimaryGeneratorAction
 G4VUserPrimaryGeneratorAction ()
 
virtual ~G4VUserPrimaryGeneratorAction ()
 

Private Attributes

G4ParticleGunfParticleGun
 

Detailed Description

The primary generator class with particle gun.

Author
I. Hrivnacova; IPN Orsay

Definition at line 47 of file GunPrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 47 of file GunPrimaryGeneratorAction.hh

Constructor & Destructor Documentation

GunPrimaryGeneratorAction::GunPrimaryGeneratorAction ( const G4String particleName = "geantino",
G4double  energy = 1.*CLHEP::MeV,
G4ThreeVector  position = G4ThreeVector(0,0,0),
G4ThreeVector  momentumDirection = G4ThreeVector(0,0,1) 
)

Definition at line 39 of file GunPrimaryGeneratorAction.cc.

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

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

+ Here is the call graph for this function:

GunPrimaryGeneratorAction::~GunPrimaryGeneratorAction ( )

Definition at line 62 of file GunPrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 62 of file GunPrimaryGeneratorAction.cc

References fParticleGun.

GunPrimaryGeneratorAction::GunPrimaryGeneratorAction ( const G4String particleName = "geantino",
G4double  energy = 1.*CLHEP::MeV,
G4ThreeVector  position = G4ThreeVector(0, 0, 0),
G4ThreeVector  momentumDirection = G4ThreeVector(0, 0, 1) 
)
GunPrimaryGeneratorAction::~GunPrimaryGeneratorAction ( )
GunPrimaryGeneratorAction::GunPrimaryGeneratorAction ( const G4String particleName = "geantino",
G4double  energy = 1.*CLHEP::MeV,
G4ThreeVector  position = G4ThreeVector(0, 0, 0),
G4ThreeVector  momentumDirection = G4ThreeVector(0, 0, 1) 
)
GunPrimaryGeneratorAction::~GunPrimaryGeneratorAction ( )

Member Function Documentation

void GunPrimaryGeneratorAction::GeneratePrimaries ( G4Event anEvent)
virtual

Implements G4VUserPrimaryGeneratorAction.

Definition at line 69 of file GunPrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 69 of file GunPrimaryGeneratorAction.cc

References fParticleGun, and G4ParticleGun::GeneratePrimaryVertex().

+ Here is the call graph for this function:

virtual void GunPrimaryGeneratorAction::GeneratePrimaries ( G4Event )
virtual
virtual void GunPrimaryGeneratorAction::GeneratePrimaries ( G4Event )
virtual

Member Data Documentation

G4ParticleGun * GunPrimaryGeneratorAction::fParticleGun
private

Definition at line 62 of file GunPrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 62 of file GunPrimaryGeneratorAction.hh

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


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