Celeritas  0.5.0-56+6b053cd
Public Member Functions | List of all members
celeritas::g4vg::Transformer Class Reference

Return a VecGeom transformation from a Geant4 transformation. More...

#include <Transformer.hh>

Public Types

Type aliases
using result_type = vecgeom::Transformation3D
 

Public Member Functions

 Transformer (Scaler const &convert_scale_)
 Construct with a scaling function.
 
result_type operator() (G4ThreeVector const &t) const
 Convert a translation. More...
 
result_type operator() (G4ThreeVector const &t, G4RotationMatrix const &rot) const
 Convert a translation + rotation. More...
 
result_type operator() (G4ThreeVector const &t, G4RotationMatrix const *rot) const
 Convert a translation + optional rotation. More...
 
result_type operator() (G4AffineTransform const &at) const
 Convert an affine transform. More...
 

Detailed Description

Return a VecGeom transformation from a Geant4 transformation.

Member Function Documentation

◆ operator()() [1/4]

auto celeritas::g4vg::Transformer::operator() ( G4AffineTransform const &  at) const
inline

Convert an affine transform.

Create a transform from an affine transform.

◆ operator()() [2/4]

auto celeritas::g4vg::Transformer::operator() ( G4ThreeVector const &  t) const
inline

Convert a translation.

Create a transform from a translation.

◆ operator()() [3/4]

auto celeritas::g4vg::Transformer::operator() ( G4ThreeVector const &  t,
G4RotationMatrix const &  rot 
) const
inline

Convert a translation + rotation.

Create a transform from a translation plus rotation.

◆ operator()() [4/4]

auto celeritas::g4vg::Transformer::operator() ( G4ThreeVector const &  t,
G4RotationMatrix const *  rot 
) const
inline

Convert a translation + optional rotation.

Create a transform from a translation plus optional rotation.


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