diff --git a/src/classes/PRunAsymmetry.cpp b/src/classes/PRunAsymmetry.cpp index 1a9f3d72..71e3caad 100644 --- a/src/classes/PRunAsymmetry.cpp +++ b/src/classes/PRunAsymmetry.cpp @@ -1297,7 +1297,7 @@ Bool_t PRunAsymmetry::PrepareViewData(PRawRunData* runData, UInt_t histoNo[2]) // calculate theory Double_t time; - UInt_t size = runData->GetDataBin(histoNo[0])->size(); + UInt_t size = runData->GetDataBin(histoNo[0])->size()/packing; Int_t factor = 8; // 8 times more points for the theory (if fTheoAsData == false) fData.SetTheoryTimeStart(fData.GetDataTimeStart()); diff --git a/src/classes/PRunSingleHisto.cpp b/src/classes/PRunSingleHisto.cpp index 6aab2152..72c8c17e 100644 --- a/src/classes/PRunSingleHisto.cpp +++ b/src/classes/PRunSingleHisto.cpp @@ -1315,7 +1315,7 @@ Bool_t PRunSingleHisto::PrepareViewData(PRawRunData* runData, const UInt_t histo // calculate theory Double_t theoryValue; - UInt_t size = fForward.size(); + UInt_t size = fForward.size()/packing; Int_t factor = 8; // 8 times more points for the theory (if fTheoAsData == false) UInt_t rebinRRF = 0;