]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STAT/TKDPDF.h
adding QA reference for HghMultiplicity
[u/mrichter/AliRoot.git] / STAT / TKDPDF.h
index 846e3e053404a6aa6ac69dbd94dff834c0dba204..8ec6a384ce0a47ed72931bf87ea3413cb5e36b2d 100644 (file)
@@ -1,14 +1,14 @@
 #ifndef ROOT_TKDPDF
 #define ROOT_TKDPDF
 
-#ifndef ROOT_TKDTree
-#include "TKDTree.h"
-#endif
-
 #ifndef ROOT_TKDInterpolatorBase
 #include "TKDInterpolatorBase.h"
 #endif
 
+#ifndef ROOT_TKDTree
+#include "TKDTree.h"
+#endif
+
 // Non parametric interpolation class based on local polinomial regression.
 // The class can be used to approximate PDF together with TKDTree or for
 // general regression when the data points are given.
@@ -42,7 +42,7 @@ private:
 //__________________________________________________________________
 Bool_t TKDPDF::GetDataPoint(Int_t n, Float_t *p) const
 {
-       if(n < 0 || n >= fNpoints) return kFALSE;
+       if(n < 0 || n >= fNPoints) return kFALSE;
        if(!fData) return kFALSE;
                
        for(int i=0; i<fNDim; i++) p[i] = fData[i][n];
@@ -52,7 +52,7 @@ Bool_t        TKDPDF::GetDataPoint(Int_t n, Float_t *p) const
 //__________________________________________________________________
 Int_t  TKDPDF::GetNodeIndex(const Float_t *p)
 {
-       return FindNode(p) - fNnodes;
+       return FindNode(p) - fNNodes;
 }
 
 #endif