-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
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
[RF] RDataFrame to RooDataSet/RooDataHist conversion #7223
Comments
I think you want a dedicated custom action that users can Book. In general you can also just |
Book is good-ish, it would fill the dataset one-by-one, but RF can do better. I think Eventually, this could look like: auto rooDataSet = rdf.RooDataSet("datasetname", {"x", "y", "z"});
pdf.fitTo(*rooDataSet); Internally, this would do something like: RooRealVar x(...);
RooRealVar y(...);
RooRealVar z(...);
auto xData = rdf.Take("x");
auto yData = rdf.Take("y");
auto zData = rdf.Take("z");
return RooDataSet(datasetname, RooArgSet(x, y, z), {std::move(*xData), std::move(*yData), std::move(*zData)}); // This constructor doesn't exist There is lots of details missing, but that's what it could do eventually. Maybe the Possible? |
Uhm, Then it's a small step to go from |
Ok, for single value filling, this may be achievable in a few days, nice. |
To facilitate the creation of RooFit datasets from RDataFrame, an ActionHelper is added to RooFit. It lives in its own micro library, since it depends on RDataFrame, which RooFit does not. Fix root-project#7223.
To facilitate the creation of RooFit datasets from RDataFrame, an ActionHelper is added to RooFit. It lives in its own micro library, since it depends on RDataFrame, which RooFit does not. Fix root-project#7223. Co-authored by Enrico Guiraud.
To facilitate the creation of RooFit datasets from RDataFrame, an ActionHelper is added to RooFit. It lives in its own micro library, since it depends on RDataFrame, which RooFit does not. Fix root-project#7223. Co-authored by Enrico Guiraud.
Reopening, because weights should be tested (and supported). What's needed:
|
To facilitate the creation of RooFit datasets from RDataFrame, an ActionHelper is added to RooFit. It lives in its own micro library, since it depends on RDataFrame, which RooFit does not. Fix root-project#7223. Co-authored by Enrico Guiraud.
Support weighted filling from RDF to RooFit in RooAbsDataHelper and also implement a test for it. Closes root-project#7223.
Support weighted filling from RDF to RooFit in RooAbsDataHelper and also implement a test for it. Closes root-project#7223.
Support weighted filling from RDF to RooFit in RooAbsDataHelper and also implement a test for it. Closes root-project#7223.
Support weighted filling from RDF to RooFit in RooAbsDataHelper and also implement a test for it. Closes #7223.
Support weighted filling from RDF to RooFit in RooAbsDataHelper and also implement a test for it. Closes #7223.
Support weighted filling from RDF to RooFit in RooAbsDataHelper and also implement a test for it. Closes root-project#7223.
Is your feature request related to a problem? Please describe.
You could call it a "problem", yes.
What we want basically is to drop out an RooDataSet directly from RDataFrame. There's two ways to do it:
Easy way:
This is going to be slow, and not so elegant.
Requires more development, but better:
std::vector
internally, it could evenstd::swap
with an external vector!The text was updated successfully, but these errors were encountered: