42 SetParameter(dblParamX);
44 SetParameter(dblParamY);
46 SetParameter(dblParamZ);
48 SetParameter(untParam);
54 std::vector<G4String> token_vector;
57 while( (str = tkn()) !=
"" ) {
58 token_vector.push_back(str);
64 if (default_unit !=
"" && token_vector.size() >= 4) {
75 converted_parameter +=
" ";
77 converted_parameter +=
" ";
79 converted_parameter +=
" ";
80 converted_parameter += default_unit;
81 for (
size_t i=4 ; i< token_vector.size(); i++) {
82 converted_parameter +=
" ";
83 converted_parameter += token_vector[i];
86 converted_parameter = parameterList;
103 std::istringstream is(paramString);
104 is >> vx >> vy >> vz >> unts;
114 std::istringstream is(paramString);
115 is >> vx >> vy >> vz >> unts;
125 G4String aToken = candidateTokenizer();
127 std::ostringstream os;
146 (
const char * theNameX,
const char * theNameY,
const char * theNameZ,
static G4double GetNewUnitValue(const char *paramString)
static G4double ValueOf(const char *unitName)
static G4String CategoryOf(const char *unitName)
void SetCurrentAsDefault(G4bool val)
void SetDefaultValue(G4ThreeVector defVal)
CLHEP::Hep3Vector G4ThreeVector
static G4double ConvertToDouble(const char *st)
static G4ThreeVector GetNew3VectorRawValue(const char *paramString)
virtual G4int DoIt(G4String parameterList)
G4String GetDefaultValue() const
G4UIparameter * GetParameter(G4int i) const
G4String GetParameterCandidates() const
G4String ConvertToStringWithBestUnit(G4ThreeVector vec)
void SetUnitCategory(const char *unitCategory)
void SetDefaultValue(const char *theDefaultValue)
G4UIcmdWith3VectorAndUnit(const char *theCommandPath, G4UImessenger *theMessenger)
void SetUnitCandidates(const char *candidateList)
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
static G4String ConvertToString(G4bool boolVal)
void SetParameterName(const char *theName)
G4bool IsOmittable() const
static G4ThreeVector ConvertToDimensioned3Vector(const char *st)
static G4String UnitsList(const char *unitCategory)
void SetDefaultUnit(const char *defUnit)
static G4ThreeVector GetNew3VectorValue(const char *paramString)
void SetParameterCandidates(const char *theString)
G4String ConvertToStringWithDefaultUnit(G4ThreeVector vec)
void SetParameterName(const char *theNameX, const char *theNameY, const char *theNameZ, G4bool omittable, G4bool currentAsDefault=false)
virtual G4int DoIt(G4String parameterList)
void SetOmittable(G4bool om)