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;
113 if (currentParticle ==
nullptr)
115 G4cout <<
"Particle is not selected yet !! Command ignored." <<
G4endl;
119 if( command == dumpCmd )
125 else if (command == lifetimeCmd )
131 else if (command == stableCmd )
136 G4cout <<
"Life time is negative! Command ignored." <<
G4endl;
148 else if( command==verboseCmd )
160 if ( currentParticle ==
nullptr )
165 if( command == stableCmd )
170 else if( command == lifetimeCmd )
175 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
virtual ~G4ParticlePropertyMessenger()
virtual G4String GetCurrentValue(G4UIcommand *command)
G4ParticlePropertyMessenger(G4ParticleTable *pTable=nullptr)
virtual void SetNewValue(G4UIcommand *command, G4String newValues)
static G4ParticleTable * GetParticleTable()
const G4ParticleDefinition * GetSelectedParticle() const
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)