182 if( command == listCmd ){
185 if (newValue ==
"all") {
186 currentProcessTypeName = newValue;
188 type = GetProcessType(newValue);
192 currentProcessTypeName = newValue;
197 G4ProcessTable::G4ProcNameVector::iterator itr;
198 for (itr=procNameVector->begin(); itr!=procNameVector->end(); ++itr) {
201 if ( (type <0) || ( ((*tmpVector)(0)->GetProcessType()) == type) ) {
202 if ( counter%4 != 0)
G4cout <<
",";
203 G4cout << std::setw(19) <<*itr;
204 if ((counter++)%4 == 3) {
213 }
else if( command==procVerboseCmd ) {
220 const char* temp = (
const char*)(tmpS);
221 std::istringstream is((
char*)temp);
226 currentProcessTypeName =
G4String(next());
227 if (currentProcessTypeName.
isNull()) currentProcessTypeName =
"all";
228 G4bool isProcName =
false;
232 if (currentProcessTypeName ==
"all") {
235 type = GetProcessType(currentProcessTypeName);
238 currentProcessName = currentProcessTypeName;
239 currentProcessTypeName =
"";
243 G4ProcessTable::G4ProcNameVector::iterator itr;
244 for (itr=procNameVector->begin(); itr!=procNameVector->end(); ++itr) {
257 }
else if( command==verboseCmd ) {
266 currentProcessName =
G4String(next());
267 G4bool isProcName =
false;
268 G4ProcessTable::G4ProcNameVector::iterator itr;
269 for (itr=procNameVector->begin(); itr!=procNameVector->end(); ++itr) {
270 if ( (*itr) == currentProcessName ) {
276 type = GetProcessType(currentProcessName);
280 currentProcessName =
"";
286 currentParticleName =
G4String(next());
287 G4bool isParticleFound =
false;
289 if ( currentParticleName ==
"all" ) {
290 isParticleFound =
true;
294 if (isParticleFound) {
300 if ( !isParticleFound ) {
303 currentParticleName =
"";
307 if( command==dumpCmd ) {
311 tmpVector = theProcessTable->
FindProcesses(currentProcessName);
316 theProcessTable->
DumpInfo( (*tmpVector)(i), currentParticle );
321 }
else if ( (command==activateCmd) || (command==inactivateCmd)) {
323 G4bool fActive = (command==activateCmd);
325 if ( currentParticle == 0 ) {
334 if ( currentParticle == 0 ) {
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
void DumpInfo(G4VProcess *process, G4ParticleDefinition *particle=0)
static G4int GetNewIntValue(const char *paramString)
G4ProcessType GetProcessType() const
void SetProcessActivation(const G4String &processName, G4bool fActive)
static G4UImanager * GetUIpointer()
G4GLOB_DLL std::ostream G4cout
void SetVerboseLevel(G4int value)
const G4String & GetProcessName() const
G4bool contains(const G4ParticleDefinition *particle) const
G4ProcNameVector * GetNameList()
static G4ParticleTable * GetParticleTable()
std::vector< G4String > G4ProcNameVector
G4ProcessVector * FindProcesses()
void SetVerboseLevel(G4int value)
G4int ApplyCommand(const char *aCommand)