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

Namespaces

 DAS
 
 DAS::Normalisation
 

Functions

void getHLTJetResponse (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[] 
)
110 {
111  try {
113 
114  vector<fs::path> inputs;
115  fs::path output;
116 
117  auto options = DAS::Options("Get HLT response in bins of pt and eta.", DT::split);
118  options.inputs("inputs", &inputs, "input ROOT file(s) or directory after applyJEScorrections")
119  .output("output", &output, "output ROOT file to be used in fitJetResponse");
120 
121  const auto& config = options(argc, argv);
122  const auto& slice = options.slice();
123  const int steering = options.steering();
124 
125  DAS::Normalisation::getHLTJetResponse(inputs, output, config, steering, slice);
126  }
127  catch (boost::exception& e) {
128  DE::Diagnostic(e);
129  return EXIT_FAILURE;
130  }
131 
132  return EXIT_SUCCESS;
133 }
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::Normalisation::getHLTJetResponse
void getHLTJetResponse(const vector< fs::path > &inputs, const fs::path &output, const pt::ptree &config, const int steering, const DT::Slice slice={1, 0})
Definition: getHLTJetResponse.cc:42
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