56 std::vector<G4String> token_vector;
59 while((str = tkn()) !=
"")
61 token_vector.push_back(str);
67 if(default_unit !=
"" && token_vector.size() >= 4)
81 converted_parameter +=
" ";
83 converted_parameter +=
" ";
85 converted_parameter +=
" ";
86 converted_parameter += default_unit;
87 for(std::size_t i = 4; i < token_vector.size(); ++i)
89 converted_parameter +=
" ";
90 converted_parameter += token_vector[i];
95 converted_parameter = parameterList;
103 const char* paramString)
110 const char* paramString)
116 std::istringstream is(paramString);
117 is >> vx >> vy >> vz >> unts;
128 std::istringstream is(paramString);
129 is >> vx >> vy >> vz >> unts;
141 G4String aToken = candidateTokenizer();
143 std::ostringstream os;
169 const char* theNameY,
170 const char* theNameZ,
CLHEP::Hep3Vector G4ThreeVector
@ fParameterOutOfCandidates
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)
const G4String & GetParameterCandidates() const
void SetDefaultValue(const char *theDefaultValue)
void SetParameterName(const char *pName)
G4bool IsOmittable() const
void SetOmittable(G4bool om)
void SetParameterCandidates(const char *theString)
void SetCurrentAsDefault(G4bool val)
const G4String & GetDefaultValue() const