Skip to content

Commit 34aa4ba

Browse files
committed
[main] add doc comment to RootObjTree
1 parent 2a5a135 commit 34aa4ba

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

main/src/RootObjTree.hxx

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
///
5376
struct RootObjTree {
5477
// 0th node is the root node
5578
std::vector<RootObjNode> fNodes;

0 commit comments

Comments
 (0)