coverity fix: histograms initialized in the member initialization list
authormiweber <miweber@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 29 Mar 2012 07:07:42 +0000 (07:07 +0000)
committermiweber <miweber@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 29 Mar 2012 07:07:42 +0000 (07:07 +0000)
PWGCF/EBYE/PIDFluctuation/task/AliAnalysisTaskPIDFluctuation.cxx
PWGCF/EBYE/macros/readBalanceFunction.C

index 30fa9b9..01beeb1 100644 (file)
@@ -95,7 +95,14 @@ AliAnalysisTaskPIDFluctuation::AliAnalysisTaskPIDFluctuation(const Char_t *name)
   fPtMin(0.3),
   fPtMax(1.5),
   fPID(NULL),
-  fHistoList(NULL)
+  fHistoList(NULL),
+  fHistoEventCounter(NULL),
+  fHistoAcceptedTracks(NULL),
+  fHistoTOFMatchedTracks(NULL),
+  fHistoTPCdEdx(NULL),
+  fHistoTPCdEdx_inclusive(NULL),
+  fHistoTOFbeta(NULL),
+  fHistoCorrelation(NULL)
 {
   
   /*
index 97606fb..d5cb7ab 100644 (file)
@@ -439,31 +439,31 @@ void drawBF(Bool_t bHistos = kFALSE, TString inFile = "AnalysisResults.root", In
   if(!bHistos){
     for(Int_t i = 0; i < iList+1; i++){
       gWM[i] = new TGraphErrors(iCanvas,cent,WM[i],centE,WME[i]);
-      if(iList==1) gWM[i]->SetName("gCentrality");  
+      if(iList==0) gWM[i]->SetName("gCentrality");  
       else gWM[i]->SetName(Form("gCentrality_%d",i));
       gWMS[i] = new TGraphErrors(iCanvas,cent,WMS[i],centE,WMSE[i]); 
-      if(iList==1) gWMS[i]->SetName("gCentralityS");  
+      if(iList==0) gWMS[i]->SetName("gCentralityS");  
       else gWMS[i]->SetName(Form("gCentralityS_%d",i)); 
 
       gWMP[i] = new TGraphErrors(iCanvas,cent,WMP[i],centE,WMPE[i]);
-      if(iList==1) gWMP[i]->SetName("gCentralityPhi");  
+      if(iList==0) gWMP[i]->SetName("gCentralityPhi");  
       else gWMP[i]->SetName(Form("gCentralityPhi_%d",i));
       gWMPS[i] = new TGraphErrors(iCanvas,cent,WMPS[i],centE,WMPSE[i]); 
-      if(iList==1) gWMPS[i]->SetName("gCentralityPhiS");  
+      if(iList==0) gWMPS[i]->SetName("gCentralityPhiS");  
       else gWMPS[i]->SetName(Form("gCentralityPhiS_%d",i)); 
 
       ginteg[i] = new TGraphErrors(iCanvas,cent,integ[i],centE,integE[i]);
-      if(iList==1) ginteg[i]->SetName("gIntegral");  
+      if(iList==0) ginteg[i]->SetName("gIntegral");  
       else ginteg[i]->SetName(Form("gIntegral_%d",i));
       gintegS[i] = new TGraphErrors(iCanvas,cent,integS[i],centE,integSE[i]); 
-      if(iList==1) gintegS[i]->SetName("gIntegralS");  
+      if(iList==0) gintegS[i]->SetName("gIntegralS");  
       else gintegS[i]->SetName(Form("gIntegralS_%d",i)); 
 
       gintegP[i] = new TGraphErrors(iCanvas,cent,integP[i],centE,integPE[i]);
-      if(iList==1) gintegP[i]->SetName("gIntegraPhil");  
+      if(iList==0) gintegP[i]->SetName("gIntegraPhil");  
       else gintegP[i]->SetName(Form("gIntegralPhi_%d",i));
       gintegPS[i] = new TGraphErrors(iCanvas,cent,integPS[i],centE,integPSE[i]); 
-      if(iList==1) gintegPS[i]->SetName("gIntegralPhiS");  
+      if(iList==0) gintegPS[i]->SetName("gIntegralPhiS");  
       else gintegPS[i]->SetName(Form("gIntegralPhiS_%d",i)); 
     }
   }