DAS  3.0
Das Analysis System
getMETfraction.cc File Reference
#include <cassert>
#include <cstdlib>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <limits>
#include <vector>
#include "Core/Objects/interface/Event.h"
#include "Core/Objects/interface/Jet.h"
#include "Core/CommonTools/interface/binnings.h"
#include "Core/CommonTools/interface/DASOptions.h"
#include "Core/CommonTools/interface/toolbox.h"
#include <TFile.h>
#include <TH2D.h>
#include <TString.h>
#include "Math/VectorUtil.h"
#include <darwin.h>
#include <boost/property_tree/info_parser.hpp>
+ Include dependency graph for getMETfraction.cc:

Namespaces

 DAS
 

Functions

vector< double > GetTriggerTurnons (const fs::path &f)
 
void getMETfraction (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[])
 

Variables

static const auto feps = numeric_limits<float>::epsilon()
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)
127 {
128  try {
130 
131  vector<fs::path> inputs;
132  fs::path output;
133 
134  auto options = DAS::Options("Obtain MET fraction per trigger.", DT::split | DT::config);
135 
136  options.inputs("inputs", &inputs, "input ROOT file(s) or directory")
137  .output("output", &output, "output ROOT file" )
138  .arg<fs::path>("turnons", "corrections.normalisation.turnons",
139  "2-column file with turn-on per trigger");
140 
141  const auto& config = options(argc, argv);
142  const auto& slice = options.slice();
143  const int steering = options.steering();
144 
145  DAS::getMETfraction(inputs, output, config, steering, slice);
146  }
147  catch (boost::exception& e) {
148  DE::Diagnostic(e);
149  return EXIT_FAILURE;
150  }
151 
152  return EXIT_SUCCESS;
153 }

Variable Documentation

◆ feps

const auto feps = numeric_limits<float>::epsilon()
static
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::split
@ split
activate -k and -j to define slice
Definition: Options.h:26
DAS::getMETfraction
void getMETfraction(const vector< fs::path > &inputs, const fs::path &output, const pt::ptree &config, const int steering, const DT::Slice slice={1, 0})
Get MET fraction for each jet trigger separately.
Definition: getMETfraction.cc:60
Darwin::Tools::StandardInit
void StandardInit()
Definition: FileUtils.cc:29
Ntupliser_cfg.config
config
Definition: Ntupliser_cfg.py:260
jercExample.inputs
def inputs
Definition: jercExample.py:118
DAS::Options
Darwin::Tools::Options Options(const char *, int=Darwin::Tools::none)
Constructs Darwin options with the correct commit information.
Definition: DASOptions.cc:14