Celeritas 0.6.0-110+develop.c7dc37d1
Loading...
Searching...
No Matches
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 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.
 

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: