//////////////////////////////////////////////////////////////////// /// \class RAT::FlatMap /// /// \brief Useful tool for flatmap representation of the detector /// /// \author Freija Descamps /// /// REVISION HISTORY:\n /// /// 7/14/15 FD First version /// /// \details Some useful functions for the /// flatmap representation of the detector. This code /// is largely inspired by code from K. Clark. /// //////////////////////////////////////////////////////////////////// #ifndef __RAT_FlatMap__ #define __RAT_FlatMap__ class TVector2; class TVector3; namespace RAT { // Return the transformed coordinates TVector2 TransformCoord( const TVector3& V1, const TVector3& V2, const TVector3& V3, const TVector2& A1, const TVector2& A2, const TVector2& A3, const TVector3& P ); void SphereToIcosahedron( TVector3& pointOnSphere, // The spherical position TVector2& resultPosition, // The returned position const double totalLength, // Total size of the 2d grid (default to 1) const double rotation); // Rotation: 0 for "Phil" style, 2.12 for "SNO" style } // namespace RAT #endif //__RAT_FlatMap__