]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONObjectPair.cxx
added proper handling of EMCAL calibration events
[u/mrichter/AliRoot.git] / MUON / AliMUONObjectPair.cxx
index e6d989200945cbb187872fe60dd8b054f91fb6a7..38b39ed8fba925de630d2edd524c7e3df9ebb1ee 100644 (file)
@@ -20,6 +20,7 @@
 #include "AliLog.h"
 #include <Riostream.h>
 
+//-----------------------------------------------------------------------------
 /// \class AliMUONObjectPair
 ///
 /// The equivalent of a std::pair<TObject*,TObject*> ;-)
@@ -31,6 +32,7 @@
 /// we decide on the ownership of the first and/or second object...
 ///
 /// \author Laurent Aphecetche
+//-----------------------------------------------------------------------------
 
 /// \cond CLASSIMP
 ClassImp(AliMUONObjectPair)
@@ -86,9 +88,10 @@ AliMUONObjectPair&
 AliMUONObjectPair::operator=(const AliMUONObjectPair& other)
 {
   /// assignement operator
-  AliDebug(1,"");
-  AliMUONObjectPair pair(other);
-  pair.Copy(*this);
+  if ( this != &other)
+  {
+    other.Copy(*this);
+  }
   return *this;
 }