Celeritas
0.5.0-56+6b053cd
|
Convert a unit from Geant4 scale to another. More...
#include <Scaler.hh>
Public Member Functions | |
Scaler () | |
Default scale to CLHEP units (mm) | |
Scaler (double sc) | |
Scale with an explicit factor, probably for testing. | |
double | operator() (double val) const |
Multiply a value by the scale. | |
Array< double, 2 > | operator() (G4TwoVector const &vec) const |
Convert and scale a 2D point. | |
Array< double, 3 > | 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. | |
Convert a unit from Geant4 scale to another.
The input is the length scale of the original input in the new units.