- 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);
+ }