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 ){
189 returnValue= verboseCmd->
ConvertToString(currentParticle ->GetVerboseLevel());
G4DLLIMPORT std::ostream G4cout
G4bool GetPDGStable() 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=0)
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()