49 if ( pTable ==
nullptr)
55 theParticleTable = pTable;
60 thisDirectory->
SetGuidance(
"Particle control commands.");
72 listCmd->
SetGuidance(
" all(default)/lepton/baryon/meson/nucleus/quarks");
75 listCmd->
SetCandidates(
"all lepton baryon meson nucleus quarks");
87 createAllIonCmd->
SetGuidance(
"Create All ions (ground state)");
93 createAllIsomerCmd->
SetGuidance(
"Create All isomers");
99 verboseCmd->
SetGuidance(
"Set Verbose level of particle table.");
101 verboseCmd->
SetGuidance(
" 1 : Display warning messages");
105 verboseCmd->
SetRange(
"verbose_level >=0");
114 delete fParticlePropertyMessenger;
119 delete createAllIonCmd;
120 delete createAllIsomerCmd;
123 delete thisDirectory;
129 if( command==listCmd )
142 if ((counter++)%4 == 3)
153 if (counter == 0) {
G4cout << newValues <<
" is not found " <<
G4endl; }
167 else if( command==selectCmd )
172 else if( command==findCmd )
179 G4cout <<
"Unknown particle [" << newValues <<
"]. Command ignored."
188 else if( command==createAllIonCmd )
193 else if( command==createAllIsomerCmd )
198 else if( command==verboseCmd )
208 if( command==selectCmd )
222 static const G4String noName(
"none");
224 if(currentParticle ==
nullptr)
234 else if( command==verboseCmd )
G4GLOB_DLL std::ostream G4cout
const G4String & GetParticleType() const
const G4String & GetParticleName() const
virtual ~G4ParticleMessenger()
G4String GetCurrentValue(G4UIcommand *command)
void SetNewValue(G4UIcommand *command, G4String newValues)
G4ParticleMessenger(G4ParticleTable *pTable=nullptr)
G4IonTable * GetIonTable() const
G4int GetVerboseLevel() const
G4PTblDicIterator * GetIterator() const
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
static G4ParticleTable * GetParticleTable()
void SetVerboseLevel(G4int value)
void SelectParticle(const G4String &name)
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)
void SetToBeBroadcasted(G4bool val)
static G4String ConvertToString(G4bool boolVal)
void SetGuidance(const char *aGuidance)
void SetRange(const char *rs)
void AvailableForStates(G4ApplicationState s1)