DAS  3.0
Das Analysis System
applyPlugins.cc File Reference
#include <cstdlib>
#include <filesystem>
#include <iostream>
#include <ranges>
#include <set>
#include <vector>
#include <GenericPlugin.h>
#include <darwin.h>
+ Include dependency graph for applyPlugins.cc:
+ This graph shows which files directly or indirectly include this file:

Namespaces

 Darwin
 
 Darwin::Tools
 

Functions

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

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)
82  {
84 
85  vector<fs::path> inputs;
86  fs::path output;
87 
88  DT::Options options("Apply any series of plugins",
90  options.inputs("inputs", &inputs, "input ROOT file(s) or directory")
91  .output("output", &output, "output ROOT file")
92  .args("plugins", "corrections.plugins", "list of plugins to run on the fly");
93  const auto& config = options(argc, argv);
94  const auto& slice = options.slice();
95  const int steering = options.steering();
96 
97  DT::applyPlugins(inputs, output, config, steering, slice);
98 
99  return EXIT_SUCCESS;
100 }
101 catch (boost::exception& e) {
102  DE::Diagnostic(e);
103  return EXIT_FAILURE;
104 }
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:143
Darwin::Tools::Friend
@ Friend
activate -F to only fill the new branches
Definition: Options.h:33
Darwin::Tools::split
@ split
activate -k and -j to define slice
Definition: Options.h:31
Darwin::Tools::syst
@ syst
activate -s to systematic uncertainties
Definition: Options.h:34
Darwin::Tools::StandardInit
void StandardInit()
Definition: FileUtils.cc:76
Ntupliser_cfg.config
config
Definition: Ntupliser_cfg.py:330
Darwin::Tools::Options
Common class to interpret the command line, based on Boost Program Options.
Definition: Options.h:63
jercExample.inputs
def inputs
Definition: jercExample.py:118
Darwin::Tools::applyPlugins
void applyPlugins(const vector< fs::path > &inputs, const fs::path &output, const pt::ptree &config, const int steering, const Slice slice={1, 0})
Generic function to run generic plugins.
Definition: applyPlugins.cc:34