|
Geant4
10.02.p01
|
Primary generator. More...
#include <B5PrimaryGeneratorAction.hh>
Inheritance diagram for B5PrimaryGeneratorAction:
Collaboration diagram for B5PrimaryGeneratorAction: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 51 of file B5PrimaryGeneratorAction.hh.
| B5PrimaryGeneratorAction::B5PrimaryGeneratorAction | ( | ) |
Definition at line 43 of file B5PrimaryGeneratorAction.cc.
References DefineCommands(), G4ParticleTable::FindParticle(), fKaon, fMuon, fParticleGun, fPion, fPositron, fProton, G4ParticleTable::GetParticleTable(), m, G4ParticleGun::SetParticleDefinition(), and G4VPrimaryGenerator::SetParticlePosition().
Here is the call graph for this function:
|
virtual |
Definition at line 73 of file B5PrimaryGeneratorAction.cc.
References fMessenger, and fParticleGun.
|
private |
Definition at line 127 of file B5PrimaryGeneratorAction.cc.
References G4GenericMessenger::DeclareProperty(), G4GenericMessenger::DeclarePropertyWithUnit(), fMessenger, fMomentum, fRandomizePrimary, fSigmaAngle, fSigmaMomentum, G4GenericMessenger::Command::SetDefaultValue(), G4GenericMessenger::Command::SetGuidance(), G4GenericMessenger::Command::SetParameterName(), and G4GenericMessenger::Command::SetRange().
Referenced by B5PrimaryGeneratorAction().
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
Implements G4VUserPrimaryGeneratorAction.
Definition at line 81 of file B5PrimaryGeneratorAction.cc.
References angle, fKaon, fMomentum, fMuon, fParticleGun, fPion, fPositron, fProton, fRandomizePrimary, fSigmaAngle, fSigmaMomentum, G4UniformRand, G4ParticleGun::GeneratePrimaryVertex(), G4ParticleGun::GetParticleDefinition(), G4ParticleDefinition::GetPDGMass(), G4InuclParticleNames::pp, G4ParticleGun::SetParticleDefinition(), G4ParticleGun::SetParticleEnergy(), and G4ParticleGun::SetParticleMomentumDirection().
Here is the call graph for this function:
|
inline |
Definition at line 60 of file B5PrimaryGeneratorAction.hh.
References fMomentum.
|
inline |
Definition at line 69 of file B5PrimaryGeneratorAction.hh.
References fRandomizePrimary.
|
inline |
Definition at line 66 of file B5PrimaryGeneratorAction.hh.
References fSigmaAngle.
|
inline |
Definition at line 63 of file B5PrimaryGeneratorAction.hh.
References fSigmaMomentum.
|
inline |
Definition at line 59 of file B5PrimaryGeneratorAction.hh.
References fMomentum.
|
inline |
Definition at line 68 of file B5PrimaryGeneratorAction.hh.
References fRandomizePrimary.
|
inline |
Definition at line 65 of file B5PrimaryGeneratorAction.hh.
References fSigmaAngle.
|
inline |
Definition at line 62 of file B5PrimaryGeneratorAction.hh.
References fSigmaMomentum.
|
private |
Definition at line 79 of file B5PrimaryGeneratorAction.hh.
Referenced by B5PrimaryGeneratorAction(), and GeneratePrimaries().
|
private |
Definition at line 75 of file B5PrimaryGeneratorAction.hh.
Referenced by DefineCommands(), and ~B5PrimaryGeneratorAction().
|
private |
Definition at line 81 of file B5PrimaryGeneratorAction.hh.
Referenced by DefineCommands(), GeneratePrimaries(), GetMomentum(), and SetMomentum().
|
private |
Definition at line 77 of file B5PrimaryGeneratorAction.hh.
Referenced by B5PrimaryGeneratorAction(), and GeneratePrimaries().
|
private |
Definition at line 74 of file B5PrimaryGeneratorAction.hh.
Referenced by B5PrimaryGeneratorAction(), GeneratePrimaries(), and ~B5PrimaryGeneratorAction().
|
private |
Definition at line 78 of file B5PrimaryGeneratorAction.hh.
Referenced by B5PrimaryGeneratorAction(), and GeneratePrimaries().
|
private |
Definition at line 76 of file B5PrimaryGeneratorAction.hh.
Referenced by B5PrimaryGeneratorAction(), and GeneratePrimaries().
|
private |
Definition at line 80 of file B5PrimaryGeneratorAction.hh.
Referenced by B5PrimaryGeneratorAction(), and GeneratePrimaries().
|
private |
Definition at line 84 of file B5PrimaryGeneratorAction.hh.
Referenced by DefineCommands(), GeneratePrimaries(), GetRandomize(), and SetRandomize().
|
private |
Definition at line 83 of file B5PrimaryGeneratorAction.hh.
Referenced by DefineCommands(), GeneratePrimaries(), GetSigmaAngle(), and SetSigmaAngle().
|
private |
Definition at line 82 of file B5PrimaryGeneratorAction.hh.
Referenced by DefineCommands(), GeneratePrimaries(), GetSigmaMomentum(), and SetSigmaMomentum().