49 if (pTable ==
nullptr) {
53 theParticleTable = pTable;
58 thisDirectory->
SetGuidance(
"Particle control commands.");
70 listCmd->
SetGuidance(
" all(default)/lepton/baryon/meson/nucleus/quarks");
73 listCmd->
SetCandidates(
"all lepton baryon meson nucleus quarks");
85 createAllIonCmd->
SetGuidance(
"Create All ions (ground state)");
91 createAllIsomerCmd->
SetGuidance(
"Create All isomers");
97 verboseCmd->
SetGuidance(
"Set Verbose level of particle table.");
99 verboseCmd->
SetGuidance(
" 1 : Display warning messages");
103 verboseCmd->
SetRange(
"verbose_level >=0");
111 delete fParticlePropertyMessenger;
116 delete createAllIonCmd;
117 delete createAllIsomerCmd;
120 delete thisDirectory;
125 if (command == listCmd) {
134 if ((newValues ==
"all") || (newValues == particle->
GetParticleType())) {
136 if ((counter++) % 4 == 3) {
160 else if (command == selectCmd) {
164 else if (command == findCmd) {
167 if (tmp ==
nullptr) {
168 G4cout <<
"Unknown particle [" << newValues <<
"]. Command ignored." <<
G4endl;
175 else if (command == createAllIonCmd) {
179 else if (command == createAllIsomerCmd) {
183 else if (command == verboseCmd) {
191 if (command == selectCmd) {
204 static const G4String noName(
"none");
206 if (currentParticle ==
nullptr) {
213 if (command == verboseCmd) {
G4GLOB_DLL std::ostream G4cout
const G4String & GetParticleType() const
const G4String & GetParticleName() const
G4String GetCurrentValue(G4UIcommand *command) override
void SetNewValue(G4UIcommand *command, G4String newValues) override
G4ParticleMessenger(G4ParticleTable *pTable=nullptr)
~G4ParticleMessenger() override
void reset(G4bool ifSkipIon=true)
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)