From 086050f4e364e9350646e1bbc041fd79a901db6c Mon Sep 17 00:00:00 2001 From: Andreas Suter Date: Mon, 23 Sep 2019 16:22:16 +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 e2afa21e..522e7792 100644 --- a/src/classes/PRunListCollection.cpp +++ b/src/classes/PRunListCollection.cpp @@ -765,7 +765,8 @@ UInt_t PRunListCollection::GetNoOfBinsFitted(const UInt_t idx) const // count how many entries of this fit-type are present up to idx UInt_t subIdx = 0; for (UInt_t i=0; iGetMsrRunList()->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++; }