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

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:116
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:25
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