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