From cab8703f8597da794a5bd9b19512a599087c0a0c Mon Sep 17 00:00:00 2001 From: Andreas Suter Date: Thu, 1 Apr 2021 20:30:53 +0200 Subject: [PATCH] fix an error number of theory points for the view data. --- src/classes/PRunAsymmetry.cpp | 2 +- src/classes/PRunSingleHisto.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/classes/PRunAsymmetry.cpp b/src/classes/PRunAsymmetry.cpp index 1a9f3d725..71e3caad1 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 6aab21527..72c8c17e8 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;