17#ifndef O2_MID_GEOMETRYTRANSFORMER_H
18#define O2_MID_GEOMETRYTRANSFORMER_H
40 math_utils::Point3D<T>
localToGlobal(
int deId,
const math_utils::Point3D<T>& position)
const
43 return mTransformations[deId](position);
46 math_utils::Point3D<T>
globalToLocal(
int deId,
const math_utils::Point3D<T>& position)
const
49 return mTransformations[deId].ApplyInverse(position);
55 return localToGlobal(deId, math_utils::Point3D<T>(xPos, yPos, 0.));
58 math_utils::Point3D<T>
globalToLocal(
int deId, T xPos, T yPos, T zPos)
const
61 return globalToLocal(deId, math_utils::Point3D<T>(xPos, yPos, zPos));
64 math_utils::Vector3D<T>
localToGlobal(
int deId,
const math_utils::Vector3D<T>& direction)
const
67 return mTransformations[deId](direction);
70 math_utils::Vector3D<T>
globalToLocal(
int deId,
const math_utils::Vector3D<T>& direction)
const
73 return mTransformations[deId].ApplyInverse(direction);
77 std::array<o2::math_utils::Transform3D, detparams::NDetectionElements> mTransformations;
Useful detector parameters for MID.
GeometryTransformer createTransformationFromManager(const TGeoManager *geoManager)
ROOT::Math::Transform3D getDefaultChamberTransform(int ichamber)
ROOT::Math::Transform3D getDefaultRPCTransform(bool isRight, int chamber, int rpc)
GeometryTransformer createDefaultTransformer()
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...