]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Mods in order to use Root 4
authormasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 8 Apr 2004 16:40:48 +0000 (16:40 +0000)
committermasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 8 Apr 2004 16:40:48 +0000 (16:40 +0000)
ITS/AliITStrackerANN.cxx

index fc0320816449a4e8059f1d467b6f43176c2d742f..4f11a63a7883aa17d352238fde660b44a90fa088 100644 (file)
@@ -27,6 +27,9 @@
 #include <TTree.h>
 #include <TRandom.h>
 #include <TMatrixD.h>
+#if ROOT_VERSION_CODE >= ROOT_VERSION(4,0,2)
+  #include <TMatrixDEigen.h>
+#endif
 
 #include "AliITSgeom.h"
 #include "AliITStrackSA.h"
@@ -2007,7 +2010,13 @@ Bool_t AliITStrackerANN::AliITStrackANN::RiemannFit()
        // Eigenvalue problem solving for V matrix
        Int_t ileast = 0;
        TVectorD eval(3), n(3);
+#if ROOT_VERSION_CODE < ROOT_VERSION(4,0,2)
        TMatrixD evec = sampleCov.EigenVectors(eval);
+#else
+       TMatrixDEigen ei(sampleCov);
+       TMatrixD evec = ei.GetEigenVectors();
+       eval = ei.GetEigenValuesRe();
+#endif
        if (eval(1) < eval(ileast)) ileast = 1;
        if (eval(2) < eval(ileast)) ileast = 2;
        n(0) = evec(0, ileast);