]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONReAlignTask.cxx
Fix coverity defect
[u/mrichter/AliRoot.git] / MUON / AliMUONReAlignTask.cxx
index 9f03b5bce355cb5d7bc835d463ef36b86a9a4619..36c6fc6d49fe792637dc3789f22c8b0379a8dac0 100644 (file)
@@ -149,6 +149,7 @@ AliMUONReAlignTask::AliMUONReAlignTask(const AliMUONReAlignTask& obj)
 AliMUONReAlignTask& AliMUONReAlignTask::operator=(const AliMUONReAlignTask& other)
 {
   /// Assignment
+  if(&other == this) return *this;
   AliAnalysisTask::operator=(other);
   fESD = other.fESD;
   fClusterInfoTree = other.fClusterInfoTree;
@@ -309,14 +310,6 @@ void AliMUONReAlignTask::Exec(Option_t *)
     // Find the corresponding re-fitted MUON track
     AliMUONTrack* newTrack = (AliMUONTrack*) newTrackStore->FindObject(esdTrack->GetUniqueID());
     
-//     // replace the content of the current ESD track or remove it if the refitting has failed
-//     if (newTrack) {
-//       Double_t vertex[3] = {esdTrack->GetNonBendingCoor(), esdTrack->GetBendingCoor(), esdTrack->GetZ()};
-//       AliMUONESDInterface::MUONToESD(*newTrack, *esdTrack, vertex, esdInterface.GetDigits());
-//       } else {
-//       esdTracks->Remove(esdTrack);
-//       }
-      
     // print initial and re-fitted track parameters at first cluster if any
     if (fPrintLevel>0) {
       cout<<"            ----------------track #"<<iTrack+1<<"----------------"<<endl;