60 :theParticleTable(pTable),
62 fDecayTableMessenger(0)
67 thisDirectory->
SetGuidance(
"Paricle Table control commands.");
76 stableCmd->
SetGuidance(
" false: Unstable true: Stable");
83 lifetimeCmd->
SetGuidance(
"Unit of the time can be :");
95 verboseCmd->
SetGuidance(
"Set Verbose level of particle property.");
97 verboseCmd->
SetGuidance(
" 1 : Display warning messages");
101 verboseCmd->
SetRange(
"verbose_level >=0");
110 if (fDecayTableMessenger !=0)
delete fDecayTableMessenger;
111 fDecayTableMessenger = 0;
117 delete thisDirectory;
122 if (SetCurrentParticle()==0) {
123 G4cout <<
"Particle is not selected yet !! Command ignored." <<
G4endl;
127 if( command == dumpCmd ){
131 }
else if (command == lifetimeCmd ) {
135 }
else if (command == stableCmd ) {
138 G4cout <<
"Life time is negative! Command ignored." <<
G4endl;
139 }
else if (currentParticle->
GetPDGMass()<=0.0) {
145 }
else if( command==verboseCmd ) {
159 if (currentParticle != 0 ){
162 currentParticle = theParticleTable->
FindParticle(particleName);
165 currentParticle = theParticleTable->
FindParticle(particleName);
167 return currentParticle;
174 if (SetCurrentParticle()==0) {
179 if( command == stableCmd ){
183 }
else if( command == lifetimeCmd ){
187 }
else if( command==verboseCmd ){
G4ParticlePropertyMessenger(G4ParticleTable *pTable=0)
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
void SetPDGStable(const G4bool aFlag)
void SetDefaultValue(G4double defVal)
G4String GetCurrentStringValue(const char *aCommand, G4int parameterNumber=1, G4bool reGet=true)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
static G4int GetNewIntValue(const char *paramString)
G4bool GetPDGStable() const
void SetPDGLifeTime(G4double aLifeTime)
static G4String ConvertToString(G4bool boolVal)
virtual ~G4ParticlePropertyMessenger()
static G4double GetNewDoubleValue(const char *paramString)
static G4bool GetNewBoolValue(const char *paramString)
const G4String & GetParticleName() const
static G4UImanager * GetUIpointer()
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
G4GLOB_DLL std::ostream G4cout
void SetRange(const char *rs)
void SetGuidance(const char *aGuidance)
void AvailableForStates(G4ApplicationState s1)
void SetVerboseLevel(G4int value)
G4int GetVerboseLevel() const
G4double GetPDGMass() const
static G4ParticleTable * GetParticleTable()
void SetDefaultUnit(const char *defUnit)
G4double GetPDGLifeTime() const
void SetDefaultValue(G4int defVal)
virtual void SetNewValue(G4UIcommand *command, G4String newValues)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
virtual G4String GetCurrentValue(G4UIcommand *command)