Commit fd558c18 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Detector: add proper transformation functions

parent 7e7ef9a3
......@@ -107,7 +107,9 @@ namespace corryvreckan {
double inPixelY(PositionVector3D<Cartesian3D<double>> localPosition);
Transform3D* localToGlobal() { return m_localToGlobal; };
ROOT::Math::XYZPoint localToGlobal(ROOT::Math::XYZPoint local) { return (*m_localToGlobal) * local; };
Transform3D* globalToLocal() { return m_globalToLocal; };
ROOT::Math::XYZPoint globalToLocal(ROOT::Math::XYZPoint global) { return (*m_globalToLocal) * global; };
private:
// Member variables
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment