Skip to content
Snippets Groups Projects
Commit 526878ca authored by Patrick Louis S Connor's avatar Patrick Louis S Connor
Browse files

getUnfHist throws a proper exception when missing observables

parent 19e9efd3
No related branches found
No related tags found
1 merge request!214two minor fixes in `unfold`
...@@ -58,6 +58,9 @@ void getUnfHist ...@@ -58,6 +58,9 @@ void getUnfHist
vector<unique_ptr<Filler>> fillers; vector<unique_ptr<Filler>> fillers;
for (const auto obs: observables) for (const auto obs: observables)
fillers.push_back(obs->getFiller(flow)); fillers.push_back(obs->getFiller(flow));
if (observables.empty())
BOOST_THROW_EXCEPTION( invalid_argument("You should provide at least one observable "
"(e.g. `InclusiveJet::PtY`)") );
cout << "Setting variations" << endl; cout << "Setting variations" << endl;
DistVariation::isMC = isMC; DistVariation::isMC = isMC;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment