Celeritas  0.5.0-86+4a8eea4
Public Member Functions | List of all members
celeritas::g4org::Scaler Class Reference

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>
to (Ts &&... args) const
 Create an array or other object by scaling each argument.
 

Detailed Description

Convert a unit from Geant4 scale to another.

The input is the length scale of the original input in the new units.


The documentation for this class was generated from the following file: