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

Namespaces

 Darwin
 
 Darwin::Physics
 

Functions

void example04 (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[] 
)
97 {
98  try {
100 
101  vector<fs::path> inputs;
102  fs::path output;
103 
104  DT::Options options("Toy example to project a n-tuple.", DT::split);
105  options.inputs("inputs", &inputs, "input ROOT file(s) or directory")
106  .output("output", &output, "output ROOT file");
107  const auto& config = options(argc, argv);
108  const auto& slice = options.slice();
109  const int steering = options.steering();
110 
111  DP::example04(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 }
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::Tools::split
@ split
activate -k and -j to define slice
Definition: Options.h:26
Darwin::Physics::example04
void example04(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: example04.cc:32
Darwin::Tools::StandardInit
void StandardInit()
Definition: FileUtils.cc:25
Ntupliser_cfg.config
config
Definition: Ntupliser_cfg.py:260
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