48 : theParticleTable(pTable)
50 if ( theParticleTable ==
nullptr)
55 thisDirectory->
SetGuidance(
"Particle Table control commands.");
64 stableCmd->
SetGuidance(
" false: Unstable true: Stable");
71 lifetimeCmd->
SetGuidance(
"Unit of the time can be :");
83 verboseCmd->
SetGuidance(
"Set Verbose level of particle property.");
85 verboseCmd->
SetGuidance(
" 1 : Display warning messages");
89 verboseCmd->
SetRange(
"verbose_level >=0");
97 delete fDecayTableMessenger;
98 fDecayTableMessenger =
nullptr;
104 delete thisDirectory;
110 if (SetCurrentParticle() ==
nullptr)
112 G4cout <<
"Particle is not selected yet !! Command ignored." <<
G4endl;
116 if( command == dumpCmd )
122 else if (command == lifetimeCmd )
128 else if (command == stableCmd )
133 G4cout <<
"Life time is negative! Command ignored." <<
G4endl;
145 else if( command==verboseCmd )
161 if ( currentParticle !=
nullptr )
166 currentParticle = theParticleTable->
FindParticle(particleName);
171 currentParticle = theParticleTable->
FindParticle(particleName);
173 return currentParticle;
180 if ( SetCurrentParticle() ==
nullptr )
185 if( command == stableCmd )
190 else if( command == lifetimeCmd )
195 else if( command==verboseCmd )
G4GLOB_DLL std::ostream G4cout
G4bool GetPDGStable() const
G4int GetVerboseLevel() const
G4double GetPDGMass() const
void SetPDGStable(const G4bool aFlag)
void SetVerboseLevel(G4int value)
void SetPDGLifeTime(G4double aLifeTime)
G4double GetPDGLifeTime() const
const G4String & GetParticleName() const
virtual ~G4ParticlePropertyMessenger()
virtual G4String GetCurrentValue(G4UIcommand *command)
G4ParticlePropertyMessenger(G4ParticleTable *pTable=nullptr)
virtual void SetNewValue(G4UIcommand *command, G4String newValues)
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
static G4ParticleTable * GetParticleTable()
static G4bool GetNewBoolValue(const char *paramString)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetDefaultValue(G4double defVal)
void SetDefaultUnit(const char *defUnit)
static G4double GetNewDoubleValue(const char *paramString)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
static G4int GetNewIntValue(const char *paramString)
void SetDefaultValue(G4int defVal)
static G4String ConvertToString(G4bool boolVal)
void SetGuidance(const char *aGuidance)
void SetRange(const char *rs)
void AvailableForStates(G4ApplicationState s1)
G4String GetCurrentStringValue(const char *aCommand, G4int parameterNumber=1, G4bool reGet=true)
static G4UImanager * GetUIpointer()