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());