47 : theParticleTable(pTable)
53 thisDirectory->
SetGuidance(
"Particle Table control commands.");
62 stableCmd->
SetGuidance(
" false: Unstable true: Stable");
69 lifetimeCmd->
SetGuidance(
"Unit of the time can be :");
81 verboseCmd->
SetGuidance(
"Set Verbose level of particle property.");
83 verboseCmd->
SetGuidance(
" 1 : Display warning messages");
87 verboseCmd->
SetRange(
"verbose_level >=0");
95 delete fDecayTableMessenger;
96 fDecayTableMessenger =
nullptr;
102 delete thisDirectory;
109 if (currentParticle ==
nullptr) {
110 G4cout <<
"Particle is not selected yet !! Command ignored." <<
G4endl;
114 if (command == dumpCmd) {
116 currentParticle->DumpTable();
118 else if (command == lifetimeCmd) {
122 else if (command == stableCmd) {
124 if (currentParticle->GetPDGLifeTime() < 0.0) {
125 G4cout <<
"Life time is negative! Command ignored." <<
G4endl;
127 else if (currentParticle->GetPDGMass() <= 0.0) {
134 else if (command == verboseCmd) {
136 currentParticle->SetVerboseLevel(verboseCmd->
GetNewIntValue(newValue));
145 if (currentParticle ==
nullptr) {
149 if (command == stableCmd) {
153 else if (command == lifetimeCmd) {
157 else if (command == verboseCmd) {
G4GLOB_DLL std::ostream G4cout
G4bool GetPDGStable() const
G4int GetVerboseLevel() const
G4double GetPDGLifeTime() const
G4String GetCurrentValue(G4UIcommand *command) override
G4ParticlePropertyMessenger(G4ParticleTable *pTable=nullptr)
~G4ParticlePropertyMessenger() override
void SetNewValue(G4UIcommand *command, G4String newValues) override
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)