#include "AliMUONDigitStoreV1Iterator.h"
+#include "AliLog.h"
#include "AliMpDEManager.h"
#include "AliMUONVDigit.h"
+#include "TObjArray.h"
/// \cond CLASSIMP
ClassImp(AliMUONDigitStoreV1Iterator)
}
//_____________________________________________________________________________
-TIterator&
+AliMUONDigitStoreV1Iterator&
AliMUONDigitStoreV1Iterator::operator=(const TIterator& rhs)
{
/// overriden assignment operator (imposed by Root's definition of TIterator ?)
- if ( this != &rhs && rhs.IsA() == AliMUONDigitStoreV1Iterator::Class())
+
+ if ( this != &rhs )
{
- const AliMUONDigitStoreV1Iterator& rhs1 =
- static_cast<const AliMUONDigitStoreV1Iterator&>(rhs);
-
- fArray = rhs1.fArray;
- fFirstDetElemId = rhs1.fFirstDetElemId;
- fLastDetElemId = rhs1.fLastDetElemId;
- fCathode = rhs1.fCathode;
+ if ( rhs.IsA() != AliMUONDigitStoreV1Iterator::Class() )
+ {
+ AliErrorGeneral("AliMUONDigitStoreV1Iterator::operator=","Wrong type");
+ }
+ else
+ {
+ const AliMUONDigitStoreV1Iterator& rhs1 =
+ static_cast<const AliMUONDigitStoreV1Iterator&>(rhs);
+
+ AliMUONDigitStoreV1Iterator::operator=(rhs1);
+ }
}
return *this;
}
/// assignement operator
if ( this != &rhs )
{
+ TIterator::operator=(rhs);
fArray = rhs.fArray;
fFirstDetElemId = rhs.fFirstDetElemId;
fLastDetElemId = rhs.fLastDetElemId;