69 :theProcessTable(pTable),
70 currentProcessTypeName(
"all"),
71 currentProcessName(
"all"),
72 currentParticleName(
"all")
185 if (newValue ==
"all") {
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) {
220 const char* temp = (
const char*)(tmpS);
221 std::istringstream is((
char*)temp);
228 G4bool isProcName =
false;
243 G4ProcessTable::G4ProcNameVector::iterator itr;
244 for (itr=procNameVector->begin(); itr!=procNameVector->end(); ++itr) {
267 G4bool isProcName =
false;
268 G4ProcessTable::G4ProcNameVector::iterator itr;
269 for (itr=procNameVector->begin(); itr!=procNameVector->end(); ++itr) {
279 ed <<
" illegal process (or type) name ["
282 currentProcessName =
"";
289 G4bool isParticleFound =
false;
292 isParticleFound =
true;
296 if (isParticleFound) {
302 if ( !isParticleFound ) {
306 currentParticleName =
"";
328 if ( currentParticle == 0 ) {
337 if ( currentParticle == 0 ) {
360 }
else if ( command==
listCmd ){
396 G4bool isFoundEndMark =
false;
398 for (idx = 0; idx < 1000 ; idx ++ ) {
400 isFoundEndMark = typeName.
contains(
"---");
401 if ( isFoundEndMark )
break;
403 if ( isFoundEndMark ) {
406 G4Exception(
"G4ProcessTableMessenger::SetNumberOfProcessType()",
"ProcMan014",
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
void SetGuidance(const char *aGuidance)
G4UIcommand * inactivateCmd
void CommandFailed(G4int errCode, G4ExceptionDescription &ed)
std::ostringstream G4ExceptionDescription
static G4ParticleTable * GetParticleTable()
G4bool contains(const G4ParticleDefinition *particle) const
void SetVerboseLevel(G4int value)
void DumpInfo(G4VProcess *process, G4ParticleDefinition *particle=0)
G4String currentProcessName
G4int ApplyCommand(const char *aCommand)
void SetDefaultValue(G4int defVal)
void SetNumberOfProcessType()
virtual void SetNewValue(G4UIcommand *command, G4String newValues)
G4String GetProcessTypeName(G4ProcessType aType) const
void SetRange(const char *rs)
void SetDefaultValue(const char *defVal)
static G4ThreadLocal G4int NumberOfProcessType
G4ProcessTableMessenger()
static G4UImanager * GetUIpointer()
static const G4String & GetProcessTypeName(G4ProcessType)
void SetParameter(G4UIparameter *const newParameter)
void SetVerboseLevel(G4int value)
void SetDefaultValue(const char *theDefaultValue)
G4String currentProcessTypeName
G4ProcessTable * theProcessTable
G4ProcessVector * FindProcesses()
void SetProcessActivation(const G4String &processName, G4bool fActive)
G4UIcmdWithAString * listCmd
const G4String & GetProcessName() const
G4UIdirectory * thisDirectory
G4ProcessType GetProcessType() const
G4bool contains(const std::string &) const
void SetCandidates(const char *candidateList)
G4UIcommand * procVerboseCmd
G4int GetVerboseLevel() const
virtual G4String GetCurrentValue(G4UIcommand *command)
G4ProcNameVector * GetNameList()
static G4String ConvertToString(G4bool boolVal)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
static G4int GetNewIntValue(const char *paramString)
G4GLOB_DLL std::ostream G4cout
G4String currentParticleName
std::vector< G4String > G4ProcNameVector
G4UIcommand * activateCmd
virtual ~G4ProcessTableMessenger()
G4int GetProcessType(const G4String &aTypeName) const
void AvailableForStates(G4ApplicationState s1)
G4UIcmdWithAnInteger * verboseCmd