We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
According to the documentation of RDataFrame's Fill method, the following should be supported:
#include <ROOT/RDataFrame.hxx> #include <TApplication.h> #include <TH2D.h> struct Jet { double a, b; }; struct Boo { TH2D h{"", "", 10, 0, 10, 10, 0, 10}; void Fill(const Jet &j) { h.Fill(j.a, j.b); } void Merge(const std::vector<Boo *> &others) { TList l; for (auto *o : others) { l.Add(&o->h); h.Merge(&l); } } void Draw() { h.Draw(); } }; int main() { TApplication app("app", nullptr, nullptr); auto res = ROOT::RDataFrame(10) .Define("Jet", [] { return Jet{1., 2.}; }) .Fill<Jet>(Boo{}, {"Jet"}); res->Draw(); app.Run(); }
Instead, FillParHelper only supports Boo::Fill signatures that take combinations of doubles and collections thereof.
FillParHelper
Boo::Fill
#7499 goes in the right direction in generalizing FillParHelper::Exec but it still needs a fix to allow this general case.
FillParHelper::Exec
The text was updated successfully, but these errors were encountered:
[DF] Add test for Fill with object with arbitrary signature
493626f
This is the last piece missing to fix root-project#9428.
835e534
adea11c
This is the last piece missing to fix #9428.
8937c76
eguiraud
Successfully merging a pull request may close this issue.
According to the documentation of RDataFrame's Fill method, the following should be supported:
Instead,
FillParHelper
only supportsBoo::Fill
signatures that take combinations of doubles and collections thereof.#7499 goes in the right direction in generalizing
FillParHelper::Exec
but it still needs a fix to allow this general case.The text was updated successfully, but these errors were encountered: