]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Issue AliError instead of AliFatal in case of inconsistent number of tracks
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 3 Oct 2005 11:29:43 +0000 (11:29 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 3 Oct 2005 11:29:43 +0000 (11:29 +0000)
STEER/AliDetector.cxx

index ffbf37f56c5bbc06818ae8cc1e859fc81b36543d..71d748b5b2ddc3ef9a386fbd734dfcf045e9f5cc 100644 (file)
@@ -307,7 +307,10 @@ void AliDetector::LoadPoints(Int_t)
   for (Int_t hit=0;hit<nhits;hit++) {
     ahit = dynamic_cast<AliHit*>(fHits->UncheckedAt(hit));
     trk=ahit->GetTrack();
-    if(trk>tracks) AliFatal(Form("Found track number %d, max track %d",trk, tracks));
+    if(trk>tracks) {
+      AliError(Form("Found track number %d, max track %d",trk, tracks));
+      continue;
+    }
     if(ntrk[trk]==limi[trk])
      {
       //