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

Namespaces

 Darwin
 
 Darwin::Physics
 

Functions

template<bool DARWIN_TEST_EXCEPTIONS = false>
void example02 (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[] 
)
75 {
76  try {
78 
79  vector<fs::path> inputs;
80  fs::path output;
81 
82  DT::Options options("Toy example to modify a n-tuple (filter application).",
84  options.inputs("inputs", &inputs, "input ROOT file(s) or directory")
85  .output("output", &output, "output ROOT file")
86  .arg<fs::path>("filters", "corrections.filters",
87  "location of list of filters to apply");
88  const auto& config = options(argc, argv);
89  const auto& slice = options.slice();
90  const int steering = options.steering();
91 
92  DP::example02(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 }
Darwin::Physics::example02
void example02(const vector< fs::path > &inputs, const fs::path &output, const pt::ptree &config, const int steering, const DT::Slice slice={1, 0})
Definition: example02.cc:29
Darwin::Tools::fill
@ fill
activate -f to fill the tree
Definition: Options.h:27
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::Friend
@ Friend
activate -F to only fill the new branches
Definition: Options.h:28
Darwin::Tools::split
@ split
activate -k and -j to define slice
Definition: Options.h:26
Darwin::Tools::StandardInit
void StandardInit()
Definition: FileUtils.cc:29
Ntupliser_cfg.config
config
Definition: Ntupliser_cfg.py:264
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