DAS  3.0
Das Analysis System
example03.cc File Reference
#include <cstdlib>
#include <stdexcept>
#include <iostream>
#include <filesystem>
#include <string>
#include <optional>
#include <memory>
#include "darwin.h"
#include "Objects.h"
#include <boost/property_tree/ptree.hpp>
#include <TROOT.h>
#include <TFile.h>
#include <TTree.h>
#include <TH1.h>
+ Include dependency graph for example03.cc:
+ This graph shows which files directly or indirectly include this file:

Namespaces

 Darwin
 
 Darwin::Physics
 

Functions

void example03 (const vector< fs::path > &inputs, const fs::path &output, const pt::ptree &config, const int steering, const DT::Slice slice={1, 0})
 
int main (int argc, char *argv[])
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)
78 {
79  try {
81 
82  vector<fs::path> inputs;
83  fs::path output;
84 
85  DT::Options options("Toy example to project a n-tuple.", DT::split);
86  options.inputs("inputs", &inputs, "input ROOT file(s) or directory")
87  .output("output", &output, "output ROOT file");
88  const auto& config = options(argc, argv);
89  const auto& slice = options.slice();
90  const int steering = options.steering();
91 
92  DP::example03(inputs, output, config, steering, slice);
93  }
94  catch (boost::exception& e) {
95  DE::Diagnostic(e);
96  return EXIT_FAILURE;
97  }
98 
99  return EXIT_SUCCESS;
100 }
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::Physics::example03
void example03(const vector< fs::path > &inputs, const fs::path &output, const pt::ptree &config, const int steering, const DT::Slice slice={1, 0})
Toy example to project a n-tuple.
Definition: example03.cc:32
Darwin::Tools::StandardInit
void StandardInit()
Definition: FileUtils.cc:25
Darwin::Tools::split
@ split
activate -k and -j to define slice
Definition: Options.h:27
Ntupliser_cfg.config
config
Definition: Ntupliser_cfg.py:263
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