Issue with ROOT.RDF.Experimental.FromSpec when TTree is inside a sub-directory

Dear all,
while trying to use a json file to specify a RDataFrame I have stumbled into an issue.
If the TTree to be read is inside a sub-directory any attempt to use RSampleInfo seems to fail with the following error

 logic_error: RSampleInfo: sample data was requested but no samples are available.

This hinders a bit the usage of this fine feature in RDataFrame.
I have made an example to reproduce the issue here [1] using e.g. [2]
Would it be possible to have workaround for the cases where a sub-directory has been used?


[1] /afs/
[2] tested on lxplus9 with /cvmfs/

Dear @Pedro_Silva ,

Thanks for reaching out to the forum! Indeed I can reproduce the problem and I have opened a PR with the fix at [df] Correctly update sample info when dataset is in TFile subdirectory by vepadulano · Pull Request #15907 · root-project/root · GitHub.


Dear Vincenzo,
many thanks for the fast reply and update! Very much appreciated,

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