DAS  3.0
Das Analysis System
printEntries.cc File Reference
#include <cstdlib>
#include <iostream>
#include <filesystem>
#include <memory>
#include "darwin.h"
#include <TFile.h>
#include <TChain.h>
+ Include dependency graph for printEntries.cc:
+ This graph shows which files directly or indirectly include this file:

Namespaces

 Darwin
 
 Darwin::Tools
 

Functions

void printEntries (vector< fs::path > inputs, const int steering)
 
int main (int argc, char *argv[])
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)
41 {
42  try {
44 
45  vector<fs::path> inputs;
46 
47  DT::Options options("Print total number of entries of the first `TTree`s "
48  "found in any directory of the input ROOT files.");
49  options.inputs("inputs", &inputs, "input ROOT file(s) or directory");
50  options(argc, argv);
51  const int steering = options.steering();
52 
53  DT::printEntries(inputs, steering);
54  }
55  catch (boost::exception& e) {
56  DE::Diagnostic(e);
57  return EXIT_FAILURE;
58  }
59 
60  return EXIT_SUCCESS;
61 }
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::printEntries
void printEntries(vector< fs::path > inputs, const int steering)
Definition: printEntries.cc:22
Darwin::Tools::Options
Common class to interpret the command line, based on Boost Program Options.
Definition: Options.h:58
jercExample.inputs
def inputs
Definition: jercExample.py:118