Geant4-11
|
#include <G4ParticleGunMessenger.hh>
Public Member Functions | |
G4bool | CommandsShouldBeInMaster () const |
G4ParticleGunMessenger (G4ParticleGun *fPtclGun) | |
G4String | GetCurrentValue (G4UIcommand *command) |
G4bool | operator!= (const G4UImessenger &messenger) const |
G4bool | operator== (const G4UImessenger &messenger) const |
void | SetNewValue (G4UIcommand *command, G4String newValues) |
~G4ParticleGunMessenger () | |
Protected Member Functions | |
void | AddUIcommand (G4UIcommand *newCommand) |
G4String | BtoS (G4bool b) |
template<typename T > | |
T * | CreateCommand (const G4String &cname, const G4String &dsc) |
void | CreateDirectory (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true) |
G4String | DtoS (G4double a) |
G4String | ItoS (G4int i) |
G4bool | StoB (G4String s) |
G4double | StoD (G4String s) |
G4int | StoI (G4String s) |
G4long | StoL (G4String s) |
Protected Attributes | |
G4UIdirectory * | baseDir = nullptr |
G4String | baseDirName = "" |
G4bool | commandsShouldBeInMaster = false |
Private Member Functions | |
void | IonCommand (const G4String &newValues) |
void | IonLevelCommand (const G4String &newValues) |
Private Attributes | |
G4UIcmdWith3Vector * | directionCmd |
G4UIcmdWithADoubleAndUnit * | energyCmd |
G4int | fAtomicMass = 0 |
G4int | fAtomicNumber = 0 |
G4int | fIonCharge = 0 |
G4int | fIonEnergyLevel = 0 |
G4double | fIonExciteEnergy = 0.0 |
char | fIonFloatingLevelBase = '\0' |
G4ParticleGun * | fParticleGun = nullptr |
G4bool | fShootIon = false |
G4UIdirectory * | gunDirectory |
G4UIcommand * | ionCmd |
G4UIcommand * | ionLvlCmd |
G4UIcmdWithoutParameter * | listCmd |
G4UIcmdWithADoubleAndUnit * | momAmpCmd |
G4UIcmdWith3VectorAndUnit * | momCmd |
G4UIcmdWithAnInteger * | numberCmd |
G4UIcmdWithAString * | particleCmd |
G4ParticleTable * | particleTable = nullptr |
G4UIcmdWith3Vector * | polCmd |
G4UIcmdWith3VectorAndUnit * | positionCmd |
G4UIcmdWithADoubleAndUnit * | timeCmd |
Definition at line 52 of file G4ParticleGunMessenger.hh.
G4ParticleGunMessenger::G4ParticleGunMessenger | ( | G4ParticleGun * | fPtclGun | ) |
Definition at line 49 of file G4ParticleGunMessenger.cc.
References cm, directionCmd, energyCmd, fParticleGun, G4Geantino::Geantino(), G4ParticleDefinition::GetDecayTable(), G4ParticleTable::GetIterator(), G4ParticleDefinition::GetParticleName(), G4ParticleTable::GetParticleTable(), GeV, gunDirectory, ionCmd, ionLvlCmd, G4ParticleDefinition::IsShortLived(), listCmd, momAmpCmd, momCmd, ns, numberCmd, particleCmd, particleTable, polCmd, positionCmd, G4ParticleTableIterator< K, V >::reset(), G4UIcmdWithAString::SetCandidates(), G4UIcmdWith3VectorAndUnit::SetDefaultUnit(), G4UIcmdWithADoubleAndUnit::SetDefaultUnit(), G4UIcmdWithAString::SetDefaultValue(), G4UIparameter::SetDefaultValue(), G4UIcommand::SetGuidance(), G4UIcommand::SetParameter(), G4UIparameter::SetParameterCandidates(), G4UIcmdWithADoubleAndUnit::SetParameterName(), G4UIcmdWithAnInteger::SetParameterName(), G4UIcmdWithAString::SetParameterName(), G4UIcmdWith3Vector::SetParameterName(), G4UIcmdWith3VectorAndUnit::SetParameterName(), G4ParticleGun::SetParticleDefinition(), G4ParticleGun::SetParticleEnergy(), G4ParticleGun::SetParticleMomentumDirection(), G4VPrimaryGenerator::SetParticlePosition(), G4VPrimaryGenerator::SetParticleTime(), G4UIcommand::SetRange(), timeCmd, and G4ParticleTableIterator< K, V >::value().
G4ParticleGunMessenger::~G4ParticleGunMessenger | ( | ) |
Definition at line 189 of file G4ParticleGunMessenger.cc.
References directionCmd, energyCmd, gunDirectory, ionCmd, ionLvlCmd, listCmd, momAmpCmd, momCmd, numberCmd, particleCmd, polCmd, positionCmd, and timeCmd.
|
protectedinherited |
Definition at line 149 of file G4UImessenger.cc.
References G4cerr, G4endl, and G4UIcommand::GetCommandPath().
Definition at line 98 of file G4UImessenger.cc.
|
inlineinherited |
Definition at line 77 of file G4UImessenger.hh.
References G4UImessenger::commandsShouldBeInMaster.
Referenced by G4UIcommand::G4UIcommandCommonConstructorCode().
|
protectedinherited |
Definition at line 110 of file G4UImessenger.hh.
References G4UImessenger::baseDirName.
|
protectedinherited |
Definition at line 156 of file G4UImessenger.cc.
References G4UImessenger::baseDir, G4UImessenger::baseDirName, G4UIcommandTree::FindCommandTree(), G4UIcommandTree::GetPathName(), G4UImanager::GetTree(), G4UImanager::GetUIpointer(), and G4UIcommand::SetGuidance().
Referenced by G4MoleculeShootMessenger::G4MoleculeShootMessenger(), and G4UImessenger::G4UImessenger().
Definition at line 90 of file G4UImessenger.cc.
Referenced by G4ScoreQuantityMessenger::FilterCommands(), and G4UIcontrolMessenger::SetNewValue().
|
virtual |
Reimplemented from G4UImessenger.
Definition at line 283 of file G4ParticleGunMessenger.cc.
References G4UIcommand::ConvertToString(), directionCmd, energyCmd, fAtomicMass, fAtomicNumber, fIonCharge, fParticleGun, fShootIon, G4cerr, G4endl, G4ParticleGun::GetNumberOfParticles(), G4ParticleGun::GetParticleDefinition(), G4ParticleGun::GetParticleEnergy(), G4ParticleGun::GetParticleMomentum(), G4ParticleGun::GetParticleMomentumDirection(), G4ParticleDefinition::GetParticleName(), G4ParticleGun::GetParticlePolarization(), G4VPrimaryGenerator::GetParticlePosition(), G4VPrimaryGenerator::GetParticleTime(), ionCmd, G4UImessenger::ItoS(), momAmpCmd, momCmd, numberCmd, particleCmd, polCmd, positionCmd, and timeCmd.
|
private |
Definition at line 380 of file G4ParticleGunMessenger.cc.
References G4UIcommand::CommandFailed(), eplus, fAtomicMass, fAtomicNumber, fIonCharge, fIonExciteEnergy, fIonFloatingLevelBase, fParticleGun, G4IonTable::GetIon(), G4IonTable::GetIonTable(), ionCmd, keV, G4ParticleGun::SetParticleCharge(), G4ParticleGun::SetParticleDefinition(), G4UImessenger::StoD(), and G4UImessenger::StoI().
Referenced by SetNewValue().
|
private |
Definition at line 338 of file G4ParticleGunMessenger.cc.
References G4UIcommand::CommandFailed(), eplus, fAtomicMass, fAtomicNumber, fIonCharge, fIonEnergyLevel, fParticleGun, G4IonTable::GetIon(), G4IonTable::GetIonTable(), ionLvlCmd, G4ParticleGun::SetParticleCharge(), G4ParticleGun::SetParticleDefinition(), and G4UImessenger::StoI().
Referenced by SetNewValue().
Definition at line 82 of file G4UImessenger.cc.
Referenced by G4GenericMessenger::DeclareMethod(), and GetCurrentValue().
|
inherited |
Definition at line 76 of file G4UImessenger.cc.
|
inherited |
Definition at line 70 of file G4UImessenger.cc.
|
virtual |
Reimplemented from G4UImessenger.
Definition at line 206 of file G4ParticleGunMessenger.cc.
References G4UIcommand::CommandFailed(), directionCmd, G4ParticleTable::DumpTable(), energyCmd, G4ParticleTable::FindParticle(), fParticleGun, fShootIon, G4Exception(), G4UIcmdWith3Vector::GetNew3VectorValue(), G4UIcmdWith3VectorAndUnit::GetNew3VectorValue(), G4UIcmdWithADoubleAndUnit::GetNewDoubleValue(), G4UIcmdWithAnInteger::GetNewIntValue(), ionCmd, IonCommand(), IonLevelCommand(), ionLvlCmd, JustWarning, listCmd, momAmpCmd, momCmd, numberCmd, particleCmd, particleTable, polCmd, positionCmd, G4ParticleGun::SetNumberOfParticles(), G4ParticleGun::SetParticleDefinition(), G4ParticleGun::SetParticleEnergy(), G4ParticleGun::SetParticleMomentum(), G4ParticleGun::SetParticleMomentumDirection(), G4ParticleGun::SetParticlePolarization(), G4VPrimaryGenerator::SetParticlePosition(), G4VPrimaryGenerator::SetParticleTime(), and timeCmd.
Definition at line 137 of file G4UImessenger.cc.
References G4StrUtil::to_upper_copy().
Referenced by G4LocalThreadCoutMessenger::SetNewValue(), G4CascadeParamMessenger::SetNewValue(), G4ScoreQuantityMessenger::SetNewValue(), and G4ScoringMessenger::SetNewValue().
Definition at line 127 of file G4UImessenger.cc.
Referenced by G4ScoreQuantityMessenger::FParticleWithEnergyCommand(), IonCommand(), G4GeneralParticleSourceMessenger::IonCommand(), G4UIcontrolMessenger::SetNewValue(), G4MatScanMessenger::SetNewValue(), G4VisCommandSceneAddText::SetNewValue(), G4VisCommandSceneAddText2D::SetNewValue(), G4ScoreQuantityMessenger::SetNewValue(), G4ScoringMessenger::SetNewValue(), and G4PolarizationMessenger::SetNewValue().
Definition at line 107 of file G4UImessenger.cc.
Referenced by G4ScoringMessenger::Fill1D(), IonCommand(), G4GeneralParticleSourceMessenger::IonCommand(), IonLevelCommand(), G4GeneralParticleSourceMessenger::IonLvlCommand(), G4ScoringMessenger::MeshBinCommand(), G4LocalThreadCoutMessenger::SetNewValue(), G4UIcontrolMessenger::SetNewValue(), G4MatScanMessenger::SetNewValue(), G4GMocrenMessenger::SetNewValue(), G4ScoreQuantityMessenger::SetNewValue(), and G4ScoringMessenger::SetNewValue().
Definition at line 117 of file G4UImessenger.cc.
Referenced by G4RunMessenger::SetNewValue().
|
protectedinherited |
Definition at line 102 of file G4UImessenger.hh.
Referenced by G4UImessenger::CreateDirectory(), and G4UImessenger::~G4UImessenger().
|
protectedinherited |
Definition at line 103 of file G4UImessenger.hh.
Referenced by G4UImessenger::CreateCommand(), and G4UImessenger::CreateDirectory().
|
protectedinherited |
Definition at line 104 of file G4UImessenger.hh.
Referenced by G4UImessenger::CommandsShouldBeInMaster(), and G4GeneralParticleSourceMessenger::G4GeneralParticleSourceMessenger().
|
private |
Definition at line 77 of file G4ParticleGunMessenger.hh.
Referenced by G4ParticleGunMessenger(), GetCurrentValue(), SetNewValue(), and ~G4ParticleGunMessenger().
|
private |
Definition at line 78 of file G4ParticleGunMessenger.hh.
Referenced by G4ParticleGunMessenger(), GetCurrentValue(), SetNewValue(), and ~G4ParticleGunMessenger().
|
private |
Definition at line 92 of file G4ParticleGunMessenger.hh.
Referenced by GetCurrentValue(), IonCommand(), and IonLevelCommand().
|
private |
Definition at line 91 of file G4ParticleGunMessenger.hh.
Referenced by GetCurrentValue(), IonCommand(), and IonLevelCommand().
|
private |
Definition at line 93 of file G4ParticleGunMessenger.hh.
Referenced by GetCurrentValue(), IonCommand(), and IonLevelCommand().
|
private |
Definition at line 96 of file G4ParticleGunMessenger.hh.
Referenced by IonLevelCommand().
|
private |
Definition at line 94 of file G4ParticleGunMessenger.hh.
Referenced by IonCommand().
|
private |
Definition at line 95 of file G4ParticleGunMessenger.hh.
Referenced by IonCommand().
|
private |
Definition at line 69 of file G4ParticleGunMessenger.hh.
Referenced by G4ParticleGunMessenger(), GetCurrentValue(), IonCommand(), IonLevelCommand(), and SetNewValue().
|
private |
Definition at line 90 of file G4ParticleGunMessenger.hh.
Referenced by GetCurrentValue(), and SetNewValue().
|
private |
Definition at line 74 of file G4ParticleGunMessenger.hh.
Referenced by G4ParticleGunMessenger(), and ~G4ParticleGunMessenger().
|
private |
Definition at line 85 of file G4ParticleGunMessenger.hh.
Referenced by G4ParticleGunMessenger(), GetCurrentValue(), IonCommand(), SetNewValue(), and ~G4ParticleGunMessenger().
|
private |
Definition at line 86 of file G4ParticleGunMessenger.hh.
Referenced by G4ParticleGunMessenger(), IonLevelCommand(), SetNewValue(), and ~G4ParticleGunMessenger().
|
private |
Definition at line 75 of file G4ParticleGunMessenger.hh.
Referenced by G4ParticleGunMessenger(), SetNewValue(), and ~G4ParticleGunMessenger().
|
private |
Definition at line 79 of file G4ParticleGunMessenger.hh.
Referenced by G4ParticleGunMessenger(), GetCurrentValue(), SetNewValue(), and ~G4ParticleGunMessenger().
|
private |
Definition at line 80 of file G4ParticleGunMessenger.hh.
Referenced by G4ParticleGunMessenger(), GetCurrentValue(), SetNewValue(), and ~G4ParticleGunMessenger().
|
private |
Definition at line 84 of file G4ParticleGunMessenger.hh.
Referenced by G4ParticleGunMessenger(), GetCurrentValue(), SetNewValue(), and ~G4ParticleGunMessenger().
|
private |
Definition at line 76 of file G4ParticleGunMessenger.hh.
Referenced by G4ParticleGunMessenger(), GetCurrentValue(), SetNewValue(), and ~G4ParticleGunMessenger().
|
private |
Definition at line 70 of file G4ParticleGunMessenger.hh.
Referenced by G4ParticleGunMessenger(), and SetNewValue().
|
private |
Definition at line 83 of file G4ParticleGunMessenger.hh.
Referenced by G4ParticleGunMessenger(), GetCurrentValue(), SetNewValue(), and ~G4ParticleGunMessenger().
|
private |
Definition at line 81 of file G4ParticleGunMessenger.hh.
Referenced by G4ParticleGunMessenger(), GetCurrentValue(), SetNewValue(), and ~G4ParticleGunMessenger().
|
private |
Definition at line 82 of file G4ParticleGunMessenger.hh.
Referenced by G4ParticleGunMessenger(), GetCurrentValue(), SetNewValue(), and ~G4ParticleGunMessenger().