Coverity
authordainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 20 Dec 2011 23:40:28 +0000 (23:40 +0000)
committerdainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 20 Dec 2011 23:40:28 +0000 (23:40 +0000)
PWG3/vertexingHF/AliAnalysisTaskSEDplus.cxx
PWG3/vertexingHF/AliAnalysisTaskSEDs.cxx

index 4556eaa..97bdf99 100644 (file)
@@ -79,6 +79,45 @@ AliAnalysisTaskSE(),
   fDoLS(0)
 {
    // Default constructor
+
+  for(Int_t i=0;i<3;i++){
+   if(fHistCentrality[i])fHistCentrality[i]=0;
+   if(fCorreld0Kd0pi[i])fCorreld0Kd0pi[i]=0;
+  }
+  
+  for(Int_t i=0; i<5; i++)fHistMassPtImpParTC[i]=0;
+    
+  
+  for(Int_t i=0;i<3*fNPtBins;i++){
+    if(fMassHist[i])fMassHist[i]=0;
+    if(fCosPHist[i])fCosPHist[i]=0;
+    if(fDLenHist[i])fDLenHist[i]=0;
+    if(fSumd02Hist[i])fSumd02Hist[i]=0;
+    if(fSigVertHist[i])fSigVertHist[i]=0;
+    if(fPtMaxHist[i])fPtMaxHist[i]=0;
+    if(fPtKHist[i])fPtKHist[i]=0;
+    if(fPtpi1Hist[i])fPtpi1Hist[i]=0;
+    if(fPtpi2Hist[i])fPtpi2Hist[i]=0;
+    if(fDCAHist[i])fDCAHist[i]=0;
+    if(fMassHistTC[i])fMassHistTC[i]=0;
+    if(fMassHistTCPlus[i])fMassHistTCPlus[i]=0;
+    if(fMassHistTCMinus[i])fMassHistTCMinus[i]=0;
+    
+    if(fDLxy[i])fDLxy[i]=0;
+    if(fDLxyTC[i])fDLxyTC[i]=0;
+    if(fCosxy[i])fCosxy[i]=0;
+    if(fCosxyTC[i])fCosxyTC[i]=0;
+    if(fMassHistLS[i])fMassHistLS[i]=0;
+    if(fCosPHistLS[i])fCosPHistLS[i]=0;
+    if(fDLenHistLS[i])fDLenHistLS[i]=0;
+    if(fSumd02HistLS[i])fSumd02HistLS[i]=0;
+    if(fSigVertHistLS[i])fSigVertHistLS[i]=0;
+    if(fPtMaxHistLS[i])fPtMaxHistLS[i]=0;
+    if(fDCAHistLS[i])fDCAHistLS[i]=0;
+    if(fMassHistLSTC[i])fMassHistLSTC[i]=0;
+  }
+
+
 }
 
 //________________________________________________________________________
index 03839f2..e74a52e 100644 (file)
@@ -69,6 +69,26 @@ AliAnalysisTaskSEDs::AliAnalysisTaskSEDs():
   fAnalysisCuts(0)
 {
   // Default constructor
+
+  for(Int_t i=0;i<4*fNPtBins;i++){
+    
+    if(fMassHist[i]) fMassHist[i]=0;
+    if(fMassHistPhi[i]) fMassHistPhi[i]=0;
+    if(fMassHistK0st[i]) fMassHistK0st[i]=0;
+    if(fCosPHist[i]) fCosPHist[i]=0;
+    if(fDLenHist[i]) fDLenHist[i]=0;
+    if(fSumd02Hist[i]) fSumd02Hist[i]=0;
+    if(fSigVertHist[i]) fSigVertHist[i]=0;
+    if(fPtMaxHist[i]) fPtMaxHist[i]=0;
+    if(fDCAHist[i]) fDCAHist[i]=0;
+    if(fPtProng0Hist[i]) fPtProng0Hist[i]=0;
+    if(fPtProng1Hist[i]) fPtProng1Hist[i]=0;
+    if(fPtProng2Hist[i]) fPtProng2Hist[i]=0;
+    if(fDalitz[i]) fDalitz[i]=0;
+    if(fDalitzPhi[i]) fDalitzPhi[i]=0;
+    if(fDalitzK0st[i]) fDalitzK0st[i]=0;
+
+  }
 }
 
 //________________________________________________________________________