Updated destructor of D+ task
authorprino <prino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 7 Jun 2012 15:42:51 +0000 (15:42 +0000)
committerprino <prino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 7 Jun 2012 15:42:51 +0000 (15:42 +0000)
PWGHF/vertexingHF/AliAnalysisTaskSEDplus.cxx

index a61e9cc..23516f3 100644 (file)
@@ -226,77 +226,7 @@ AliAnalysisTaskSEDplus::~AliAnalysisTaskSEDplus()
     delete fOutput;
     fOutput = 0;
   }
-  if(fHistNEvents){
-    delete fHistNEvents;
-    fHistNEvents=0;
-  }  
-  
-  for(Int_t i=0;i<3;i++){
-    if(fHistCentrality[i]){delete fHistCentrality[i]; fHistCentrality[i]=0;}
-  }
-  
-  for(Int_t i=0;i<3*fNPtBins;i++){
-    if(fMassHist[i]){ delete fMassHist[i]; fMassHist[i]=0;}
-    if(fCosPHist[i]){ delete fCosPHist[i]; fCosPHist[i]=0;}
-    if(fDLenHist[i]){ delete fDLenHist[i]; fDLenHist[i]=0;}
-    if(fSumd02Hist[i]){ delete fSumd02Hist[i]; fSumd02Hist[i]=0;}
-    if(fSigVertHist[i]){ delete fSigVertHist[i]; fSigVertHist[i]=0;}
-    if(fPtMaxHist[i]){ delete fPtMaxHist[i]; fPtMaxHist[i]=0;}
-    if(fPtKHist[i]){ delete fPtKHist[i]; fPtKHist[i]=0;}
-    if(fPtpi1Hist[i]){ delete fPtpi1Hist[i]; fPtpi1Hist[i]=0;}
-    if(fPtpi2Hist[i]){ delete fPtpi2Hist[i]; fPtpi2Hist[i]=0;}
-    if(fDCAHist[i]){ delete fDCAHist[i]; fDCAHist[i]=0;}
-    if(fMassHistTC[i]){ delete fMassHistTC[i]; fMassHistTC[i]=0;}
-    if(fMassHistTCPlus[i]){ delete fMassHistTCPlus[i]; fMassHistTCPlus[i]=0;}
-    if(fMassHistTCMinus[i]){ delete fMassHistTCMinus[i]; fMassHistTCMinus[i]=0;}
-
-    if(fDLxy[i]){delete fDLxy[i]; fDLxy[i]=0;}
-    if(fDLxyTC[i]){delete fDLxyTC[i]; fDLxyTC[i]=0;}
-    if(fCosxy[i]){delete fCosxy[i]; fCosxy[i]=0;}
-    if(fCosxyTC[i]){delete fCosxyTC[i]; fCosxyTC[i]=0;}
-    if(fMassHistLS[i]){ delete fMassHistLS[i]; fMassHistLS[i]=0;}
-    if(fCosPHistLS[i]){ delete fCosPHistLS[i]; fCosPHistLS[i]=0;}
-    if(fDLenHistLS[i]){ delete fDLenHistLS[i]; fDLenHistLS[i]=0;}
-    if(fSumd02HistLS[i]){ delete fSumd02HistLS[i]; fSumd02HistLS[i]=0;}
-    if(fSigVertHistLS[i]){ delete fSigVertHistLS[i]; fSigVertHistLS[i]=0;}
-    if(fPtMaxHistLS[i]){ delete fPtMaxHistLS[i]; fPtMaxHistLS[i]=0;}
-    if(fDCAHistLS[i]){ delete fDCAHistLS[i]; fDCAHistLS[i]=0;}
-    if(fMassHistLSTC[i]){ delete fMassHistLSTC[i]; fMassHistLSTC[i]=0;}
-  }
-
-  for(Int_t i=0;i<3;i++){
-    if(fCorreld0Kd0pi[i]){ delete fCorreld0Kd0pi[i]; fCorreld0Kd0pi[i]=0;}
-  }
 
-  if(fPtVsMass){
-    delete fPtVsMass;
-    fPtVsMass=0;
-  }
-  if(fPtVsMassTC){
-    delete fPtVsMassTC;
-    fPtVsMassTC=0;
-  }
-  if(fYVsPt){
-    delete fYVsPt;
-    fYVsPt=0;
-  }
-  if(fYVsPtTC){
-    delete fYVsPtTC;
-    fYVsPtTC=0;
-  }
-  if(fYVsPtSig){
-    delete fYVsPtSig;
-    fYVsPtSig=0;
-  }
-  if(fYVsPtSigTC){
-    delete fYVsPtSigTC;
-    fYVsPtSigTC=0;
-  }
-  if(fSPDMult){
-    delete fSPDMult;
-    fSPDMult=0;
-  }  
-  
   
   if(fNtupleDplus){
     delete fNtupleDplus;
@@ -310,9 +240,6 @@ AliAnalysisTaskSEDplus::~AliAnalysisTaskSEDplus()
     delete fRDCutsAnalysis;
     fRDCutsAnalysis = 0;
   }
-  for(Int_t i=0; i<5; i++){
-    delete fHistMassPtImpParTC[i];
-  }
   if(fCounter){
     delete fCounter;
     fCounter = 0;