Helper struct to convert TGeoShapes into Surface or Volume Bounds.
More...
#include <ActsPlugins/Root/TGeoSurfaceConverter.hpp>
|
| static std::tuple< std::shared_ptr< const Acts::CylinderBounds >, const Acts::Transform3, double > | cylinderComponents (const TGeoShape &tgShape, const Double_t *rotation, const Double_t *translation, const std::string &axes, double scalor=10.) noexcept(false) |
| | Convert a TGeoShape into cylinder surface components.
|
| static std::tuple< std::shared_ptr< const Acts::DiscBounds >, const Acts::Transform3, double > | discComponents (const TGeoShape &tgShape, const Double_t *rotation, const Double_t *translation, const std::string &axes, double scalor=10.) noexcept(false) |
| | Convert a TGeoShape into disk surface components.
|
| static std::tuple< std::shared_ptr< const Acts::PlanarBounds >, const Acts::Transform3, double > | planeComponents (const TGeoShape &tgShape, const Double_t *rotation, const Double_t *translation, const std::string &axes, double scalor=10.) noexcept(false) |
| | Convert a TGeoShape into plane surface components.
|
| static double | toRadian (double deg) |
| | Translate TGeo degree [0, 360) to radian.
|
| static std::tuple< std::shared_ptr< Acts::Surface >, double > | toSurface (const TGeoShape &tgShape, const TGeoMatrix &tgMatrix, const std::string &axes, double scalor=10.) noexcept(false) |
| | Convert a TGeoShape to a Surface.
|
Helper struct to convert TGeoShapes into Surface or Volume Bounds.
◆ cylinderComponents()
| std::tuple< std::shared_ptr< const Acts::CylinderBounds >, const Acts::Transform3, double > ActsPlugins::TGeoSurfaceConverter::cylinderComponents |
( |
const TGeoShape & | tgShape, |
|
|
const Double_t * | rotation, |
|
|
const Double_t * | translation, |
|
|
const std::string & | axes, |
|
|
double | scalor = 10. ) |
|
static |
Convert a TGeoShape into cylinder surface components.
- Parameters
-
| tgShape | The TGeoShape |
| rotation | The rotation matrix as Double_t* from root |
| translation | The translation vector as Double_t* from root |
| axes | The axes definition |
| scalor | The unit scalor between TGeo and Acts |
- Returns
- tuple of DiscBounds, Transform, thickness
◆ discComponents()
| std::tuple< std::shared_ptr< const Acts::DiscBounds >, const Acts::Transform3, double > ActsPlugins::TGeoSurfaceConverter::discComponents |
( |
const TGeoShape & | tgShape, |
|
|
const Double_t * | rotation, |
|
|
const Double_t * | translation, |
|
|
const std::string & | axes, |
|
|
double | scalor = 10. ) |
|
static |
Convert a TGeoShape into disk surface components.
- Parameters
-
| tgShape | The TGeoShape |
| rotation | The rotation matrix as Double_t* from root |
| translation | The translation vector as Double_t* from root |
| axes | The axes definition |
| scalor | The unit scalor between TGeo and Acts |
- Returns
- tuple of DiscBounds, Transform, thickness
◆ planeComponents()
| std::tuple< std::shared_ptr< const Acts::PlanarBounds >, const Acts::Transform3, double > ActsPlugins::TGeoSurfaceConverter::planeComponents |
( |
const TGeoShape & | tgShape, |
|
|
const Double_t * | rotation, |
|
|
const Double_t * | translation, |
|
|
const std::string & | axes, |
|
|
double | scalor = 10. ) |
|
static |
Convert a TGeoShape into plane surface components.
- Parameters
-
| tgShape | The TGeoShape |
| rotation | The rotation matrix as Double_t* from root |
| translation | The translation as a Double_t* |
| axes | The axes definition |
| scalor | The unit scalor between TGeo and Acts |
- Returns
- tuple of PlanarBounds, Transform, thickness
◆ toRadian()
| double ActsPlugins::TGeoSurfaceConverter::toRadian |
( |
double | deg | ) |
|
|
static |
Translate TGeo degree [0, 360) to radian.
- will correct to [-pi,pi)
- it will return any multiple of 360.0 to 2pi
- Parameters
-
- Returns
- angle in radians
◆ toSurface()
| std::tuple< std::shared_ptr< Acts::Surface >, double > ActsPlugins::TGeoSurfaceConverter::toSurface |
( |
const TGeoShape & | tgShape, |
|
|
const TGeoMatrix & | tgMatrix, |
|
|
const std::string & | axes, |
|
|
double | scalor = 10. ) |
|
static |
Convert a TGeoShape to a Surface.
- Parameters
-
| tgShape | The TGeoShape |
| tgMatrix | The matrix representing the transform |
| axes | The axes definition |
| scalor | The unit scalor between TGeo and Acts |
- Returns
- shared pointer to a surface and the original thickness that has been condensed to the surface