Skip to content
Snippets Groups Projects
Commit b2ccab6f authored by Kohei Taniguchi's avatar Kohei Taniguchi
Browse files

change three functions(includeing isZero()) to const method

parent 0fcb4756
No related merge requests found
......@@ -50,10 +50,10 @@ class AlphaBetaEstimate: public AthAlgTool
double MiddleSlope, double MiddleR, double MiddleZ,
double sign);
double computeRadius3Points(double InnerZ, double InnerR, double EEZ, double EER,double MiddleZ, double MiddleR );
double calcDistance(double x1,double y1,double x2,double y2,double x3,double y3) ;
double computeRadius3Points(double InnerZ, double InnerR, double EEZ, double EER,double MiddleZ, double MiddleR ) const ;
double calcDistance(double x1,double y1,double x2,double y2,double x3,double y3) const;
inline bool isZero( float value, float tolerance = 1e-5 ) {
inline bool isZero( float value, float tolerance = 1e-5 ) const {
return std::abs( value ) < tolerance;
}
......
......@@ -343,7 +343,7 @@ double TrigL2MuonSA::AlphaBetaEstimate::computeRadius(double InnerSlope, double
double TrigL2MuonSA::AlphaBetaEstimate::computeRadius3Points(double InnerZ, double InnerR,
double EEZ, double EER,
double MiddleZ, double MiddleR)
{
const {
double radius_EE;
double a3;
......@@ -377,7 +377,7 @@ double TrigL2MuonSA::AlphaBetaEstimate::computeRadius3Points(double InnerZ, doub
return radius_EE;
}
double TrigL2MuonSA::AlphaBetaEstimate::calcDistance(double x1,double y1,double x2,double y2,double x3,double y3) {
double TrigL2MuonSA::AlphaBetaEstimate::calcDistance(double x1,double y1,double x2,double y2,double x3,double y3) const {
double xm1=(x1+x2)/2;
double xm2=(x2+x3)/2;
double ym1=(y1+y2)/2;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment