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) {
287 G4bool isParticleFound =
false;
290 isParticleFound =
true;
294 if (isParticleFound) {
300 if ( !isParticleFound ) {
325 if ( currentParticle == 0 ) {
334 if ( currentParticle == 0 ) {
359 std::ostringstream os;
367 returnValue = os.str();
369 }
else if ( command==
listCmd ){
384 G4ProcessTable::G4ProcNameVector::iterator itr;
385 for (itr=procNameVector->begin(); itr!=procNameVector->end(); ++itr) {
386 candidates +=
" " + (*itr);
431 G4bool isFoundEndMark =
false;
433 for (idx = 0; idx < 1000 ; idx ++ ) {
435 isFoundEndMark = typeName.
contains(
"---");
436 if ( isFoundEndMark )
break;
438 if ( isFoundEndMark ) {
441 G4Exception(
"G4ProcessTableMessenger::SetNumberOfProcessType()",
"ProcMan014",
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetParameter(G4UIparameter *const newParameter)
static const G4String & GetProcessTypeName(G4ProcessType)
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void DumpInfo(G4VProcess *process, G4ParticleDefinition *particle=0)
static G4int GetNewIntValue(const char *paramString)
void SetParameterCandidates(const char *theString)
void SetNumberOfProcessType()
void SetDefaultValue(const char *theDefaultValue)
G4ProcessType GetProcessType() const
void SetProcessActivation(const G4String &processName, G4bool fActive)
const G4String & GetParticleName() const
static G4UImanager * GetUIpointer()
G4GLOB_DLL std::ostream G4cout
virtual G4String GetCurrentValue(G4UIcommand *command)
void SetVerboseLevel(G4int value)
void SetRange(const char *rs)
void SetGuidance(const char *aGuidance)
virtual ~G4ProcessTableMessenger()
G4UIparameter * GetParameter(G4int i) const
G4ProcessTableMessenger()
void AvailableForStates(G4ApplicationState s1)
const G4String & GetProcessName() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4UIcmdWithAString * listCmd
G4bool contains(const G4ParticleDefinition *particle) const
G4int GetProcessType(const G4String &aTypeName) const
G4ProcNameVector * GetNameList()
G4bool contains(const std::string &) const
static G4ParticleTable * GetParticleTable()
virtual void SetNewValue(G4UIcommand *command, G4String newValues)
void SetDefaultValue(const char *defVal)
G4int GetVerboseLevel() const
G4UIdirectory * thisDirectory
std::vector< G4String > G4ProcNameVector
G4String currentProcessTypeName
G4String GetProcessTypeName(G4ProcessType aType) const
G4UIcommand * procVerboseCmd
static G4ThreadLocal G4int NumberOfProcessType
G4ProcessTable * theProcessTable
void SetCandidates(const char *candidateList)
G4UIcommand * activateCmd
void SetDefaultValue(G4int defVal)
G4UIcmdWithAnInteger * verboseCmd
G4UIcommand * inactivateCmd
G4ProcessVector * FindProcesses()
G4PTblDicIterator * GetIterator() const
void SetVerboseLevel(G4int value)
G4int ApplyCommand(const char *aCommand)
G4String currentParticleName
G4String currentProcessName