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

Namespaces

 Darwin
 
 Darwin::Tools
 

Functions

int getMetaInfo (vector< fs::path > inputs, const fs::path &output)
 
int main (int argc, char *argv[])
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)
80 {
81  try {
83 
84  vector<fs::path> inputs;
85  fs::path output;
86 
87  DT::Options options("Print content of the first `TTree::UserInfo()` found "
88  "in any directory of the first input ROOT file and "
89  "compares it with the content of all other ROOT files "
90  "(returns failure if differences are found).");
91  options.inputs("inputs", &inputs, "input ROOT files or directory")
92  .output("output", &output, "output file (INFO, JSON, or XML)");
93  options(argc, argv);
94 
95  return DT::getMetaInfo(inputs, output);
96  }
97  catch (boost::exception& e) {
98  DE::Diagnostic(e);
99  return EXIT_FAILURE;
100  }
101 }
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::getMetaInfo
int getMetaInfo(vector< fs::path > inputs, const fs::path &output)
Print content of the first TTree::UserInfo() found in the root file.
Definition: getMetaInfo.cc:25