ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
The primary generator class with particle gun. More...
#include <geant4/tree/geant4-10.6-release/examples/extended/common/include/GunPrimaryGeneratorAction.hh>
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 | |
G4ParticleGun * | fParticleGun |
The primary generator class with particle gun.
Definition at line 47 of file GunPrimaryGeneratorAction.hh.
View newest version in sPHENIX GitHub at line 47 of file GunPrimaryGeneratorAction.hh
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().
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 | ( | ) |
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().
Implements G4VUserPrimaryGeneratorAction.
Implements G4VUserPrimaryGeneratorAction.
|
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().