50 : fParticleGun(fPtclGun)
79 candidateList +=
"ion ";
126 polCmd->
SetRange(
"Px>=-1.&&Px<=1.&&Py>=-1.&&Py<=1.&&Pz>=-1.&&Pz<=1.");
216 if (newValues ==
"ion")
230 ed <<
"Particle [" << newValues <<
"] is not found.";
239 else if( command==
momCmd )
247 else if( command==
polCmd )
251 else if( command==
ionCmd )
259 ed <<
"Set /gun/particle to ion before using /gun/ion command";
266 depWarn <<
"\nCommand /gun/ionL is deprecated and will be removed in future releases.\n"
267 <<
"Use /gun/ion instead.\n";
268 G4Exception(
"G4ParticleGunMessenger::SetNewValue",
"IonLWarn",
277 ed <<
"Set /gun/particle to ion before using /gun/ion command";
295 {
G4cerr <<
" G4ParticleGun: was defined in terms of momentum." <<
G4endl; }
304 G4cerr <<
" G4ParticleGun: was defined in terms of kinetic energy."
319 else if( command==
polCmd )
323 else if( command==
ionCmd )
347 if (sQ.empty() ||
StoI(sQ)<0)
403 if (sQ.empty()||sQ==
"noFloat")
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
static constexpr double eplus
static constexpr double keV
static constexpr double GeV
static constexpr double cm
CLHEP::Hep3Vector G4ThreeVector
G4GLOB_DLL std::ostream G4cerr
static G4Geantino * Geantino()
G4ParticleDefinition * GetIon(G4int Z, G4int A, G4int lvl=0)
static G4IonTable * GetIonTable()
G4bool IsShortLived() const
G4DecayTable * GetDecayTable() const
const G4String & GetParticleName() const
G4UIdirectory * gunDirectory
G4UIcmdWithAString * particleCmd
G4UIcmdWith3Vector * directionCmd
G4UIcmdWith3VectorAndUnit * positionCmd
~G4ParticleGunMessenger()
G4UIcmdWithoutParameter * listCmd
G4ParticleTable * particleTable
G4UIcmdWithADoubleAndUnit * timeCmd
G4ParticleGunMessenger(G4ParticleGun *fPtclGun)
G4UIcmdWithADoubleAndUnit * momAmpCmd
void IonLevelCommand(const G4String &newValues)
void SetNewValue(G4UIcommand *command, G4String newValues)
G4UIcmdWithAnInteger * numberCmd
G4UIcmdWith3Vector * polCmd
G4UIcmdWithADoubleAndUnit * energyCmd
G4ParticleGun * fParticleGun
void IonCommand(const G4String &newValues)
G4String GetCurrentValue(G4UIcommand *command)
char fIonFloatingLevelBase
G4UIcmdWith3VectorAndUnit * momCmd
G4double fIonExciteEnergy
G4ThreeVector GetParticlePolarization() const
G4ParticleMomentum GetParticleMomentumDirection() const
G4double GetParticleMomentum() const
void SetNumberOfParticles(G4int i)
void SetParticlePolarization(G4ThreeVector aVal)
G4ParticleDefinition * GetParticleDefinition() const
void SetParticleDefinition(G4ParticleDefinition *aParticleDefinition)
G4int GetNumberOfParticles() const
void SetParticleEnergy(G4double aKineticEnergy)
void SetParticleMomentumDirection(G4ParticleMomentum aMomDirection)
void SetParticleMomentum(G4double aMomentum)
G4double GetParticleEnergy() const
void SetParticleCharge(G4double aCharge)
void reset(G4bool ifSkipIon=true)
G4PTblDicIterator * GetIterator() const
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
static G4ParticleTable * GetParticleTable()
void DumpTable(const G4String &particle_name="ALL")
void SetDefaultUnit(const char *defUnit)
static G4ThreeVector GetNew3VectorValue(const char *paramString)
void SetParameterName(const char *theNameX, const char *theNameY, const char *theNameZ, G4bool omittable, G4bool currentAsDefault=false)
static G4ThreeVector GetNew3VectorValue(const char *paramString)
void SetParameterName(const char *theNameX, const char *theNameY, const char *theNameZ, G4bool omittable, G4bool currentAsDefault=false)
void SetDefaultUnit(const char *defUnit)
static G4double GetNewDoubleValue(const char *paramString)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetCandidates(const char *candidateList)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetDefaultValue(const char *defVal)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
static G4int GetNewIntValue(const char *paramString)
static G4String ConvertToString(G4bool boolVal)
void SetParameter(G4UIparameter *const newParameter)
void SetGuidance(const char *aGuidance)
void CommandFailed(G4int errCode, G4ExceptionDescription &ed)
void SetRange(const char *rs)
G4double StoD(G4String s)
void SetDefaultValue(const char *theDefaultValue)
void SetParameterCandidates(const char *theString)
void SetParticleTime(G4double aTime)
G4double GetParticleTime()
G4ThreeVector GetParticlePosition()
void SetParticlePosition(G4ThreeVector aPosition)