]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Additional protection (Yu.Belikov)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 11 May 2005 02:31:38 +0000 (02:31 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 11 May 2005 02:31:38 +0000 (02:31 +0000)
ITS/AliITSclustererV2.cxx

index 2e9bb92dc78e8c2d0685f6d94e6016363174fa65..532d04438d6a346d608971628eb88dc8f2dc3539 100644 (file)
@@ -119,6 +119,10 @@ Int_t AliITSclustererV2::Digits2Clusters(TTree *dTree, TTree *cTree) {
   else branch->SetAddress(&clusters);
 
   Int_t mmax=(Int_t)dTree->GetEntries();
+  if (mmax!=fNModules) {
+    Error("Digits2Clusters","Number of entries != number of modules !");
+    return 1;
+  }
 
   for (fI=0; fI<mmax; fI++) {
     dTree->GetEvent(fI);