49 untParam->SetParameterName(
"Unit");
57 std::vector<G4String> token_vector;
60 while(!(str = tkn()).empty())
62 token_vector.push_back(str);
68 if(!default_unit.empty() && token_vector.size() >= 4)
82 converted_parameter +=
" ";
84 converted_parameter +=
" ";
86 converted_parameter +=
" ";
87 converted_parameter += default_unit;
88 for(std::size_t i = 4; i < token_vector.size(); ++i)
90 converted_parameter +=
" ";
91 converted_parameter += token_vector[i];
96 converted_parameter = parameterList;
104 const char* paramString)
111 const char* paramString)
117 std::istringstream is(paramString);
118 is >> vx >> vy >> vz >> unts;
129 std::istringstream is(paramString);
130 is >> vx >> vy >> vz >> unts;
142 G4String aToken = candidateTokenizer();
144 std::ostringstream os;
170 const char* theNameY,
171 const char* theNameZ,
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