ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <geant4/tree/geant4-10.6-release/examples/basic/B5/include/B5PrimaryGeneratorAction.hh>
Public Member Functions | |
B5PrimaryGeneratorAction () | |
virtual | ~B5PrimaryGeneratorAction () |
virtual void | GeneratePrimaries (G4Event *) |
void | SetMomentum (G4double val) |
G4double | GetMomentum () const |
void | SetSigmaMomentum (G4double val) |
G4double | GetSigmaMomentum () const |
void | SetSigmaAngle (G4double val) |
G4double | GetSigmaAngle () const |
void | SetRandomize (G4bool val) |
G4bool | GetRandomize () const |
Public Member Functions inherited from G4VUserPrimaryGeneratorAction | |
G4VUserPrimaryGeneratorAction () | |
virtual | ~G4VUserPrimaryGeneratorAction () |
Private Member Functions | |
void | DefineCommands () |
Primary generator
A single particle is generated. User can select
Definition at line 50 of file B5PrimaryGeneratorAction.hh.
View newest version in sPHENIX GitHub at line 50 of file B5PrimaryGeneratorAction.hh
B5PrimaryGeneratorAction::B5PrimaryGeneratorAction | ( | ) |
Definition at line 42 of file B5PrimaryGeneratorAction.cc.
View newest version in sPHENIX GitHub at line 42 of file B5PrimaryGeneratorAction.cc
References DefineCommands(), fKaon, fMuon, fParticleGun, fPion, fPositron, fProton, G4ParticleTable::GetParticleTable(), m, G4ParticleGun::SetParticleDefinition(), and G4VPrimaryGenerator::SetParticlePosition().
|
virtual |
Definition at line 72 of file B5PrimaryGeneratorAction.cc.
View newest version in sPHENIX GitHub at line 72 of file B5PrimaryGeneratorAction.cc
References fMessenger, and fParticleGun.
|
private |
Definition at line 122 of file B5PrimaryGeneratorAction.cc.
View newest version in sPHENIX GitHub at line 122 of file B5PrimaryGeneratorAction.cc
References G4GenericMessenger::DeclareProperty(), G4GenericMessenger::DeclarePropertyWithUnit(), fMessenger, fMomentum, fRandomizePrimary, fSigmaAngle, fSigmaMomentum, G4GenericMessenger::Command::SetDefaultValue(), G4GenericMessenger::Command::SetParameterName(), and G4GenericMessenger::Command::SetRange().
Referenced by B5PrimaryGeneratorAction().
Implements G4VUserPrimaryGeneratorAction.
Definition at line 80 of file B5PrimaryGeneratorAction.cc.
View newest version in sPHENIX GitHub at line 80 of file B5PrimaryGeneratorAction.cc
References angle, fKaon, fMomentum, fMuon, fParticleGun, fPion, fPositron, fProton, fRandomizePrimary, fSigmaAngle, fSigmaMomentum, G4UniformRand, G4ParticleGun::GeneratePrimaryVertex(), G4ParticleGun::GetParticleDefinition(), G4ParticleDefinition::GetPDGMass(), int(), mass, particle, G4InuclParticleNames::pp, G4ParticleGun::SetParticleDefinition(), G4ParticleGun::SetParticleEnergy(), and G4ParticleGun::SetParticleMomentumDirection().
|
inline |
Definition at line 59 of file B5PrimaryGeneratorAction.hh.
View newest version in sPHENIX GitHub at line 59 of file B5PrimaryGeneratorAction.hh
References fMomentum.
|
inline |
Definition at line 68 of file B5PrimaryGeneratorAction.hh.
View newest version in sPHENIX GitHub at line 68 of file B5PrimaryGeneratorAction.hh
References fRandomizePrimary.
|
inline |
Definition at line 65 of file B5PrimaryGeneratorAction.hh.
View newest version in sPHENIX GitHub at line 65 of file B5PrimaryGeneratorAction.hh
References fSigmaAngle.
|
inline |
Definition at line 62 of file B5PrimaryGeneratorAction.hh.
View newest version in sPHENIX GitHub at line 62 of file B5PrimaryGeneratorAction.hh
References fSigmaMomentum.
Definition at line 58 of file B5PrimaryGeneratorAction.hh.
View newest version in sPHENIX GitHub at line 58 of file B5PrimaryGeneratorAction.hh
References fMomentum.
Definition at line 67 of file B5PrimaryGeneratorAction.hh.
View newest version in sPHENIX GitHub at line 67 of file B5PrimaryGeneratorAction.hh
References fRandomizePrimary.
Definition at line 64 of file B5PrimaryGeneratorAction.hh.
View newest version in sPHENIX GitHub at line 64 of file B5PrimaryGeneratorAction.hh
References fSigmaAngle.
Definition at line 61 of file B5PrimaryGeneratorAction.hh.
View newest version in sPHENIX GitHub at line 61 of file B5PrimaryGeneratorAction.hh
References fSigmaMomentum.
|
private |
Definition at line 78 of file B5PrimaryGeneratorAction.hh.
View newest version in sPHENIX GitHub at line 78 of file B5PrimaryGeneratorAction.hh
Referenced by B5PrimaryGeneratorAction(), and GeneratePrimaries().
|
private |
Definition at line 74 of file B5PrimaryGeneratorAction.hh.
View newest version in sPHENIX GitHub at line 74 of file B5PrimaryGeneratorAction.hh
Referenced by DefineCommands(), and ~B5PrimaryGeneratorAction().
|
private |
Definition at line 80 of file B5PrimaryGeneratorAction.hh.
View newest version in sPHENIX GitHub at line 80 of file B5PrimaryGeneratorAction.hh
Referenced by DefineCommands(), GeneratePrimaries(), GetMomentum(), and SetMomentum().
|
private |
Definition at line 76 of file B5PrimaryGeneratorAction.hh.
View newest version in sPHENIX GitHub at line 76 of file B5PrimaryGeneratorAction.hh
Referenced by B5PrimaryGeneratorAction(), and GeneratePrimaries().
|
private |
Definition at line 73 of file B5PrimaryGeneratorAction.hh.
View newest version in sPHENIX GitHub at line 73 of file B5PrimaryGeneratorAction.hh
Referenced by B5PrimaryGeneratorAction(), GeneratePrimaries(), and ~B5PrimaryGeneratorAction().
|
private |
Definition at line 77 of file B5PrimaryGeneratorAction.hh.
View newest version in sPHENIX GitHub at line 77 of file B5PrimaryGeneratorAction.hh
Referenced by B5PrimaryGeneratorAction(), and GeneratePrimaries().
|
private |
Definition at line 75 of file B5PrimaryGeneratorAction.hh.
View newest version in sPHENIX GitHub at line 75 of file B5PrimaryGeneratorAction.hh
Referenced by B5PrimaryGeneratorAction(), and GeneratePrimaries().
|
private |
Definition at line 79 of file B5PrimaryGeneratorAction.hh.
View newest version in sPHENIX GitHub at line 79 of file B5PrimaryGeneratorAction.hh
Referenced by B5PrimaryGeneratorAction(), and GeneratePrimaries().
|
private |
Definition at line 83 of file B5PrimaryGeneratorAction.hh.
View newest version in sPHENIX GitHub at line 83 of file B5PrimaryGeneratorAction.hh
Referenced by DefineCommands(), GeneratePrimaries(), GetRandomize(), and SetRandomize().
|
private |
Definition at line 82 of file B5PrimaryGeneratorAction.hh.
View newest version in sPHENIX GitHub at line 82 of file B5PrimaryGeneratorAction.hh
Referenced by DefineCommands(), GeneratePrimaries(), GetSigmaAngle(), and SetSigmaAngle().
|
private |
Definition at line 81 of file B5PrimaryGeneratorAction.hh.
View newest version in sPHENIX GitHub at line 81 of file B5PrimaryGeneratorAction.hh
Referenced by DefineCommands(), GeneratePrimaries(), GetSigmaMomentum(), and SetSigmaMomentum().