Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CIValidations/SplineValidations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ void SplineMonolithValidations(std::ostream& outFile) {
const auto* weightPtr = Splines->RetPointer(i);
outFile << "Event " << i << " weight = " << *weightPtr << std::endl;
}
outFile << " UnbinnedSpline: nParams = " << Splines->GetNParams() << std::endl;

////// Testing Pre Computed Spline
MACH3LOG_INFO("Testing Spline Monolith with Flattened ROOT inputs");
Expand All @@ -64,6 +65,8 @@ void SplineMonolithValidations(std::ostream& outFile) {
const auto* weightPtr = SplinesFlat->RetPointer(i);
outFile << "(Flat) Event " << i << " weight = " << *weightPtr << std::endl;
}
outFile << "Flat UnbinnedSpline: nParams = " << SplinesFlat->GetNParams() << std::endl;

}

void SplineBinnedValidations(std::ostream& outFile){
Expand Down Expand Up @@ -105,6 +108,7 @@ void SplineBinnedValidations(std::ostream& outFile){
for(size_t iSpline = 0; iSpline < xsec_spline_pointers.size(); iSpline++) {
outFile << "Binned Spline " << iSpline << " weight = " << *(xsec_spline_pointers[iSpline]) << std::endl;
}
outFile << "Binned Spline nParams = " << SplineHandler->GetNParams() << std::endl;
}

int main(int argc, char *argv[])
Expand Down
3 changes: 3 additions & 0 deletions CIValidations/TestOutputs/SplineMonoOut.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9998,6 +9998,7 @@ Event 9996 weight = 1
Event 9997 weight = 0.72377
Event 9998 weight = 1
Event 9999 weight = 1.0042
UnbinnedSpline: nParams = 4
(Flat) Event 0 weight = 1
(Flat) Event 1 weight = 1
(Flat) Event 2 weight = 1
Expand Down Expand Up @@ -19998,8 +19999,10 @@ Event 9999 weight = 1.0042
(Flat) Event 9997 weight = 0.72377
(Flat) Event 9998 weight = 1
(Flat) Event 9999 weight = 1.0042
Flat UnbinnedSpline: nParams = 4
Binned Spline 0 weight = 0.5
Binned Spline 1 weight = 0.5
Binned Spline 2 weight = 0.5
Binned Spline 3 weight = 0.5
Binned Spline 4 weight = 0.638472
Binned Spline nParams = 4
Loading