Wrong coverity fix -- now OK + wrong checkin before
authorfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 18 Feb 2012 06:24:05 +0000 (06:24 +0000)
committerfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 18 Feb 2012 06:24:05 +0000 (06:24 +0000)
STEER/ESD/AliESDEvent.cxx
STEER/ESD/AliESDMuonCluster.cxx
STEER/ESD/AliESDMuonTrack.cxx

index c96c11e..2324144 100644 (file)
@@ -503,8 +503,8 @@ void AliESDEvent::ResetStdContent()
   if(fEMCALTrigger)fEMCALTrigger->DeAllocate(); 
   if(fSPDPileupVertices)fSPDPileupVertices->Delete();
   if(fTrkPileupVertices)fTrkPileupVertices->Delete();
-  if(fTracks)fTracks->Clear("C"); //Delete();
-  if(fMuonTracks)fMuonTracks->Clear("C"); //Delete();
+  if(fTracks)fTracks->Delete();
+  if(fMuonTracks)fMuonTracks->Delete();
   if(fPmdTracks)fPmdTracks->Delete();
   if(fTrdTracks)fTrdTracks->Delete();
   if(fTrdTracklets)fTrdTracklets->Delete();
index 7b74426..7ee9e30 100644 (file)
@@ -112,15 +112,11 @@ AliESDMuonCluster::~AliESDMuonCluster()
 }
 
 //__________________________________________________________________________
-void AliESDMuonCluster::Clear(Option_t* opt)
+void AliESDMuonCluster::Clear(Option_t* /*opt*/)
 {
   /// Clear arrays
-  if (opt && opt[0] == 'C') {
-    if (fPads) fPads->Clear("C");
-  } else {
-    delete fPads;
-    fPads = 0x0;
-  }
+  delete fPads;
+  fPads = 0x0;
 }
 
 //_____________________________________________________________________________
index 305f2e4..d3d3861 100644 (file)
@@ -234,12 +234,7 @@ AliESDMuonTrack::~AliESDMuonTrack()
 void AliESDMuonTrack::Clear(Option_t* opt)
 {
   /// Clear arrays
-  if (opt && opt[0] == 'C') {
-    if (fClusters) fClusters->Clear("C");
-  } else {
-    delete fClusters;
-    fClusters = 0x0;
-  }
+  if (fClusters) fClusters->Clear(opt);
 }
 
 //__________________________________________________________________________