fix for the case that a global section is present.

This commit is contained in:
suter_a 2019-09-23 16:22:16 +02:00
parent afef9600b4
commit 086050f4e3

View File

@ -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; i<idx; i++) {
if (fMsrInfo->GetMsrRunList()->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++;
}