#include <algorithm>#include <cstdint>#include <cstring>#include <deque>#include <iomanip>#include <iostream>#include <string>#include <vector>#include "logging.hxx"#include "optparse.hxx"#include "RootObjTree.hxx"#include "RootObjTree.cxx"#include <TBranch.h>#include <TError.h>#include <TFile.h>#include <TKey.h>#include <TTree.h>#include <ROOT/StringUtils.hxx>#include <ROOT/RError.hxx>#include <ROOT/RNTuple.hxx>#include <ROOT/RNTupleReader.hxx>Classes | |
| struct | RootLsArgs |
| struct | V2i |
Typedefs | |
| using | Indent = int |
Functions | |
| static bool | ClassInheritsFrom (const char *class_, const char *baseClass) |
| static const char * | Color (const char *col) |
| static V2i | GetTerminalSize () |
| int | main (int argc, char **argv) |
| static RootLsArgs | ParseArgs (const char **args, int nArgs) |
| static void | PrintChildrenDetailed (std::ostream &stream, const RootObjTree &tree, NodeIdx_t nodeIdx, std::uint32_t flags, Indent indent, std::size_t minNameLen=0, std::size_t minClassLen=0) |
| static void | PrintChildrenInColumns (std::ostream &stream, const RootObjTree &tree, NodeIdx_t nodeIdx, std::uint32_t flags, Indent indent) |
| static void | PrintClusters (std::ostream &stream, TTree &tree, Indent indent) |
| static void | PrintDatime (std::ostream &stream, const TDatime &datime) |
| static void | PrintIndent (std::ostream &stream, Indent indent) |
| static void | PrintNodesDetailed (std::ostream &stream, const RootObjTree &tree, std::vector< NodeIdx_t >::const_iterator nodesBegin, std::vector< NodeIdx_t >::const_iterator nodesEnd, std::uint32_t flags, Indent indent, std::size_t minNameLen=0, std::size_t minClassLen=0) |
| Prints a ls -l-like output: | |
| static void | PrintNodesInColumns (std::ostream &stream, const RootObjTree &tree, std::vector< NodeIdx_t >::const_iterator nodesBegin, std::vector< NodeIdx_t >::const_iterator nodesEnd, std::uint32_t flags, Indent indent) |
| static void | PrintRNTuple (std::ostream &stream, const ROOT::RNTupleDescriptor &desc, Indent indent, const ROOT::RFieldDescriptor &rootField, std::size_t minNameLen=0, std::size_t minTypeLen=0) |
| template<typename T> | |
| static void | PrintTTree (std::ostream &stream, T &tree, Indent indent) |
| static void | RootLs (const RootLsArgs &args, std::ostream &stream=std::cout) |
Variables | |
| static const char *const | kAnsiBlue = "\x1B[34m" |
| static const char *const | kAnsiBold = "\x1B[1m" |
| static const char *const | kAnsiGreen = "\x1B[32m" |
| static const char *const | kAnsiNone = "\x1B[0m" |
| static const char *const | kLongHelp |
Definition at line 171 of file rootls.cxx.
Definition at line 114 of file rootls.cxx.
Definition at line 58 of file rootls.cxx.
|
static |
Definition at line 147 of file rootls.cxx.
Definition at line 611 of file rootls.cxx.
|
static |
Definition at line 571 of file rootls.cxx.
|
static |
| nodeIdx | The index of the node whose children should be printed |
Definition at line 361 of file rootls.cxx.
|
static |
Definition at line 527 of file rootls.cxx.
Definition at line 219 of file rootls.cxx.
Definition at line 180 of file rootls.cxx.
Definition at line 173 of file rootls.cxx.
|
static |
Prints a ls -l-like output:
$ rootls -l https://root.cern/files/tutorials/hsimple.root TProfile Jun 30 23:59 2018 hprof;1 "Profile of pz versus px" TH1F Jun 30 23:59 2018 hpx;1 "This is the px distribution" TH2F Jun 30 23:59 2018 hpxpy;1 "py vs px" TNtuple Jun 30 23:59 2018 ntuple;1 "Demo ntuple"
| stream | The output stream to print to |
| tree | The node tree |
| nodesBegin | The first node to be printed |
| nodesEnd | The last node to be printed |
| flags | A bitmask of RootLsArgs::Flags that influence how stuff is printed |
| indent | Each line of the output will have these many leading whitespaces |
Definition at line 289 of file rootls.cxx.
|
static |
Definition at line 379 of file rootls.cxx.
|
static |
Definition at line 239 of file rootls.cxx.
Definition at line 195 of file rootls.cxx.
|
static |
Definition at line 540 of file rootls.cxx.
Definition at line 55 of file rootls.cxx.
Definition at line 56 of file rootls.cxx.
Definition at line 54 of file rootls.cxx.
Definition at line 53 of file rootls.cxx.
Definition at line 70 of file rootls.cxx.