EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Acts::TGeoSurfaceConverter Struct Reference

Helper struct to convert TGeoShapes into Surface or Volume Bounds. More...

#include <acts/blob/sPHENIX/Plugins/TGeo/include/Acts/Plugins/TGeo/TGeoSurfaceConverter.hpp>

Static Public Member Functions

static std::tuple
< std::shared_ptr< const
CylinderBounds >, const
Transform3D, double > 
cylinderComponents (const TGeoShape &tgShape, const Double_t *rotation, const Double_t *translation, const std::string &axes, double scalor=10.) noexcept(false)
 
static std::tuple
< std::shared_ptr< const
DiscBounds >, const
Transform3D, double > 
discComponents (const TGeoShape &tgShape, const Double_t *rotation, const Double_t *translation, const std::string &axes, double scalor=10.) noexcept(false)
 
static std::tuple
< std::shared_ptr< const
PlanarBounds >, const
Transform3D, double > 
planeComponents (const TGeoShape &tgShape, const Double_t *rotation, const Double_t *translation, const std::string &axes, double scalor=10.) noexcept(false)
 
static std::shared_ptr< SurfacetoSurface (const TGeoShape &tgShape, const TGeoMatrix &tgMatrix, const std::string &axes, double scalor=10.) noexcept(false)
 
static double toRadian (double degree)
 

Detailed Description

Helper struct to convert TGeoShapes into Surface or Volume Bounds.

Definition at line 28 of file TGeoSurfaceConverter.hpp.

View newest version in sPHENIX GitHub at line 28 of file TGeoSurfaceConverter.hpp

Member Function Documentation

std::tuple< std::shared_ptr< const Acts::CylinderBounds >, const Acts::Transform3D, double > Acts::TGeoSurfaceConverter::cylinderComponents ( const TGeoShape &  tgShape,
const Double_t *  rotation,
const Double_t *  translation,
const std::string &  axes,
double  scalor = 10. 
)
staticnoexcept

Convert a TGeoShape into cylinder surface components

Parameters
tgShapeThe TGeoShape
rotationThe rotation matrix as Double_t* from root
translationThe translation vector as Double_t* from root
axesThe axes definition
scalorThe unit scalor between TGeo and Acts
Returns
tuple of DiscBounds, Trasnform, thickness

Definition at line 45 of file TGeoSurfaceConverter.cpp.

View newest version in sPHENIX GitHub at line 45 of file TGeoSurfaceConverter.cpp

References KF_timing::ax, deltaR(), M_PI, max, min, t, thickness, and Acts::Test::transform.

Referenced by Acts::TGeoDetectorElement::TGeoDetectorElement().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::tuple< std::shared_ptr< const Acts::DiscBounds >, const Acts::Transform3D, double > Acts::TGeoSurfaceConverter::discComponents ( const TGeoShape &  tgShape,
const Double_t *  rotation,
const Double_t *  translation,
const std::string &  axes,
double  scalor = 10. 
)
staticnoexcept

Convert a TGeoShape into disk surface components

Parameters
tgShapeThe TGeoShape
rotationThe rotation matrix as Double_t* from root
translationThe translation vector as Double_t* from root
axesThe axes definition
scalorThe unit scalor between TGeo and Acts
Returns
tuple of DiscBounds, Trasnform, thickness

Definition at line 110 of file TGeoSurfaceConverter.cpp.

View newest version in sPHENIX GitHub at line 110 of file TGeoSurfaceConverter.cpp

References kdfinder::abs(), KF_timing::ax, M_PI, max, min, phi, Acts::Test::phiMin, t, thickness, Acts::Test::transform, v, and vtx().

Referenced by Acts::TGeoDetectorElement::TGeoDetectorElement().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::tuple< std::shared_ptr< const Acts::PlanarBounds >, const Acts::Transform3D, double > Acts::TGeoSurfaceConverter::planeComponents ( const TGeoShape &  tgShape,
const Double_t *  rotation,
const Double_t *  translation,
const std::string &  axes,
double  scalor = 10. 
)
staticnoexcept

Convert a TGeoShape into plane surface components

Parameters
tgShapeThe TGeoShape
rotationThe rotation matrix as Double_t* from root
rotationThe translation vector as Double_t* from root
axesThe axes definition
scalorThe unit scalor between TGeo and Acts
Returns
tuple of PlanarBounds, Trasnform, thickness

Definition at line 262 of file TGeoSurfaceConverter.cpp.

View newest version in sPHENIX GitHub at line 262 of file TGeoSurfaceConverter.cpp

References kdfinder::abs(), KF_timing::ax, Acts::s_epsilon, t, thickness, and Acts::Test::transform.

Referenced by Acts::TGeoDetectorElement::TGeoDetectorElement().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static double Acts::TGeoSurfaceConverter::toRadian ( double  degree)
inlinestatic

Transalte TGeo degree [0, 360) to radian

  • will correct to [-pi,pi)
    Parameters
    degreeThe input in degree
    Returns
    angle in radians

Definition at line 90 of file TGeoSurfaceConverter.hpp.

View newest version in sPHENIX GitHub at line 90 of file TGeoSurfaceConverter.hpp

References M_PI.

std::shared_ptr< Acts::Surface > Acts::TGeoSurfaceConverter::toSurface ( const TGeoShape &  tgShape,
const TGeoMatrix &  tgMatrix,
const std::string &  axes,
double  scalor = 10. 
)
staticnoexcept

Convert a TGeoShape to a Surface

Parameters
tgShapeThe TGeoShape
tgMatrixThe matrix representing the tranbsform
axesThe axes definition
scalorThe unit scalor between TGeo and Acts
Returns
shared pointer to a surface

Definition at line 444 of file TGeoSurfaceConverter.cpp.

View newest version in sPHENIX GitHub at line 444 of file TGeoSurfaceConverter.cpp

Referenced by Acts::Test::BOOST_AUTO_TEST_CASE().

+ Here is the caller graph for this function:


The documentation for this struct was generated from the following files: