DAS  3.0
Das Analysis System
example02.cc File Reference
#include <cstdlib>
#include <bitset>
#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 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[] 
)
94 {
95  try {
97 
98  vector<fs::path> inputs;
99  fs::path output;
100 
101  DT::Options options("Toy example to modify a n-tuple.",
103  options.inputs("inputs", &inputs, "input ROOT file(s) or directory")
104  .output("output", &output, "output ROOT file")
105  .arg<fs::path>("hotzones" , "corrections.hotzones" , "location of hot zones in the calorimeter")
106  .arg<fs::path>("METfilters", "corrections.METfilters", "location of list of MET filters to apply");
107  const auto& config = options(argc, argv);
108  const auto& slice = options.slice();
109  const int steering = options.steering();
110 
111  DP::example02(inputs, output, config, steering, slice);
112  }
113  catch (boost::exception& e) {
114  DE::Diagnostic(e);
115  return EXIT_FAILURE;
116  }
117 
118  return EXIT_SUCCESS;
119 }
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:30
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::syst
@ syst
activate -s to systematic uncertainties
Definition: Options.h:30
Darwin::Exceptions::Diagnostic
void Diagnostic(const boost::exception &e)
Definition: exceptions.h:116
Darwin::Tools::fill
@ fill
activate -f to fill the tree
Definition: Options.h:28
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
Darwin::Tools::Friend
@ Friend
activate -F to only fill the new branches
Definition: Options.h:29