|
Celeritas 0.7.0-dev.178+develop.ae92d08fb
|
Convert a unit from Geant4 scale to another. More...
#include <Scaler.hh>
Public Types | |
Type aliases | |
| using | Real2 = Array< real_type, 2 > |
| using | Real3 = Array< real_type, 3 > |
Public Member Functions | |
| Scaler (double sc) | |
| Scale with an explicit factor from Geant4 or for testing. | |
| Scaler () | |
| Default scale to CLHEP units (mm) | |
| real_type | operator() (double val) const |
| Multiply a value by the scale, converting to Celeritas precision. | |
| Real2 | operator() (G4TwoVector const &vec) const |
| Convert and scale a 2D point. | |
| Real3 | operator() (G4ThreeVector const &vec) const |
| Convert and scale a 3D point. | |
| template<class S , class... Ts> | |
| S | to (Ts &&... args) const |
| Create an array or other object by scaling each argument. | |
| double | value () const |
| Scaling value in Geant4 precision. | |
Convert a unit from Geant4 scale to another.
The input is the length scale of the original input in the new units.