Darwin  1.0
Event loop based prototype framework
printBranches.cc File Reference
#include <cstdlib>
#include <stdexcept>
#include <iostream>
#include <iomanip>
#include <filesystem>
#include <memory>
#include <array>
#include "darwin.h"
#include <TFile.h>
#include <TKey.h>
#include <TMemFile.h>
#include <TTree.h>
#include <TString.h>
+ Include dependency graph for printBranches.cc:
+ This graph shows which files directly or indirectly include this file:

Namespaces

 Darwin
 
 Darwin::Tools
 

Functions

template<int thousand = 1024>
const char * GetHumanReadableSize (long double size)
 
Long64_t GetSize (TBranch *br)
 
Long64_t loopBranches (TObjArray *branches, size_t factor, int nIndent=0)
 
void printBranches (vector< fs::path > inputs)
 
int main (int argc, char *argv[])
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)
106 {
107  try {
109 
110  vector<fs::path> inputs;
111 
112  DT::Options options("Print a summary of the content of the first `TTree`s "
113  "found in any directory of the input ROOT files.");
114  options.inputs("inputs", &inputs, "input ROOT files or directory");
115  options(argc, argv);
116 
117  DT::printBranches(inputs);
118  return EXIT_SUCCESS;
119  }
120  catch (boost::exception& e) {
121  DE::Diagnostic(e);
122  return EXIT_FAILURE;
123  }
124 }
Darwin::Tools::StandardInit
void StandardInit()
Definition: FileUtils.cc:25
Darwin::Tools::Options
Common class to interpret the command line, based on Boost Program Options.
Definition: Options.h:56
Darwin::Exceptions::Diagnostic
void Diagnostic(const boost::exception &e)
Definition: exceptions.h:116
Darwin::Tools::printBranches
void printBranches(vector< fs::path > inputs)
Adapted from ROOT example
Definition: printBranches.cc:88