Skip to content

Commit

Permalink
Bugfix in GetEventSplines to convert Mode to the duplicate-stripped mode
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarrow257 committed Feb 26, 2025
1 parent 1c9c88d commit a5aa0c4
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions splines/splineFDBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -769,8 +769,19 @@ std::vector< std::vector<int> > splineFDBase::GetEventSplines(std::string Sample
}

int nSplineSysts = static_cast<int>(indexvec[SampleIndex][iOscChan].size());
//ETA- this is already a MaCh3 mode
int Mode = EventMode;


int Mode = -1;
std::string SuffixForEventMode = Modes->GetSplineSuffixFromMaCh3Mode(EventMode);
for (int iMode=0;iMode<Modes->GetNModes();iMode++) {
if (SuffixForEventMode == Modes->GetSplineSuffixFromMaCh3Mode(iMode)) {
Mode = iMode;
break;
}
}
if (Mode == -1) {
return ReturnVec;
}

int Var1Bin = SplineBinning[SampleIndex][iOscChan][0]->FindBin(Var1Val)-1;
if (Var1Bin < 0 || Var1Bin >= SplineBinning[SampleIndex][iOscChan][0]->GetNbins()) {
Expand Down

0 comments on commit a5aa0c4

Please sign in to comment.