]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ANALYSIS/AliAnalysisTaskFilter.cxx
Bug in dispCore filling corrected; cleanup
[u/mrichter/AliRoot.git] / ANALYSIS / AliAnalysisTaskFilter.cxx
index 8e03e9294ab58c052353f09b23b1b86c2cb4fa09..7b2c0883a98be9a568bbe951bb864b9bfe2ceb9a 100644 (file)
@@ -111,14 +111,16 @@ AliAnalysisTaskFilter& AliAnalysisTaskFilter::operator=(const AliAnalysisTaskFil
        // Assignment
        //
 
-       AliAnalysisTask::operator=(other);
-       fDebug        = other.fDebug;
-       fEntry        = other.fEntry;
-       fInputEvent   = other.fInputEvent;
-       fInputHandler = other.fInputHandler;
-       fOutputESDfriend = other.fOutputESDfriend;
-       fTreeEF        = other.fTreeEF;    
-       fInputESDfriend = other.fInputESDfriend;
+       if (&other != this) {
+               AliAnalysisTask::operator=(other);
+               fDebug        = other.fDebug;
+               fEntry        = other.fEntry;
+               fInputEvent   = other.fInputEvent;
+               fInputHandler = other.fInputHandler;
+               fOutputESDfriend = other.fOutputESDfriend;
+               fTreeEF        = other.fTreeEF;    
+               fInputESDfriend = other.fInputESDfriend;
+       }
        return *this;
 }