51 untParam->SetParameterName(
"Unit");
59 std::vector<G4String> token_vector;
62 while (!(str = tkn()).empty()) {
63 token_vector.push_back(str);
69 if (!default_unit.empty() && 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) {
88 converted_parameter +=
" ";
89 converted_parameter += token_vector[i];
93 converted_parameter = parameterList;
112 std::istringstream is(paramString);
113 is >> vx >> vy >> vz >> unts;
124 std::istringstream is(paramString);
125 is >> vx >> vy >> vz >> unts;
136 G4String aToken = candidateTokenizer();
138 std::ostringstream os;
161 const char* theNameZ,
G4bool omittable,
CLHEP::Hep3Vector G4ThreeVector
@ fParameterOutOfCandidates
G4String ConvertToStringWithBestUnit(const G4ThreeVector &vec)
void SetDefaultUnit(const char *defUnit)
G4int DoIt(G4String parameterList) override
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)
G4String ConvertToStringWithDefaultUnit(const G4ThreeVector &vec)
void SetDefaultValue(const G4ThreeVector &defVal)
G4UIparameter * GetParameter(G4int i) const
static G4String CategoryOf(const char *unitName)
static G4double ValueOf(const char *unitName)
void SetCommandType(CommandType)
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