#include <DLG4Units.hh>
Definition at line 375 of file DLG4Units.hh.
◆ Density() [1/2]
Definition at line 384 of file DLG4Units.hh.
std::optional< G4double > NativeValue_
static Density GetGlobalDefault()
◆ Density() [2/2]
◆ 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 Density FromNative |
( |
G4double |
native_value | ) |
|
|
inlinestaticinherited |
Definition at line 232 of file DLG4Units.hh.
232{ return T(native_value); }
◆ GetGlobalDefault()
| static Density GetGlobalDefault |
( |
| ) |
|
|
inlinestaticinherited |
Definition at line 258 of file DLG4Units.hh.
258{ return T(global_default_unit<T>); }
◆ g_per_cm3
| const Density g_per_cm3 {CLHEP::g / CLHEP::cm3} |
|
inlinestatic |
◆ g_per_L
| const Density g_per_L {CLHEP::g / CLHEP::liter} |
|
inlinestatic |
◆ InDefaultUnits
| DefaultUnitsProxy InDefaultUnits |
|
inherited |
◆ InUnits
◆ mg_per_cm3
| const Density mg_per_cm3 {CLHEP::mg / CLHEP::cm3} |
|
inlinestatic |
◆ Native
◆ native
◆ NativeValue_
| std::optional<G4double > NativeValue_ |
|
protectedinherited |
The documentation for this class was generated from the following file: