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

Convert a unit from Geant4 scale to another. More...

#include <Scaler.hh>

Public Member Functions

double operator() (double val) const
 Convert a positional scalar.
 
std::pair< double, double > operator() (G4TwoVector const &vec) const
 Convert a two-vector.
 
vecgeom::Vector3D< double > operator() (G4ThreeVector const &vec) const
 Convert a three-vector.
 

Detailed Description

Convert a unit from Geant4 scale to another.

Currently the scale is hardcoded as mm (i.e., CLHEP units) but could easily be a class attribute.


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