File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,29 @@ inline RootObjNode NodeFromKey(TKey &key)
5050 return node;
5151}
5252
53+ // / A representation of all objects involved in a rootls-style ROOT file listing. This listing is used in command
54+ // / line tools like rootls, rootcp etc. and it comes from a shell glob-style syntax like:
55+ // /
56+ // / file.root:dir/*
57+ // /
58+ // / In this case, a RootObjTree that represents the above query will contain the TFile relative to `file.root`,
59+ // / all nodes "visited" by the glob expression in `fNodes` and links to them in `fDirList` and `fLeafList`. This is
60+ // / basically a filtered view of a ROOT file.
61+ // /
62+ // / Example: assume you have a ROOT file with the following structure:
63+ // /
64+ // / file.root
65+ // / `--- a/
66+ // / | `--- b
67+ // / | `--- c
68+ // / `--- d
69+ // /
70+ // / Then the RootObjTree representing the query `file.root:*` will contain:
71+ // /
72+ // / fNodes: [a, b, c, d]
73+ // / fLeafList: [1, 2, 3]
74+ // / fDirList: [0]
75+ // /
5376struct RootObjTree {
5477 // 0th node is the root node
5578 std::vector<RootObjNode> fNodes ;
You can’t perform that action at this time.
0 commit comments