DAS  3.0
Das Analysis System
getJetResponse.cc File Reference
#include <cstdlib>
#include <cassert>
#include <iostream>
#include <fstream>
#include <vector>
#include <map>
#include <algorithm>
#include <functional>
#include "Core/Objects/interface/Jet.h"
#include "Core/Objects/interface/Event.h"
#include "Core/CommonTools/interface/binnings.h"
#include "Core/CommonTools/interface/DASOptions.h"
#include "Core/CommonTools/interface/toolbox.h"
#include <TTree.h>
#include <TFile.h>
#include <TString.h>
#include <TH1.h>
#include <TH3.h>
#include "common.h"
#include "Core/JEC/interface/JMEmatching.h"
#include "Core/JEC/interface/MakeResponseHistos.h"
#include <darwin.h>
+ Include dependency graph for getJetResponse.cc:

Namespaces

 DAS
 
 DAS::JetEnergy
 

Functions

void getJetResponse (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[])
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)
168 {
169  try {
171 
172  vector<fs::path> inputs;
173  fs::path output;
174 
175  auto options = DAS::Options("Get response in bins of pt and eta.", DT::split | DT::config);
176  options.inputs("inputs", &inputs, "input ROOT file(s) or directory")
177  .output("output", &output, "output ROOT file")
178  .arg<bool>("pileup", "skims.pileup", "flag to activate the binning in mu and rho");
179 
180  const auto& config = options(argc, argv);
181  const auto& slice = options.slice();
182  const int steering = options.steering();
183 
184  DAS::JetEnergy::getJetResponse(inputs, output, config, steering, slice);
185  }
186  catch (boost::exception& e) {
187  DE::Diagnostic(e);
188  return EXIT_FAILURE;
189  }
190 
191  return EXIT_SUCCESS;
192 }
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
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
DAS::JetEnergy::getJetResponse
void getJetResponse(const vector< fs::path > &inputs, const fs::path &output, const pt::ptree &config, const int steering, const DT::Slice slice={1, 0})
Get JER differential resolution and balance.
Definition: getJetResponse.cc:43