diff --git a/src/classes/PRunListCollection.cpp b/src/classes/PRunListCollection.cpp index 98e11c6a8..103912ae8 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++; }