diff --git a/examples/DDCMS/src/plugins/DDEcalEndcapAlgo.cpp b/examples/DDCMS/src/plugins/DDEcalEndcapAlgo.cpp index ef5f13d337804897b9917e6d103f45880f44c441..c6039aba4bc0acf549209a3f5a41d0de96b220f9 100644 --- a/examples/DDCMS/src/plugins/DDEcalEndcapAlgo.cpp +++ b/examples/DDCMS/src/plugins/DDEcalEndcapAlgo.cpp @@ -17,14 +17,18 @@ #include <vector> using namespace std; -using namespace cms; using namespace dd4hep; using DD3Vector = ROOT::Math::DisplacementVector3D<ROOT::Math::Cartesian3D<double>>; using DDTranslation = ROOT::Math::DisplacementVector3D<ROOT::Math::Cartesian3D<double> >; using DDRotation = ROOT::Math::Rotation3D; using DDRotationMatrix = ROOT::Math::Rotation3D; -using DDAxisAngle = ROOT::Math::AxisAngle; +using DDAxisAngle = ROOT::Math::AxisAngle; + +constexpr long double piRadians(M_PIl); // M_PIl is long double version of pi +constexpr long double degPerRad = 180. / piRadians; // Degrees per radian +constexpr double operator"" _mm(long double length) { return length * 0.1; } +constexpr long double operator"" _deg(long double deg) { return deg / degPerRad; } // Define Endcap Supercrystal class