1 #ifndef _SdHorizontalReconstruction_Utilities_h_
2 #define _SdHorizontalReconstruction_Utilities_h_
4 #include <utl/CoordinateSystemPtr.h>
6 #include <utl/Vector.h>
8 namespace SdHorizontalReconstructionNS {
28 const Vector coreToPos = pos - core;
29 const Vector coreToOrigin = origin - core;
30 delta = coreToPos*coreToOrigin/coreToOrigin.GetMag();
31 rho =
std::sqrt(coreToPos.GetMag2() - delta*delta);
utl::CoordinateSystemPtr GetShowerCoordinateSystem(const double theta, const double phi, const utl::CoordinateSystemPtr &coreCS)
double GetRho(const utl::Point &pos, const utl::Point &core, const utl::Point &origin)
boost::shared_ptr< const CoordinateTransformer > CoordinateSystemPtr
Shared pointer for coordinate systems.
void GetRhoAndDelta(double &rho, double &delta, const utl::Point &pos, const utl::Point &core, const utl::Point &origin)