53 std::vector<G4String> token_vector;
56 while( (str = tkn()) !=
"" ) {
57 token_vector.push_back(str);
63 if (default_unit !=
"" && token_vector.size() >= 4) {
72 converted_parameter +=
" ";
74 converted_parameter +=
" ";
76 converted_parameter +=
" ";
77 converted_parameter += default_unit;
78 for (
size_t i=4 ; i< token_vector.size(); i++) {
79 converted_parameter +=
" ";
80 converted_parameter += token_vector[i];
83 converted_parameter = parameterList;
100 std::istringstream is(paramString);
101 is >> vx >> vy >> vz >> unts;
111 std::istringstream is(paramString);
112 is >> vx >> vy >> vz >> unts;
122 G4String aToken = candidateTokenizer();
124 std::ostringstream os;
143(
const char * theNameX,
const char * theNameY,
const char * theNameZ,
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
CLHEP::Hep3Vector G4ThreeVector
G4String ConvertToStringWithDefaultUnit(G4ThreeVector vec)
void SetDefaultUnit(const char *defUnit)
G4String ConvertToStringWithBestUnit(G4ThreeVector vec)
static G4ThreeVector GetNew3VectorValue(const char *paramString)
void SetParameterName(const char *theNameX, const char *theNameY, const char *theNameZ, G4bool omittable, G4bool currentAsDefault=false)
static G4double GetNewUnitValue(const char *paramString)
void SetUnitCandidates(const char *candidateList)
void SetUnitCategory(const char *unitCategory)
static G4ThreeVector GetNew3VectorRawValue(const char *paramString)
G4UIcmdWith3VectorAndUnit(const char *theCommandPath, G4UImessenger *theMessenger)
void SetDefaultValue(G4ThreeVector defVal)
virtual G4int DoIt(G4String parameterList)
G4UIparameter * GetParameter(G4int i) const
static G4String CategoryOf(const char *unitName)
static G4double ValueOf(const char *unitName)
virtual G4int DoIt(G4String parameterList)
static G4String ConvertToString(G4bool boolVal)
void SetParameter(G4UIparameter *const newParameter)
static G4String UnitsList(const char *unitCategory)
static G4double ConvertToDouble(const char *st)
static G4ThreeVector ConvertToDimensioned3Vector(const char *st)
void SetDefaultValue(const char *theDefaultValue)
G4String GetDefaultValue() const
G4bool IsOmittable() const
void SetOmittable(G4bool om)
void SetParameterName(const char *theName)
G4String GetParameterCandidates() const
void SetParameterCandidates(const char *theString)
void SetCurrentAsDefault(G4bool val)