DAS  3.0
Das Analysis System
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, const int steering)
 
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  const int steering = options.steering();
117 
118  DT::printBranches(inputs, steering);
119  return EXIT_SUCCESS;
120  }
121  catch (boost::exception& e) {
122  DE::Diagnostic(e);
123  return EXIT_FAILURE;
124  }
125 }
DYToLL_M-50_13TeV_pythia8_cff_GEN_SIM_RECOBEFMIX_DIGI_L1_DIGI2RAW_L1Reco_RECO.options
options
Definition: DYToLL_M-50_13TeV_pythia8_cff_GEN_SIM_RECOBEFMIX_DIGI_L1_DIGI2RAW_L1Reco_RECO.py:41
Darwin::Exceptions::Diagnostic
void Diagnostic(const boost::exception &e)
Definition: exceptions.h:131
Darwin::Tools::StandardInit
void StandardInit()
Definition: FileUtils.cc:29
Darwin::Tools::Options
Common class to interpret the command line, based on Boost Program Options.
Definition: Options.h:58
Darwin::Tools::printBranches
void printBranches(vector< fs::path > inputs, const int steering)
Adapted from ROOT example
Definition: printBranches.cc:87
jercExample.inputs
def inputs
Definition: jercExample.py:118