#include <G4ParticlePropertyMessenger.hh>
G4ParticlePropertyMessenger::G4ParticlePropertyMessenger |
( |
G4ParticleTable * |
pTable = 0 | ) |
|
Definition at line 59 of file G4ParticlePropertyMessenger.cc.
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");
void SetDefaultValue(G4double defVal)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetRange(const char *rs)
void SetGuidance(const char *aGuidance)
void AvailableForStates(G4ApplicationState s1)
static G4ParticleTable * GetParticleTable()
void SetDefaultUnit(const char *defUnit)
void SetDefaultValue(G4int defVal)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
G4ParticlePropertyMessenger::~G4ParticlePropertyMessenger |
( |
| ) |
|
|
virtual |
Definition at line 108 of file G4ParticlePropertyMessenger.cc.
110 if (fDecayTableMessenger !=0)
delete fDecayTableMessenger;
111 fDecayTableMessenger = 0;
117 delete thisDirectory;
Reimplemented from G4UImessenger.
Definition at line 170 of file G4ParticlePropertyMessenger.cc.
174 if (SetCurrentParticle()==0) {
179 if( command == stableCmd ){
183 }
else if( command == lifetimeCmd ){
187 }
else if( command==verboseCmd ){
189 returnValue= verboseCmd->
ConvertToString(currentParticle ->GetVerboseLevel());
G4bool GetPDGStable() const
static G4String ConvertToString(G4bool boolVal)
G4double GetPDGLifeTime() const
Reimplemented from G4UImessenger.
Definition at line 120 of file G4ParticlePropertyMessenger.cc.
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 ) {
void SetPDGStable(const G4bool aFlag)
static G4int GetNewIntValue(const char *paramString)
void SetPDGLifeTime(G4double aLifeTime)
static G4double GetNewDoubleValue(const char *paramString)
static G4bool GetNewBoolValue(const char *paramString)
G4GLOB_DLL std::ostream G4cout
void SetVerboseLevel(G4int value)
G4double GetPDGMass() const
G4double GetPDGLifeTime() const
The documentation for this class was generated from the following files: