We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 898f869 commit aba6985Copy full SHA for aba6985
Fitters/PredictiveThrower.cpp
@@ -497,6 +497,11 @@ std::vector<std::vector<std::unique_ptr<TH2D>>> PredictiveThrower::ProduceSpectr
497
throw MaCh3Exception(__FILE__, __LINE__);
498
}
499
500
+ if (!refHist) {
501
+ MACH3LOG_ERROR("Failed to cast to {} dimensions in {}!", nDims, __func__);
502
+ throw MaCh3Exception(__FILE__, __LINE__);
503
+ }
504
+
505
const int n_bins_x = refHist->GetNbinsX();
506
std::vector<double> x_bin_edges(n_bins_x + 1);
507
for (int b = 0; b <= n_bins_x; ++b) {
0 commit comments