Geant4
10.01.p03
|
#include <Em10PrimaryGeneratorAction.hh>
Public Member Functions | |
Em10PrimaryGeneratorAction (Em10DetectorConstruction *) | |
~Em10PrimaryGeneratorAction () | |
void | GeneratePrimaries (G4Event *) |
void | SetRndmFlag (G4String val) |
void | Setxvertex (G4double x) |
void | Setyvertex (G4double y) |
void | Setzvertex (G4double z) |
Public Member Functions inherited from G4VUserPrimaryGeneratorAction | |
G4VUserPrimaryGeneratorAction () | |
virtual | ~G4VUserPrimaryGeneratorAction () |
Static Public Member Functions | |
static G4String | GetPrimaryName () |
Private Attributes | |
G4ParticleGun * | particleGun |
Em10PrimaryGeneratorMessenger * | gunMessenger |
G4String | rndmFlag |
G4double | xvertex |
G4double | yvertex |
G4double | zvertex |
G4bool | vertexdefined |
Static Private Attributes | |
static G4String | thePrimaryParticleName ="proton" |
Definition at line 50 of file Em10PrimaryGeneratorAction.hh.
Em10PrimaryGeneratorAction::Em10PrimaryGeneratorAction | ( | Em10DetectorConstruction * | ) |
Definition at line 55 of file Em10PrimaryGeneratorAction.cc.
References G4ParticleTable::FindParticle(), G4ParticleDefinition::GetParticleName(), G4ParticleTable::GetParticleTable(), GeV, gunMessenger, particleGun, G4ParticleGun::SetParticleDefinition(), G4ParticleGun::SetParticleEnergy(), G4ParticleGun::SetParticleMomentumDirection(), G4VPrimaryGenerator::SetParticlePosition(), thePrimaryParticleName, xvertex, yvertex, and zvertex.
Em10PrimaryGeneratorAction::~Em10PrimaryGeneratorAction | ( | ) |
Definition at line 89 of file Em10PrimaryGeneratorAction.cc.
References gunMessenger, and particleGun.
|
virtual |
Implements G4VUserPrimaryGeneratorAction.
Definition at line 97 of file Em10PrimaryGeneratorAction.cc.
References G4ParticleGun::GeneratePrimaryVertex(), G4ParticleGun::GetParticleDefinition(), particleGun, G4VPrimaryGenerator::SetParticlePosition(), and thePrimaryParticleName.
|
static |
Definition at line 133 of file Em10PrimaryGeneratorAction.cc.
References thePrimaryParticleName.
|
inline |
Definition at line 58 of file Em10PrimaryGeneratorAction.hh.
References rndmFlag.
Referenced by Em10PrimaryGeneratorMessenger::SetNewValue().
void Em10PrimaryGeneratorAction::Setxvertex | ( | G4double | x | ) |
Definition at line 150 of file Em10PrimaryGeneratorAction.cc.
References G4cout, G4endl, mm, vertexdefined, and xvertex.
Referenced by Em10PrimaryGeneratorMessenger::SetNewValue().
void Em10PrimaryGeneratorAction::Setyvertex | ( | G4double | y | ) |
Definition at line 160 of file Em10PrimaryGeneratorAction.cc.
References G4cout, G4endl, mm, vertexdefined, and yvertex.
Referenced by Em10PrimaryGeneratorMessenger::SetNewValue().
void Em10PrimaryGeneratorAction::Setzvertex | ( | G4double | z | ) |
Definition at line 140 of file Em10PrimaryGeneratorAction.cc.
References G4cout, G4endl, mm, vertexdefined, z, and zvertex.
Referenced by Em10PrimaryGeneratorMessenger::SetNewValue().
|
private |
Definition at line 69 of file Em10PrimaryGeneratorAction.hh.
Referenced by Em10PrimaryGeneratorAction(), and ~Em10PrimaryGeneratorAction().
|
private |
Definition at line 66 of file Em10PrimaryGeneratorAction.hh.
Referenced by Em10PrimaryGeneratorAction(), GeneratePrimaries(), and ~Em10PrimaryGeneratorAction().
|
private |
Definition at line 70 of file Em10PrimaryGeneratorAction.hh.
Referenced by SetRndmFlag().
|
staticprivate |
Definition at line 72 of file Em10PrimaryGeneratorAction.hh.
Referenced by Em10PrimaryGeneratorAction(), GeneratePrimaries(), and GetPrimaryName().
|
private |
Definition at line 74 of file Em10PrimaryGeneratorAction.hh.
Referenced by Setxvertex(), Setyvertex(), and Setzvertex().
|
private |
Definition at line 73 of file Em10PrimaryGeneratorAction.hh.
Referenced by Em10PrimaryGeneratorAction(), and Setxvertex().
|
private |
Definition at line 73 of file Em10PrimaryGeneratorAction.hh.
Referenced by Em10PrimaryGeneratorAction(), and Setyvertex().
|
private |
Definition at line 73 of file Em10PrimaryGeneratorAction.hh.
Referenced by Em10PrimaryGeneratorAction(), and Setzvertex().