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");
119 delete inactivateCmd;
122 delete thisDirectory;
131 currentParticle = theParticleTable->
FindParticle(particleName);
132 if (currentParticle == 0) {
134 G4cout <<
"G4ProcessManagerMessenger::SetCurrentParticle() ";
140 return currentParticle;
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) {
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);
183 is >>Verbose >>
index;
187 }
else if ( index < theManager->GetProcessListLength()){
188 currentProcess = (*theProcessList)(
index);
189 if (currentProcess == 0) {
206 if(SetCurrentParticle() == 0) {
211 std::ostringstream os;
213 if( command==verboseCmd ){
216 returnValue = os.str();