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