MCPcopy Create free account
hub / github.com/Geant4/geant4 / SetDefaultUnit

Method SetDefaultUnit

source/intercoms/src/G4UIcmdWithADoubleAndUnit.cc:180–186  ·  view source on GitHub ↗

--------------------------------------------------------------------

Source from the content-addressed store, hash-verified

178
179// --------------------------------------------------------------------
180void G4UIcmdWithADoubleAndUnit::SetDefaultUnit(const char* defUnit)
181{
182 G4UIparameter* untParam = GetParameter(1);
183 untParam->SetOmittable(true);
184 untParam->SetDefaultValue(defUnit);
185 SetUnitCategory(CategoryOf(defUnit));
186}

Callers

nothing calls this directly

Calls 2

SetOmittableMethod · 0.80
SetDefaultValueMethod · 0.45

Tested by

no test coverage detected