File tree 2 files changed +14
-3
lines changed
2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ set(CMAKE_VERBOSE_MAKEFILE ON)
3
3
# CMake version check
4
4
cmake_minimum_required (VERSION 3.14 FATAL_ERROR)
5
5
6
- project (MaCh3 VERSION 1.4.5 LANGUAGES CXX)
6
+ project (MaCh3 VERSION 1.4.7 LANGUAGES CXX)
7
7
set (MaCh3_VERSION ${PROJECT_VERSION} )
8
8
9
9
option (MaCh3_PYTHON_ENABLED "Whether to build MaCh3 python bindings" OFF )
Original file line number Diff line number Diff line change @@ -769,8 +769,19 @@ std::vector< std::vector<int> > splineFDBase::GetEventSplines(std::string Sample
769
769
}
770
770
771
771
int nSplineSysts = static_cast <int >(indexvec[SampleIndex][iOscChan].size ());
772
- // ETA- this is already a MaCh3 mode
773
- int Mode = EventMode;
772
+
773
+
774
+ int Mode = -1 ;
775
+ std::string SuffixForEventMode = Modes->GetSplineSuffixFromMaCh3Mode (EventMode);
776
+ for (int iMode=0 ;iMode<Modes->GetNModes ();iMode++) {
777
+ if (SuffixForEventMode == Modes->GetSplineSuffixFromMaCh3Mode (iMode)) {
778
+ Mode = iMode;
779
+ break ;
780
+ }
781
+ }
782
+ if (Mode == -1 ) {
783
+ return ReturnVec;
784
+ }
774
785
775
786
int Var1Bin = SplineBinning[SampleIndex][iOscChan][0 ]->FindBin (Var1Val)-1 ;
776
787
if (Var1Bin < 0 || Var1Bin >= SplineBinning[SampleIndex][iOscChan][0 ]->GetNbins ()) {
You can’t perform that action at this time.
0 commit comments