I’m trying to use rdataframe to write a tree with my own structure data.
For my own structure type data (“ITrack” for example) which I want to write in the tree,
I used the conventional method something like
tree->Branch(“ITrack”, &ITrack, Leaflist of branch)
Then, it gives the result like the 2nd attached figure. Leaflist is written properly just at the “ITrack” line.
However, when I try to use RDataFrame by using
class ITrack
{
Float_t TP_X;
types…
ClassDef(ITrack, 1);
}
rdataframe.Define(“ITrack”, a function with ITrack type output, {“Other”,“branches”,“for”,“function”});
It gives the result like another attached figure, so I think something is wrong.
As a side note, the ‘new’ structure is usually ‘better’ for some criteria than the leaflist structure (it leads to smaller (better compressed) files and allows partial read of some of the data).
Thank you for your advice.
I checked the two output files one made by RDF (as 1st figure) and one made by conventional method (as 2nd figure) from the same input file.
Actually, the latter one shows a slightly smaller size than the first one. It is quite impressive because I just used such structures for a clear look.
Is there any description of that point?