Project
Loading...
Searching...
No Matches
o2::mid::GeometryTransformer Class Reference

#include <GeometryTransformer.h>

Public Member Functions

void setMatrix (int deId, const ROOT::Math::Transform3D &matrix)
 
const ROOT::Math::Transform3D getMatrix (int deId)
 Gets the matrix transformation for detection element deId.
 
template<typename T >
math_utils::Point3D< T > localToGlobal (int deId, const math_utils::Point3D< T > &position) const
 
template<typename T >
math_utils::Point3D< T > globalToLocal (int deId, const math_utils::Point3D< T > &position) const
 
template<typename T >
math_utils::Point3D< T > localToGlobal (int deId, T xPos, T yPos) const
 
template<typename T >
math_utils::Point3D< T > globalToLocal (int deId, T xPos, T yPos, T zPos) const
 
template<typename T >
math_utils::Vector3D< T > localToGlobal (int deId, const math_utils::Vector3D< T > &direction) const
 
template<typename T >
math_utils::Vector3D< T > globalToLocal (int deId, const math_utils::Vector3D< T > &direction) const
 

Detailed Description

Class to convert the local MID RPC coordinates into global ones and viceversa

Definition at line 32 of file GeometryTransformer.h.

Member Function Documentation

◆ getMatrix()

const ROOT::Math::Transform3D o2::mid::GeometryTransformer::getMatrix ( int  deId)
inline

Gets the matrix transformation for detection element deId.

Definition at line 37 of file GeometryTransformer.h.

◆ globalToLocal() [1/3]

template<typename T >
math_utils::Point3D< T > o2::mid::GeometryTransformer::globalToLocal ( int  deId,
const math_utils::Point3D< T > &  position 
) const
inline

Converts global coordinates into local ones

Definition at line 46 of file GeometryTransformer.h.

◆ globalToLocal() [2/3]

template<typename T >
math_utils::Vector3D< T > o2::mid::GeometryTransformer::globalToLocal ( int  deId,
const math_utils::Vector3D< T > &  direction 
) const
inline

Converts direction in global coordinates into a local ones

Definition at line 70 of file GeometryTransformer.h.

◆ globalToLocal() [3/3]

template<typename T >
math_utils::Point3D< T > o2::mid::GeometryTransformer::globalToLocal ( int  deId,
xPos,
yPos,
zPos 
) const
inline

Converts global coordinates into local ones

Definition at line 58 of file GeometryTransformer.h.

◆ localToGlobal() [1/3]

template<typename T >
math_utils::Point3D< T > o2::mid::GeometryTransformer::localToGlobal ( int  deId,
const math_utils::Point3D< T > &  position 
) const
inline

Converts local coordinates into global ones

Definition at line 40 of file GeometryTransformer.h.

◆ localToGlobal() [2/3]

template<typename T >
math_utils::Vector3D< T > o2::mid::GeometryTransformer::localToGlobal ( int  deId,
const math_utils::Vector3D< T > &  direction 
) const
inline

Converts direction in local coordinates into global ones

Definition at line 64 of file GeometryTransformer.h.

◆ localToGlobal() [3/3]

template<typename T >
math_utils::Point3D< T > o2::mid::GeometryTransformer::localToGlobal ( int  deId,
xPos,
yPos 
) const
inline

Converts local coordinates into global ones

Definition at line 52 of file GeometryTransformer.h.

◆ setMatrix()

void o2::mid::GeometryTransformer::setMatrix ( int  deId,
const ROOT::Math::Transform3D matrix 
)

Sets the transformation matrix for detection element deId

Definition at line 33 of file GeometryTransformer.cxx.


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