fixing bug in AnalysisBoth.C macro. Now also MC Truth and raw yields histograms are...
authormchojnac <mchojnac@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 5 Mar 2013 13:46:28 +0000 (13:46 +0000)
committermchojnac <mchojnac@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 5 Mar 2013 13:46:28 +0000 (13:46 +0000)
PWGLF/SPECTRA/PiKaPr/TestAOD/AnalysisBoth.C

index c7459eb..2e7fd5d 100644 (file)
@@ -294,6 +294,12 @@ void AnalysisBoth (UInt_t options=0xF,TString outdate, TString outnamedata, TStr
        {
                spectra[i]->Scale(vertexcorrection);
                spectraLeonardo[i]->Scale(vertexcorrection);
+               if(TMath::Abs(ycut)>0.0)
+               {
+                       rawspectradata[i]->Scale(1.0/(2.0*ycut));
+                       rawspectramc[i]->Scale(1.0/(2.0*ycut));
+                       MCTruth[i]->Scale(1.0/(2.0*ycut));
+               }
        }       
        allch->Scale(vertexcorrection);
        spectraall->Scale(vertexcorrection/1.6);