fix for the case that a global section is present.
This commit is contained in:
parent
afef9600b4
commit
086050f4e3
@ -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++;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user