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

Method G4UIcmdWithADoubleAndUnit

source/intercoms/src/G4UIcmdWithADoubleAndUnit.cc:41–51  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

39
40// --------------------------------------------------------------------
41G4UIcmdWithADoubleAndUnit::G4UIcmdWithADoubleAndUnit(const char* theCommandPath,
42 G4UImessenger* theMessenger)
43 : G4UIcommand(theCommandPath, theMessenger)
44{
45 auto* dblParam = new G4UIparameter('d');
46 SetParameter(dblParam);
47 auto* untParam = new G4UIparameter('s');
48 untParam->SetParameterName("Unit");
49 SetParameter(untParam);
50 SetCommandType(WithADoubleAndUnitCmd);
51}
52
53// --------------------------------------------------------------------
54G4int G4UIcmdWithADoubleAndUnit::DoIt(const G4String& parameterList)

Callers

nothing calls this directly

Calls 1

SetParameterNameMethod · 0.45

Tested by

no test coverage detected