Correct number of tracks that is returned by LoadPoints method. Removal of double...
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 28 Mar 2008 10:42:12 +0000 (10:42 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 28 Mar 2008 10:42:12 +0000 (10:42 +0000)
STEER/AliAlignmentTracks.cxx

index 839efe9..71c38e6 100644 (file)
@@ -835,7 +835,10 @@ Int_t AliAlignmentTracks::LoadPoints(const TArrayI *volids, AliTrackPointArray**
 
       // Get tree entry
       Int_t entry = (*index)[iArrayId];
-      if (indexUsed[entry] == kTRUE) continue;
+      if (indexUsed[entry] == kTRUE) {
+       nArrays--;
+       continue;
+      }
       fPointsTree->GetEvent(entry);
       if (!array) {
        AliWarning("Wrong space point array index!");