Fix Coverity issues
authorakisiel <akisiel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 17 May 2011 08:49:32 +0000 (08:49 +0000)
committerakisiel <akisiel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 17 May 2011 08:49:32 +0000 (08:49 +0000)
PWG2/FEMTOSCOPY/AliFemtoUser/AliFemtoChi2CorrFctn.cxx
PWG2/FEMTOSCOPY/AliFemtoUser/AliFemtoModelBPLCMSCorrFctn.cxx
PWG2/FEMTOSCOPY/AliFemtoUser/AliFemtoModelCorrFctn3DLCMSSpherical.cxx
PWG2/FEMTOSCOPY/AliFemtoUser/AliFemtoModelCorrFctn3DSpherical.cxx
PWG2/FEMTOSCOPY/AliFemtoUser/AliFemtoModelCorrFctnDEtaDPhi.cxx

index db7f1a5..b18435f 100644 (file)
@@ -30,20 +30,20 @@ AliFemtoChi2CorrFctn::AliFemtoChi2CorrFctn(char* title, const int& nbins, const
   fSigmaToVertexDenominator(0)
 {
   // set up numerator
-  char tTitNum[100] = "NumChi2ITSSUM";
+  char tTitNum[101] = "NumChi2ITSSUM";
   strncat(tTitNum,title, 100);
   fChi2ITSSUMNumerator = new TH2D(tTitNum,title,nbins,QinvLo,QinvHi,200,0.0,6.0);
   // set up denominator
-  char tTitDen[100] = "DenChi2ITSSUM";
+  char tTitDen[101] = "DenChi2ITSSUM";
   strncat(tTitDen,title, 100);
   fChi2ITSSUMDenominator = new TH2D(tTitDen,title,nbins,QinvLo,QinvHi,200,0.0,6.0);
 
   // set up numerator
-  char tTit2Num[100] = "NumChi2TPCSUM";
+  char tTit2Num[101] = "NumChi2TPCSUM";
   strncat(tTit2Num,title, 100);
   fChi2TPCSUMNumerator = new TH2D(tTit2Num,title,nbins,QinvLo,QinvHi,200,0.0,6.0);
   // set up denominator
-  char tTit2Den[100] = "DenChi2TPCSUM";
+  char tTit2Den[101] = "DenChi2TPCSUM";
   strncat(tTit2Den,title, 100);
   fChi2TPCSUMDenominator = new TH2D(tTit2Den,title,nbins,QinvLo,QinvHi,200,0.0,6.0);
 
index 2163e0e..d086e5f 100644 (file)
@@ -29,19 +29,19 @@ AliFemtoModelBPLCMSCorrFctn::AliFemtoModelBPLCMSCorrFctn(char* title, const int&
   fUseRPSelection(0)
 {
   // set up true numerator
-  char tTitNumT[100] = "Num3DTrue";
+  char tTitNumT[101] = "Num3DTrue";
   strncat(tTitNumT,title, 100);
   fNumerator3DTrue = new TH3D(tTitNumT,title,nbins,QLo,QHi,nbins,QLo,QHi,nbins,QLo,QHi);
   // set up fake numerator
-  char tTitNumF[100] = "Num3DFake";
+  char tTitNumF[101] = "Num3DFake";
   strncat(tTitNumF,title, 100);
   fNumerator3DFake = new TH3D(tTitNumF,title,nbins,QLo,QHi,nbins,QLo,QHi,nbins,QLo,QHi);
   // set up denominator
-  char tTitDen[100] = "Den3D";
+  char tTitDen[101] = "Den3D";
   strncat(tTitDen,title, 100);
   fDenominator3D = new TH3D(tTitDen,title,nbins,QLo,QHi,nbins,QLo,QHi,nbins,QLo,QHi);
   // set up ave qInv
-  char tTitQinv[100] = "Qinv";
+  char tTitQinv[101] = "Qinv";
   strncat(tTitQinv,title, 100);
   fQinvHisto = new TH3D(tTitQinv,title,nbins,QLo,QHi,nbins,QLo,QHi,nbins,QLo,QHi);
 
index 885d4fb..775d95a 100644 (file)
@@ -25,15 +25,15 @@ ClassImp(AliFemtoModelCorrFctn3DLCMSSpherical)
   fPairCut(0x0)
 {
   // set up numerator
-  char tTitNum[100] = "NumTrue";
+  char tTitNum[101] = "NumTrue";
   strncat(tTitNum,title, 100);
   fTrueNumeratorSph = new TH3D(tTitNum,title,nqbins,QLo,QHi,nphibins,-TMath::Pi(),TMath::Pi(),ncthetabins,-1.0,1.0);
   // set up numerator
-  char tTitNumF[100] = "NumFake";
+  char tTitNumF[101] = "NumFake";
   strncat(tTitNumF,title, 100);
   fFakeNumeratorSph = new TH3D(tTitNumF,title,nqbins,QLo,QHi,nphibins,-TMath::Pi(),TMath::Pi(),ncthetabins,-1.0,1.0);
   // set up denominator
-  char tTitDen[100] = "Den";
+  char tTitDen[101] = "Den";
   strncat(tTitDen,title, 100);
   fDenominatorSph = new TH3D(tTitDen,title,nqbins,QLo,QHi,nphibins,-TMath::Pi(),TMath::Pi(),ncthetabins,-1.0,1.0);
 
index c8b279d..79c0578 100644 (file)
@@ -27,15 +27,15 @@ AliFemtoModelCorrFctn3DSpherical::AliFemtoModelCorrFctn3DSpherical(char* title,
   fPairCut(0x0)
 {
   // set up numerator
-  char tTitNum[100] = "NumTrue";
+  char tTitNum[101] = "NumTrue";
   strncat(tTitNum,title, 100);
   fTrueNumeratorSph = new TH3D(tTitNum,title,nqbins,QLo,QHi,nphibins,-TMath::Pi(),TMath::Pi(),ncthetabins,-1.0,1.0);
   // set up numerator
-  char tTitNumF[100] = "NumFake";
+  char tTitNumF[101] = "NumFake";
   strncat(tTitNumF,title, 100);
   fFakeNumeratorSph = new TH3D(tTitNumF,title,nqbins,QLo,QHi,nphibins,-TMath::Pi(),TMath::Pi(),ncthetabins,-1.0,1.0);
   // set up denominator
-  char tTitDen[100] = "Den";
+  char tTitDen[101] = "Den";
   strncat(tTitDen,title, 100);
   fDenominatorSph = new TH3D(tTitDen,title,nqbins,QLo,QHi,nphibins,-TMath::Pi(),TMath::Pi(),ncthetabins,-1.0,1.0);
 
index 1743ecb..5e97932 100644 (file)
@@ -48,72 +48,72 @@ AliFemtoModelCorrFctnDEtaDPhi::AliFemtoModelCorrFctnDEtaDPhi(char* title, const
   fDCosPtDenominator(0)
 {
   // set up numerator
-  char tTitNumDT[100] = "NumDPhiDEtaTrue";
+  char tTitNumDT[101] = "NumDPhiDEtaTrue";
   strncat(tTitNumDT,title, 100);
   fDPhiDEtaNumeratorTrue = new TH2D(tTitNumDT,title,aPhiBins,-0.5*TMath::Pi(),1.5*TMath::Pi(),aEtaBins,-2.0,2.0);
 
-  char tTitNumDF[100] = "NumDPhiDEtaFake";
+  char tTitNumDF[101] = "NumDPhiDEtaFake";
   strncat(tTitNumDF,title, 100);
   fDPhiDEtaNumeratorFake = new TH2D(tTitNumDF,title,aPhiBins,-0.5*TMath::Pi(),1.5*TMath::Pi(),aEtaBins,-2.0,2.0);
 
 
   // set up denominator
-  char tTitDenD[100] = "DenDPhiDEta";
+  char tTitDenD[101] = "DenDPhiDEta";
   strncat(tTitDenD,title, 100);
   fDPhiDEtaDenominator = new TH2D(tTitDenD,title,aPhiBins,-0.5*TMath::Pi(),1.5*TMath::Pi(),aEtaBins,-2.0,2.0);
 
   // set up numerator
-  char tTitNumR[100] = "NumDPhiDEtaCol";
+  char tTitNumR[101] = "NumDPhiDEtaCol";
   strncat(tTitNumR,title, 100);
   fDPhiDEtaColNumerator = new TH2D(tTitNumR,title,aPhiBins,-0.5*TMath::Pi(),1.5*TMath::Pi(),aEtaBins,-2.0,2.0);
   // set up denominator
-  char tTitDenR[100] = "DenDPhiDEtaCol";
+  char tTitDenR[101] = "DenDPhiDEtaCol";
   strncat(tTitDenR,title, 100);
   fDPhiDEtaColDenominator = new TH2D(tTitDenR,title,aPhiBins,-0.5*TMath::Pi(),1.5*TMath::Pi(),aEtaBins,-2.0,2.0);
 
   // set up numerator
-  char tTitNumDPhiT[100] = "NumDPhiTrue";
+  char tTitNumDPhiT[101] = "NumDPhiTrue";
   strncat(tTitNumDPhiT,title, 100);
   fDPhiNumeratorTrue = new TH1D(tTitNumDPhiT,title,aPhiBins*2,-0.5*TMath::Pi(),1.5*TMath::Pi());
   // set up numerator
-  char tTitNumDPhiF[100] = "NumDPhiFake";
+  char tTitNumDPhiF[101] = "NumDPhiFake";
   strncat(tTitNumDPhiF,title, 100);
   fDPhiNumeratorFake = new TH1D(tTitNumDPhiF,title,aPhiBins*2,-0.5*TMath::Pi(),1.5*TMath::Pi());
 
   // set up denominator
-  char tTitDenDPhi[100] = "DenDPhi";
+  char tTitDenDPhi[101] = "DenDPhi";
   strncat(tTitDenDPhi,title, 100);
   fDPhiDenominator = new TH1D(tTitDenDPhi,title,aPhiBins*2,-0.5*TMath::Pi(),1.5*TMath::Pi());
 
   // set up numerator
-  char tTitNumDCosT[100] = "NumDCosTrue";
+  char tTitNumDCosT[101] = "NumDCosTrue";
   strncat(tTitNumDCosT,title, 100);
   fDCosNumeratorTrue = new TH1D(tTitNumDCosT,title,aPhiBins*2,-1.0,1.0);
   // set up numerator
-  char tTitNumDCosF[100] = "NumDCosFake";
+  char tTitNumDCosF[101] = "NumDCosFake";
   strncat(tTitNumDCosF,title, 100);
   fDCosNumeratorFake = new TH1D(tTitNumDCosF,title,aPhiBins*2,-1.0,1.0);
 
   // set up denominator
-  char tTitDenDCos[100] = "DenDCos";
+  char tTitDenDCos[101] = "DenDCos";
   strncat(tTitDenDCos,title, 100);
   fDCosDenominator = new TH1D(tTitDenDCos,title,aPhiBins*2,-1.0,1.0);
 
   // set up numerator
-  char tTitNumDPhiPt[100] = "NumDPhiPt";
+  char tTitNumDPhiPt[101] = "NumDPhiPt";
   strncat(tTitNumDPhiPt,title, 100);
   fDPhiPtNumerator = new TH2D(tTitNumDPhiPt,title,aPhiBins*2,-0.5*TMath::Pi(),1.5*TMath::Pi(), 30, 0.0, 3.0);
   // set up denominator
-  char tTitDenDPhiPt[100] = "DenDPhiPt";
+  char tTitDenDPhiPt[101] = "DenDPhiPt";
   strncat(tTitDenDPhiPt,title, 100);
   fDPhiPtDenominator = new TH2D(tTitDenDPhiPt,title,aPhiBins*2,-0.5*TMath::Pi(),1.5*TMath::Pi(), 30, 0.0, 3.0);
 
   // set up numerator
-  char tTitNumDCosPt[100] = "NumDCosPt";
+  char tTitNumDCosPt[101] = "NumDCosPt";
   strncat(tTitNumDCosPt,title, 100);
   fDCosPtNumerator = new TH2D(tTitNumDCosPt,title,aPhiBins*2,-1.0,1.0, 30, 0.0, 3.0);
   // set up denominator
-  char tTitDenDCosPt[100] = "DenDCosPt";
+  char tTitDenDCosPt[101] = "DenDCosPt";
   strncat(tTitDenDCosPt,title, 100);
   fDCosPtDenominator = new TH2D(tTitDenDCosPt,title,aPhiBins*2,-1.0,1.0, 30, 0.0, 3.0);