Skip to content

Commit

Permalink
explicitly handle 0 column case to avoid instantiation errors when us…
Browse files Browse the repository at this point in the history
…ed with jitted version of Book
  • Loading branch information
bendavid committed Mar 21, 2023
1 parent 4e29a95 commit fce62a9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions roofit/RDataFrameHelpers/inc/RooAbsDataHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,16 @@ class RooAbsDataHelper : public ROOT::Detail::RDF::RActionImpl<RooAbsDataHelper<
///
/// \param slot When IMT is used, this is a number in the range [0, nSlots) to fill lock free.
/// \param values x, y, z, ... coordinates of the event.

// 0 column version
void Exec(unsigned int)
{
if (_eventSize) {
throw std::invalid_argument(std::string("RooDataSet can hold ") + std::to_string(_eventSize) +
" variables per event, but RDataFrame passed 0 columns.");
}
}

template <typename... ColumnTypes>
void Exec(unsigned int slot, ColumnTypes... values)
{
Expand Down

0 comments on commit fce62a9

Please sign in to comment.