#include <G4ProcessManagerMessenger.hh>
G4ProcessManagerMessenger::G4ProcessManagerMessenger |
( |
G4ParticleTable * |
pTable = 0 | ) |
|
Definition at line 62 of file G4ProcessManagerMessenger.cc.
63 :theParticleTable(pTable),
73 thisDirectory->
SetGuidance(
"Process Manager control commands.");
77 dumpCmd->
SetGuidance(
"dump process manager or process information");
79 dumpCmd->
SetGuidance(
" process index: -1 for process manager");
84 verboseCmd =
new G4UIcommand(
"/particle/process/verbose",
this);
85 verboseCmd->
SetGuidance(
"Set Verbose Level for Process or Process Manager");
86 verboseCmd->
SetGuidance(
" Verbose [Verbose] [process index]");
87 verboseCmd->
SetGuidance(
" process index: -1 for process manager");
99 activateCmd->
SetGuidance(
" Activate [process index]");
108 inactivateCmd->
SetGuidance(
" inactivate [process index]");
111 inactivateCmd->
SetRange(
"index >=0");
void SetParameter(G4UIparameter *const newParameter)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetDefaultValue(const char *theDefaultValue)
void SetRange(const char *rs)
void SetGuidance(const char *aGuidance)
void AvailableForStates(G4ApplicationState s1)
static G4ParticleTable * GetParticleTable()
void SetDefaultValue(G4int defVal)
G4ProcessManagerMessenger::~G4ProcessManagerMessenger |
( |
| ) |
|
|
virtual |
Reimplemented from G4UImessenger.
Definition at line 203 of file G4ProcessManagerMessenger.cc.
205 if(SetCurrentParticle() == 0)
return "";
207 if( command==verboseCmd ){
static G4String ConvertToString(G4bool boolVal)
G4int GetVerboseLevel() const
Reimplemented from G4UImessenger.
Definition at line 143 of file G4ProcessManagerMessenger.cc.
145 if (SetCurrentParticle()==0) {
146 G4cout <<
"Particle is not selected yet !! Command ignored." <<
G4endl;
149 if( command == dumpCmd ){
154 }
else if ( index < theManager->GetProcessListLength()){
155 currentProcess = (*theProcessList)(index);
156 if (currentProcess == 0) {
157 G4cout <<
" no process at index of " << index;
167 }
else if( command==activateCmd ) {
172 }
else if( command==inactivateCmd ) {
177 }
else if( command==verboseCmd ) {
180 const char* temp = (
const char*)(newValue);
181 std::istringstream is((
char*)temp);
182 G4int Verbose, index;
183 is >>Verbose >>index;
187 }
else if ( index < theManager->GetProcessListLength()){
188 currentProcess = (*theProcessList)(index);
189 if (currentProcess == 0) {
190 G4cout <<
" no process at index of " << index;
static G4int GetNewIntValue(const char *paramString)
void SetVerboseLevel(G4int value)
G4VProcess * SetProcessActivation(G4VProcess *aProcess, G4bool fActive)
static G4UImanager * GetUIpointer()
G4GLOB_DLL std::ostream G4cout
virtual void DumpInfo() const
void SetVerboseLevel(G4int value)
G4int ApplyCommand(const char *aCommand)
The documentation for this class was generated from the following files: