diff --git a/src/classes/PRunListCollection.cpp b/src/classes/PRunListCollection.cpp index 652eb6263..6862533b1 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;