Simple way to retrieve double* from RDataFrame

Please, could you tell me which is the simplest way to do the following using an RDataFrame?

int nevt = tree->Draw("Xt:Yt","","goff");
double *Xt = tree->GetV1();
double *Yt = tree->GetV2();

Thank you!

Hi @Javier_Galan,

for the simplest way maybe @eguiraud could help you?



I can take a closer look on Monday, but it sounds like you are looking for df.Take<double>("Xt")? See the method docs.


Yes, that’s what I am looking for! Thanks.

Thanks to the examples in the documentation I can see how the method works.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.