48 :fParticleGun(fPtclGun),fShootIon(false),
49 fAtomicNumber(0),fAtomicMass(0),fIonCharge(0),fIonExciteEnergy(0.0),fIonEnergyLevel(0)
78 candidateList +=
"ion ";
95 momCmd->
SetGuidance(
"Set momentum. This command is equivalent to two commands /gun/direction and /gun/momentumAmp");
124 polCmd->
SetRange(
"Px>=-1.&&Px<=1.&&Py>=-1.&&Py<=1.&&Pz>=-1.&&Pz<=1.");
201 if (newValues ==
"ion") {
214 else if( command==
momCmd )
222 else if( command==
polCmd )
226 else if( command==
ionCmd )
244 {
G4cerr <<
" G4ParticleGun: was defined in terms of momentum." <<
G4endl; }
252 {
G4cerr <<
" G4ParticleGun: was defined in terms of kinetic energy." <<
G4endl; }
265 else if( command==
polCmd )
269 else if( command==
ionCmd )
312 G4cout <<
"Set /gun/particle to ion before using /gun/ion command";
346 G4cout <<
"Set /gun/particle to ion before using /gun/ion command";
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetParameter(G4UIparameter *const newParameter)
G4String GetCurrentValue(G4UIcommand *command)
G4UIdirectory * gunDirectory
void SetParticleMomentum(G4double aMomentum)
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
void DumpTable(const G4String &particle_name="ALL")
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
~G4ParticleGunMessenger()
CLHEP::Hep3Vector G4ThreeVector
G4UIcmdWith3Vector * polCmd
static G4int GetNewIntValue(const char *paramString)
void SetDefaultUnit(const char *defUnit)
G4ParticleDefinition * GetIon(G4int Z, G4int A, G4int lvl=0)
void SetParameterName(const char *theNameX, const char *theNameY, const char *theNameZ, G4bool omittable, G4bool currentAsDefault=false)
G4double GetParticleMomentum() const
static G4ThreeVector GetNew3VectorValue(const char *paramString)
G4UIcmdWith3Vector * directionCmd
void SetDefaultValue(const char *theDefaultValue)
static G4String ConvertToString(G4bool boolVal)
void SetNewValue(G4UIcommand *command, G4String newValues)
void SetParticleMomentumDirection(G4ParticleMomentum aMomentumDirection)
static G4double GetNewDoubleValue(const char *paramString)
G4ThreeVector GetParticlePosition()
G4ParticleTable * particleTable
void IonLevelCommand(G4String newValues)
void SetParameterName(const char *theNameX, const char *theNameY, const char *theNameZ, G4bool omittable, G4bool currentAsDefault=false)
const G4String & GetParticleName() const
G4UIcmdWithAString * particleCmd
G4UIcmdWithADoubleAndUnit * momAmpCmd
G4ParticleMomentum GetParticleMomentumDirection() const
G4DecayTable * GetDecayTable() const
void SetParticlePolarization(G4ThreeVector aVal)
G4ThreeVector GetParticlePolarization() const
void SetParticlePosition(G4ThreeVector aPosition)
G4UIcmdWithADoubleAndUnit * energyCmd
void IonCommand(G4String newValues)
G4GLOB_DLL std::ostream G4cout
void reset(G4bool ifSkipIon=true)
void SetParticleCharge(G4double aCharge)
static G4ThreeVector GetNew3VectorValue(const char *paramString)
G4UIcmdWith3VectorAndUnit * positionCmd
G4UIcmdWithADoubleAndUnit * timeCmd
void SetRange(const char *rs)
void SetGuidance(const char *aGuidance)
void SetNumberOfParticles(G4int i)
G4ParticleGun * fParticleGun
G4ParticleGunMessenger(G4ParticleGun *fPtclGun)
static G4IonTable * GetIonTable()
G4int GetNumberOfParticles() const
void SetParticleEnergy(G4double aKineticEnergy)
G4bool IsShortLived() const
G4double GetParticleTime()
G4UIcmdWith3VectorAndUnit * momCmd
static G4ParticleTable * GetParticleTable()
void SetDefaultValue(const char *defVal)
G4double StoD(G4String s)
void SetDefaultUnit(const char *defUnit)
G4ParticleDefinition * GetParticleDefinition() const
static G4Geantino * Geantino()
void SetCandidates(const char *candidateList)
G4UIcmdWithAnInteger * numberCmd
static const double eplus
G4UIcmdWithoutParameter * listCmd
G4double fIonExciteEnergy
G4PTblDicIterator * GetIterator() const
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetParticleDefinition(G4ParticleDefinition *aParticleDefinition)
G4double GetParticleEnergy() const
G4GLOB_DLL std::ostream G4cerr
void SetParticleTime(G4double aTime)