#include <DLG4Units.hh>
Definition at line 293 of file DLG4Units.hh.
◆ Length() [1/2]
Definition at line 303 of file DLG4Units.hh.
304 : UnitBase(raw, u) {
305 }
◆ Length() [2/2]
Definition at line 307 of file DLG4Units.hh.
std::optional< G4double > NativeValue_
static Length GetGlobalDefault()
◆ CheckUnit()
| void CheckUnit |
( |
const G4String & |
context | ) |
const |
|
inlineinherited |
Definition at line 271 of file DLG4Units.hh.
271 {
273 if (!(NativeValue_ > 0.0)) {
274 G4Exception(context, "InvalidScale", FatalException,
275 "\n Attempted to apply a negative Unit\n");
276 exit(1);
277 }
278 }
void CheckValue(const G4String &context) const
◆ CheckValue()
| void CheckValue |
( |
const G4String & |
context | ) |
const |
|
inlineinherited |
Definition at line 260 of file DLG4Units.hh.
260 {
261
262 volatile bool engagement_flag =
NativeValue_.has_value();
263 if (!engagement_flag) {
264
265 G4Exception(context, "InvalidScale", FatalException,
266 "\n Attempted to use a Unit (or measure) before setting it;\n");
267 exit(1);
268 }
269 }
◆ FromNative()
| static Length FromNative |
( |
G4double |
native_value | ) |
|
|
inlinestaticinherited |
Definition at line 232 of file DLG4Units.hh.
232{ return T(native_value); }
◆ GetGlobalDefault()
| static Length GetGlobalDefault |
( |
| ) |
|
|
inlinestaticinherited |
Definition at line 258 of file DLG4Units.hh.
258{ return T(global_default_unit<T>); }
◆ angstrom
| const Length angstrom {CLHEP::angstrom} |
|
inlinestatic |
◆ cm
◆ dm
◆ feet
◆ fermi
| const Length fermi {CLHEP::fermi} |
|
inlinestatic |
◆ foot
◆ inch
◆ InDefaultUnits
| DefaultUnitsProxy InDefaultUnits |
|
inherited |
◆ InUnits
| ScalableProxy<Length > InUnits |
|
inherited |
◆ km
| const Length km {CLHEP::kilometer} |
|
inlinestatic |
◆ micron
| const Length micron {CLHEP::micrometer} |
|
inlinestatic |
◆ mil
◆ mm
◆ Native
◆ native
◆ NativeValue_
| std::optional<G4double > NativeValue_ |
|
protectedinherited |
◆ nm
| const Length nm {CLHEP::nanometer} |
|
inlinestatic |
◆ pm
| const Length pm {1e-9 * CLHEP::mm} |
|
inlinestatic |
◆ um
| const Length um {CLHEP::micrometer} |
|
inlinestatic |
The documentation for this class was generated from the following file: