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)
 
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 
118  return EXIT_SUCCESS;
119  }
120  catch (boost::exception& e) {
121  DE::Diagnostic(e);
122  return EXIT_FAILURE;
123  }
124 }
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:116
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
jercExample.inputs
def inputs
Definition: jercExample.py:118
Darwin::Tools::printBranches
void printBranches(vector< fs::path > inputs)
Adapted from ROOT example
Definition: printBranches.cc:88