]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONDigitStoreVImplIterator.cxx
fix array access out of bound + add histo for #chamber hit
[u/mrichter/AliRoot.git] / MUON / AliMUONDigitStoreVImplIterator.cxx
index 4497a09bf87420b0067eb8c01f1fb4324f66a63c..76aedbd6aafe66c57b1aa8d061b4646910761abb 100644 (file)
 
 // $Id$
 
+//-----------------------------------------------------------------------------
 /// \class AliMUONDigitStoreVImplIterator
 ///
 /// Implementation of AliMUONVDataIterator for AliMUONDigitStoreVImpl
 ///
 /// \author Laurent Aphecetche, Subatech
 ///
+//-----------------------------------------------------------------------------
 
 #include "AliMUONDigitStoreVImplIterator.h"
 
@@ -38,7 +40,7 @@ ClassImp(AliMUONDigitStoreVImplIterator)
 //_____________________________________________________________________________
 AliMUONDigitStoreVImplIterator::AliMUONDigitStoreVImplIterator(const AliMUONDigitStoreVImpl* store)
 : TIterator(),
-fStore(store),
+fkStore(store),
 fFirstDetElemId(100),
 fLastDetElemId(1417),
 fCathode(2),
@@ -55,7 +57,7 @@ AliMUONDigitStoreVImplIterator::AliMUONDigitStoreVImplIterator(const AliMUONDigi
                                                                Int_t lastDE,
                                                                Int_t cathode)
 : TIterator(),
-fStore(store),
+fkStore(store),
 fFirstDetElemId(firstDE),
 fLastDetElemId(lastDE),
 fCathode(cathode),
@@ -66,35 +68,11 @@ fCurrentCalibParamIndex(-1)
   /// ctor for partial iteration
 }
 
-//_____________________________________________________________________________
-AliMUONDigitStoreVImplIterator::AliMUONDigitStoreVImplIterator(const AliMUONDigitStoreVImplIterator& rhs)
-: TIterator(rhs),
-fStore(rhs.fStore),
-fFirstDetElemId(rhs.fFirstDetElemId),
-fLastDetElemId(rhs.fLastDetElemId),
-fCathode(rhs.fCathode),
-fStoreIterator(0x0),
-fCurrentCalibParam(0x0),
-fCurrentCalibParamIndex(-1)
-{
-  /// copy ctor
-  Fatal("AliMUONDigitStoreVImplIterator::copy tor","Not implementeable"); // because there's no clone in TIterator :-(
-}
-
 //_____________________________________________________________________________
 AliMUONDigitStoreVImplIterator&
-AliMUONDigitStoreVImplIterator::operator=(const AliMUONDigitStoreVImplIterator&)
-{
-  /// assignment operator
-  Fatal("AliMUONDigitStoreVImplIterator::operator=","Not implementeable"); // because there's no clone in TIterator :-(
-  return *this;
-}
-
-//_____________________________________________________________________________
-TIterator&
 AliMUONDigitStoreVImplIterator::operator=(const TIterator&)
 {
-  /// overriden assignment operator (imposed by Root's declaration of Titerator ?)
+  // overriden assignment operator (imposed by Root's declaration of Titerator ?)
   Fatal("TIterator::operator=","Not implementeable"); // because there's no clone in TIterator :-(
   return *this;
 }
@@ -130,7 +108,7 @@ AliMUONDigitStoreVImplIterator::Next()
     
     if (ix>=0)
     {
-      d = static_cast<AliMUONVDigit*>(fStore->fDigits->UncheckedAt(ix));
+      d = static_cast<AliMUONVDigit*>(fkStore->fDigits->UncheckedAt(ix));
     }  
   }
   else
@@ -144,7 +122,7 @@ AliMUONDigitStoreVImplIterator::Next()
     
       if (ix>=0)
       {
-        d = static_cast<AliMUONVDigit*>(fStore->fDigits->UncheckedAt(ix));
+        d = static_cast<AliMUONVDigit*>(fkStore->fDigits->UncheckedAt(ix));
         
         if (  fCathode == 2 || d->Cathode() == fCathode ) 
         {