From d0fc10ea79e9d530c3246e2d48c865b26f5cbea3 Mon Sep 17 00:00:00 2001 From: Suter Andreas Date: Wed, 17 Dec 2014 15:48:50 +0100 Subject: [PATCH] added GLOBAL handling in case RUN data are not sufficient. --- src/classes/PRunListCollection.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/classes/PRunListCollection.cpp b/src/classes/PRunListCollection.cpp index 652eb626..6862533b 100644 --- a/src/classes/PRunListCollection.cpp +++ b/src/classes/PRunListCollection.cpp @@ -284,6 +284,9 @@ Double_t PRunListCollection::GetSingleHistoChisqExpected(const std::vectorGetMsrRunList()->at(idx).GetFitType(); + if (type == -1) { // i.e. not forun in the RUN block, try the GLOBAL block + type = fMsrInfo->GetMsrGlobal()->GetFitType(); + } // count how many entries of this fit-type are present up to idx UInt_t subIdx = 0; @@ -335,6 +338,9 @@ Double_t PRunListCollection::GetSingleRunChisq(const std::vector& par, } Int_t type = fMsrInfo->GetMsrRunList()->at(idx).GetFitType(); + if (type == -1) { // i.e. not forun in the RUN block, try the GLOBAL block + type = fMsrInfo->GetMsrGlobal()->GetFitType(); + } // count how many entries of this fit-type are present up to idx UInt_t subIdx = 0; @@ -472,6 +478,9 @@ UInt_t PRunListCollection::GetNoOfBinsFitted(const UInt_t idx) const } Int_t type = fMsrInfo->GetMsrRunList()->at(idx).GetFitType(); + if (type == -1) { // i.e. not forun in the RUN block, try the GLOBAL block + type = fMsrInfo->GetMsrGlobal()->GetFitType(); + } // count how many entries of this fit-type are present up to idx UInt_t subIdx = 0;