]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Bug fix in GetSize (Laurent)
authormartinez <martinez@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 27 Jun 2007 14:11:38 +0000 (14:11 +0000)
committermartinez <martinez@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 27 Jun 2007 14:11:38 +0000 (14:11 +0000)
MUON/AliMUONClusterStoreV1.cxx

index 3f25fd4f44d3005337343228af812fda69f35781..317a828719c868b4fed5ac4f7f764015c3ab2f4b 100644 (file)
@@ -211,5 +211,10 @@ AliMUONClusterStoreV1::CreateChamberIterator(Int_t firstChamber, Int_t lastChamb
 Int_t
 AliMUONClusterStoreV1::GetSize() const
 {
-  return fClusters->GetLast()+1;
+  Int_t n(0);
+  for ( Int_t i = 0; i < fClusters->GetSize(); ++i ) 
+  {
+    n += ChamberClusters(i)->GetLast()+1;
+  }
+  return n;
 }