From b29d85dd4c8905b6dfbe679c64c47bbc92daba12 Mon Sep 17 00:00:00 2001 From: Andreas Suter Date: Mon, 23 Sep 2019 13:53:19 +0200 Subject: [PATCH] fix for the case that a global section is present. --- src/classes/PRunListCollection.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/classes/PRunListCollection.cpp b/src/classes/PRunListCollection.cpp index 98e11c6a..103912ae 100644 --- a/src/classes/PRunListCollection.cpp +++ b/src/classes/PRunListCollection.cpp @@ -398,7 +398,8 @@ Double_t PRunListCollection::GetSingleHistoChisqExpected(const std::vectorGetMsrRunList()->at(i).GetFitType() == type) + if ((fMsrInfo->GetMsrRunList()->at(i).GetFitType() == type) || + (fMsrInfo->GetMsrRunList()->at(i).GetFitType() == -1)) // the -1 is needed if there is a global section subIdx++; }