Bug fix in AliITStrackerV2 (first cluster not used) + possibility of using the V2...
authormasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 3 May 2007 09:46:20 +0000 (09:46 +0000)
committermasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 3 May 2007 09:46:20 +0000 (09:46 +0000)
ITS/AliITSReconstructor.cxx
ITS/AliITStrackerV2.cxx

index c1bc36bca3dcf1427a37b41ec3782d0c828c9be6..76b4daf4ed88a4ac74ccbd406b28a71be7df54d4 100644 (file)
@@ -29,6 +29,7 @@
 #include "AliITSDetTypeRec.h"
 #include "AliITSLoader.h"
 #include "AliITStrackerMI.h"
+#include "AliITStrackerV2.h"
 #include "AliITStrackerSA.h"
 #include "AliITSVertexerIons.h"
 #include "AliITSVertexerFast.h"
@@ -168,6 +169,9 @@ AliTracker* AliITSReconstructor::CreateTracker(AliRunLoader* runLoader)const
   AliTracker* tracker;    
   if (selectedTracker.Contains("MI")) {
     tracker = new AliITStrackerMI(0);
+  }  
+  else if (selectedTracker.Contains("V2")) {
+    tracker = new AliITStrackerV2(0);
   }
   else {
     tracker =  new AliITStrackerSA(0);  // inherits from AliITStrackerMI
index 0597776f4516f629007abe15e679c00e2565d4b4..a44bcb442713eb1a2549282ef55a203f66805b8c 100644 (file)
@@ -1044,7 +1044,7 @@ Bool_t AliITStrackerV2::RefitAt(Double_t xx,AliITStrackV2 *t,
      Double_t maxchi2=kMaxChi2;
 
      Int_t idx=index[i];
-     if (idx>0) {
+     if (idx>=0) {
         const AliITSRecPoint *c=(AliITSRecPoint *)GetCluster(idx); 
         if (idet != c->GetDetectorIndex()) {
            idet=c->GetDetectorIndex();