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");
103 verboseCmd->
SetGuidance(
"Set Verbose level of particle table.");
105 verboseCmd->
SetGuidance(
" 1 : Display warning messages");
109 verboseCmd->
SetRange(
"verbose_level >=0");
120 delete fParticlePropertyMessenger;
128 delete thisDirectory;
134 if( command==listCmd ){
144 if ((counter++)%4 == 3) {
152 if (counter == 0)
G4cout << newValues <<
" is not found " <<
G4endl;
164 }
else if( command==selectCmd ){
166 currentParticle = theParticleTable->
FindParticle(newValues);
167 if(currentParticle == 0) {
168 G4cout <<
"Unknown particle [" << newValues <<
"]. Command ignored." <<
G4endl;
171 }
else if( command==findCmd ){
175 G4cout <<
"Unknown particle [" << newValues <<
"]. Command ignored." <<
G4endl;
181 }
else if( command==createAllCmd ) {
185 }
else if( command==verboseCmd ) {
193 if( command==selectCmd ){
207 if(currentParticle == 0) {
213 }
else if( command==verboseCmd ){
G4DLLIMPORT std::ostream G4cout
const G4String & GetParticleType() const
const G4String & GetParticleName() const
virtual ~G4ParticleMessenger()
G4String GetCurrentValue(G4UIcommand *command)
G4ParticleMessenger(G4ParticleTable *pTable=0)
void SetNewValue(G4UIcommand *command, G4String newValues)
G4int GetVerboseLevel() const
G4PTblDicIterator * GetIterator()
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
static G4ParticleTable * GetParticleTable()
void SetVerboseLevel(G4int value)
G4IonTable * GetIonTable()
void SetCandidates(const char *candidateList)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetDefaultValue(const char *defVal)
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)