DAS  3.0
Das Analysis System
printFriends.cc File Reference
#include <cstdlib>
#include <iostream>
#include <filesystem>
#include <memory>
#include <set>
#include <string>
#include "darwin.h"
#include <TFile.h>
#include <TChain.h>
#include <TChainElement.h>
#include <TFriendElement.h>
+ Include dependency graph for printFriends.cc:

Namespaces

 Darwin
 
 Darwin::Tools
 

Functions

void CollectFriends (const TTree *tree, set< string > &printed, const int steering, string indent="")
 
void CollectChainFriends (const TChain *chain, set< string > &printed, const int steering, string indent="")
 
void printFriends (vector< fs::path > inputs, const int steering)
 
int main (int argc, char *argv[])
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)
133 {
134  try {
136 
137  vector<fs::path> inputs;
138 
139  DT::Options options("Print the list of friends of the first `TTree`s "
140  "found in any directory of the input ROOT files.");
141  options.inputs("inputs", &inputs, "input ROOT file(s) or directory");
142  options(argc, argv);
143  const int steering = options.steering();
144 
145  DT::printFriends(inputs, steering);
146  }
147  catch (boost::exception& e) {
148  DE::Diagnostic(e);
149  return EXIT_FAILURE;
150  }
151 
152  return EXIT_SUCCESS;
153 }
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::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:115
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:58
jercExample.inputs
def inputs
Definition: jercExample.py:118