#include <G4ParticleMessenger.hh>
Definition at line 93 of file G4ParticleMessenger.hh.
Definition at line 60 of file G4ParticleMessenger.cc.
66 theParticleTable = pTable;
71 thisDirectory->
SetGuidance(
"Particle control commands.");
83 listCmd->
SetGuidance(
" all(default)/lepton/baryon/meson/nucleus/quarks");
86 listCmd->
SetCandidates(
"all lepton baryon meson nucleus quarks");
98 createAllIonCmd->
SetGuidance(
"Create All ions (ground state)");
104 createAllIsomerCmd->
SetGuidance(
"Create All isomers");
110 verboseCmd->
SetGuidance(
"Set Verbose level of particle table.");
112 verboseCmd->
SetGuidance(
" 1 : Display warning messages");
116 verboseCmd->
SetRange(
"verbose_level >=0");
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetToBeBroadcasted(G4bool val)
void SetRange(const char *rs)
void SetGuidance(const char *aGuidance)
void AvailableForStates(G4ApplicationState s1)
static G4ParticleTable * GetParticleTable()
void SetDefaultValue(const char *defVal)
void SetCandidates(const char *candidateList)
void SetDefaultValue(G4int defVal)
G4ParticleMessenger::~G4ParticleMessenger |
( |
| ) |
|
|
virtual |
Definition at line 125 of file G4ParticleMessenger.cc.
127 delete fParticlePropertyMessenger;
132 delete createAllIonCmd;
133 delete createAllIsomerCmd;
136 delete thisDirectory;
Reimplemented from G4UImessenger.
Definition at line 203 of file G4ParticleMessenger.cc.
205 if( command==selectCmd ){
217 static const G4String noName(
"none");
219 if(currentParticle == 0) {
225 }
else if( command==verboseCmd ){
static G4String ConvertToString(G4bool boolVal)
const G4String & GetParticleName() const
void SetCandidates(const char *candidateList)
G4int GetVerboseLevel() const
G4PTblDicIterator * GetIterator() const
Reimplemented from G4UImessenger.
Definition at line 140 of file G4ParticleMessenger.cc.
142 if( command==listCmd ){
152 if ((counter++)%4 == 3) {
160 if (counter == 0)
G4cout << newValues <<
" is not found " <<
G4endl;
172 }
else if( command==selectCmd ){
174 currentParticle = theParticleTable->
FindParticle(newValues);
175 if(currentParticle == 0) {
176 G4cout <<
"Unknown particle [" << newValues <<
"]. Command ignored." <<
G4endl;
179 }
else if( command==findCmd ){
183 G4cout <<
"Unknown particle [" << newValues <<
"]. Command ignored." <<
G4endl;
189 }
else if( command==createAllIonCmd ) {
193 }
else if( command==createAllIsomerCmd ) {
197 }
else if( command==verboseCmd ) {
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
static G4int GetNewIntValue(const char *paramString)
void SetVerboseLevel(G4int value)
const G4String & GetParticleName() const
G4IonTable * GetIonTable() const
G4GLOB_DLL std::ostream G4cout
const G4String & GetParticleType() const
void SetCandidates(const char *candidateList)
G4PTblDicIterator * GetIterator() const
The documentation for this class was generated from the following files: