Darwin  1.0
Event loop based prototype framework
printFriends.cc File Reference
#include <cstdlib>
#include <iostream>
#include <filesystem>
#include <memory>
#include <string>
#include "darwin.h"
#include <TFile.h>
#include <TChain.h>
#include <TFriendElement.h>
+ Include dependency graph for printFriends.cc:

Namespaces

 Darwin
 
 Darwin::Tools
 

Functions

void PrintCloseFriend (TList *friends, const int steering, string offset="")
 
void printFriends (vector< fs::path > inputs, const int steering)
 
int main (int argc, char *argv[])
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)
66 {
67  try {
69 
70  vector<fs::path> inputs;
71 
72  DT::Options options("Print the list of friends of the first `TTree`s "
73  "found in any directory of the input ROOT files.");
74  options.inputs("inputs", &inputs, "input ROOT file(s) or directory");
75  options(argc, argv);
76  const int steering = options.steering();
77 
78  DT::printFriends(inputs, steering);
79  }
80  catch (boost::exception& e) {
81  DE::Diagnostic(e);
82  return EXIT_FAILURE;
83  }
84 
85  return EXIT_SUCCESS;
86 }
Darwin::Tools::printFriends
void printFriends(vector< fs::path > inputs, const int steering)
Prints the recursive list of friends to the input n-tuple.
Definition: printFriends.cc:48
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
Darwin::Exceptions::Diagnostic
void Diagnostic(const boost::exception &e)
Definition: exceptions.h:116