]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Introduce consistency check when loading points
authoralibrary <alibrary@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 12 Dec 2000 18:19:06 +0000 (18:19 +0000)
committeralibrary <alibrary@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 12 Dec 2000 18:19:06 +0000 (18:19 +0000)
STEER/AliDetector.cxx

index 3b64bd66948ce8f6ec219f41efd47a3f944212a4..ae61b101e4ef3b72bab174622bd37350e905d121 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.8  2000/11/30 07:12:48  alibrary
+Introducing new Rndm and QA classes
+
 Revision 1.7  2000/10/02 21:28:14  fca
 Removal of useless dependecies via forward declarations
 
@@ -44,6 +47,8 @@ Introduction of the Copyright and cvs Log
 //                                                                           //
 ///////////////////////////////////////////////////////////////////////////////
 
+#include <assert.h>
+
 #include <TTree.h>
 #include "TBrowser.h"
 
@@ -212,6 +217,7 @@ void AliDetector::LoadPoints(Int_t)
   for (Int_t hit=0;hit<nhits;hit++) {
     ahit = (AliHit*)fHits->UncheckedAt(hit);
     trk=ahit->GetTrack();
+    assert(trk<=tracks);
     if(ntrk[trk]==limi[trk]) {
       //
       // Initialise a new track