--- PamCut/CaloCuts/CaloAngleCut/CaloAngleCut.cpp 2010/01/18 15:55:01 1.1 +++ PamCut/CaloCuts/CaloAngleCut/CaloAngleCut.cpp 2010/03/23 17:27:29 1.2 @@ -8,13 +8,13 @@ /*! @file CaloAngleCut.cpp */ #include "CaloAngleCut.h" -#define PI 3.14159265 int CaloAngleCut::Check(PamLevel2 *event) { + static const double pi = 3.14159265; Double_t xAngle; - xAngle = atan(_xCaloAxis->par[1])*180/PI; // par[1]=tg(theta) . xAngle expressed in degrees + xAngle = atan(_xCaloAxis->par[1])*180/pi; // par[1]=tg(theta) . xAngle expressed in degrees if (! (_minXAngle < xAngle && xAngle < _maxXAngle) ) { return 0; }