DAS  3.0
Das Analysis System
getJMEtables.cc File Reference
#include <cstdlib>
#include <filesystem>
#include <iomanip>
#include <iostream>
#include <string>
#include <TH3.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[] 
)
Todo:
JES and JER campaigns are often different, but it would be nice to 1/ extract the config from the metainfo of a n-tuple 2/ use this config as argument to the present executable to get a plot of the tables
185 {
186  try {
188 
189  fs::path input, output;
190 
191  auto options = DAS::Options("Obtain JES corrections JetMET tables in ROOT histograms");
192  options.input ("input" , &input , "JSON file containing the corrections")
193  .output("output", &output, "output ROOT file")
194  .arg<string>("campaign", "corrections.JME.campaign",
195  "campaign (e.g. Summer19UL18_V5)")
196  .arg<string>("level", "corrections.JME.level", "level (e.g. L2Relative)")
200  .arg<bool>("isMC", "flags.isMC", "boolean flag")
201  .arg<int>("R", "flags.R", "R (x10) parameter in jet clustering algorithm")
202  .arg<int>("year", "flags.year", "year (4 digits)")
203  .args ("labels", "flags.labels", "e.g. CHS or PUPPI");
204 
205  const auto& config = options(argc, argv);
206  const int steering = options.steering();
207 
208  DAS::JetEnergy::getJMEtable(input, output, config, steering);
209  }
210  catch (boost::exception& e) {
211  DE::Diagnostic(e);
212  return EXIT_FAILURE;
213  }
214 
215  return EXIT_SUCCESS;
216 }
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
Ntupliser_cfg.args
args
Definition: Ntupliser_cfg.py:11
Darwin::Tools::StandardInit
void StandardInit()
Definition: FileUtils.cc:70
Ntupliser_cfg.config
config
Definition: Ntupliser_cfg.py:317
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:33
DAS::Options
Darwin::Tools::Options Options(const char *, int=Darwin::Tools::none)
Constructs Darwin options with the correct commit information.
Definition: DASOptions.cc:14