LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
pyG4UImanager Namespace Reference

Functions

G4int ApplyUICommand_1 (const G4String &cmdstr)
 
G4int ApplyUICommand_2 (const std::string &cmdstr)
 

Variables

G4int(G4UImanager::* f1_ApplyCommand )(const char *) = &G4UImanager::ApplyCommand
 
G4int(G4UImanager::* f2_ApplyCommand )(const G4String &)
 

Function Documentation

G4int pyG4UImanager::ApplyUICommand_1 ( const G4String cmdstr)

Definition at line 56 of file pyG4UImanager.cc.

Referenced by ApplyUICommand_2(), and export_G4UImanager().

58 {
59  G4UImanager* UImgr= G4UImanager::GetUIpointer();
60  G4int returnVal= UImgr-> ApplyCommand(cmdstr);
61  if( returnVal == fCommandSucceeded ) return returnVal;
62 
63  G4int paramIndex= returnVal % 100;
64  G4int commandStatus= returnVal - paramIndex;
65 
66  switch(commandStatus) {
67  case fCommandSucceeded:
68  break;
69 
70  case fCommandNotFound:
71  G4cout << "command <" << UImgr-> SolveAlias(cmdstr)
72  << "> not found" << G4endl;
73  break;
74 
75  case fIllegalApplicationState:
76  G4cout << "illegal application state -- command refused"
77  << G4endl;
78  break;
79 
80  case fParameterOutOfRange:
81  break;
82 
83  case fParameterOutOfCandidates:
84  G4cout << "Parameter is out of candidate list (index "
85  << paramIndex << ")"
86  << G4endl;
87  break;
88 
89  case fParameterUnreadable:
90  G4cout << "Parameter is wrong type and/or is not omittable (index "
91  << paramIndex << ")" << G4endl;
92  break;
93 
94  case fAliasNotFound:
95  break;
96 
97  default:
98  G4cout << "command refused (" << commandStatus << ")" << G4endl;
99  break;
100  }
101 
102  return returnVal;
103 }
G4int pyG4UImanager::ApplyUICommand_2 ( const std::string &  cmdstr)

Definition at line 106 of file pyG4UImanager.cc.

References ApplyUICommand_1().

Referenced by export_G4UImanager().

108 {
109  return ApplyUICommand_1(cmdstr);
110 }
G4int ApplyUICommand_1(const G4String &cmdstr)

Variable Documentation

G4int(G4UImanager::* pyG4UImanager::f1_ApplyCommand) (const char *) = &G4UImanager::ApplyCommand

Definition at line 47 of file pyG4UImanager.cc.

Referenced by export_G4UImanager().

G4int(G4UImanager::* pyG4UImanager::f2_ApplyCommand) (const G4String &)
Initial value:
=
&G4UImanager::ApplyCommand

Definition at line 48 of file pyG4UImanager.cc.

Referenced by export_G4UImanager().