DAS  3.0
Das Analysis System
getJMEtables.cc File Reference
#include <cstdlib>
#include <filesystem>
#include <iomanip>
#include <iostream>
#include <string>
#include <TH3D.h>
#include <TF1.h>
#include <TFile.h>
#include "Core/CommonTools/interface/binnings.h"
#include "Core/CommonTools/interface/DASOptions.h"
#include "Core/CommonTools/interface/toolbox.h"
#include "common.h"
#include <darwin.h>
#include <correction.h>
+ Include dependency graph for getJMEtables.cc:

Namespaces

 DAS
 
 DAS::JetEnergy
 

Functions

void getJMEtable (const fs::path input, const fs::path output, const pt::ptree &config, const int steering)
 
int main (int argc, char *argv[])
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)
123 {
124  try {
126 
127  fs::path input, output;
128 
129  auto options = DAS::Options("Obtain JES corrections JetMET tables in ROOT histograms");
130  options.input ("input" , &input , "JSON file containing the corrections")
131  .output("output", &output, "output ROOT file")
132  .arg<string>("tag", "corrections.JES.tag", "tag (e.g. Summer19UL18_V5_MC)")
133  .arg<string>("level", "corrections.JES.level", "level (e.g. L2Relative)")
134  .arg<int>("R", "flags.R", "R (x10) parameter in jet clustering algorithm")
135  .arg<int>("year", "flags.year", "year (4 digits)");
136 
137  const auto& config = options(argc, argv);
138  const int steering = options.steering();
139 
140  DAS::JetEnergy::getJMEtable(input, output, config, steering);
141  }
142  catch (boost::exception& e) {
143  DE::Diagnostic(e);
144  return EXIT_FAILURE;
145  }
146 
147  return EXIT_SUCCESS;
148 }
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::StandardInit
void StandardInit()
Definition: FileUtils.cc:25
Ntupliser_cfg.config
config
Definition: Ntupliser_cfg.py:260
DYToLL_M-50_13TeV_pythia8_cff_GEN_SIM_RECOBEFMIX_DIGI_L1_DIGI2RAW_L1Reco_RECO.input
input
Definition: DYToLL_M-50_13TeV_pythia8_cff_GEN_SIM_RECOBEFMIX_DIGI_L1_DIGI2RAW_L1Reco_RECO.py:35
DAS::JetEnergy::getJMEtable
void getJMEtable(const fs::path input, const fs::path output, const pt::ptree &config, const int steering)
Definition: getJMEtables.cc:34
DAS::Options
Darwin::Tools::Options Options(const char *, int=Darwin::Tools::none)
Constructs Darwin options with the correct commit information.
Definition: DASOptions.cc:14