DAS  3.0
Das Analysis System
getUnfHistPt.cc File Reference
#include <cstdlib>
#include <iostream>
#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 "Core/JEC/interface/JMEmatching.h"
#include <TH2.h>
#include "Math/VectorUtil.h"
#include "Math/GenVector/GenVector_exception.h"
#include <darwin.h>
+ Include dependency graph for getUnfHistPt.cc:

Classes

struct  PtVariation
 

Namespaces

 DAS
 
 DAS::Unfolding
 
 DAS::Unfolding::InclusiveJet1D
 

Macros

#define PAIR(name)   make_pair(dynamic_cast<TH1*>(name), #name)
 

Functions

void getUnfHistPt (const vector< fs::path > &inputs, const fs::path &output, const int steering, const DT::Slice slice={1, 0})
 
int main (int argc, char *argv[])
 

Variables

static const std::vector< double > recBins {74,84,97,114,133,153,174,196,220,245,272,300,330,362,395,430,468,507,548,592,638,686,737,790,846,905,967,1032,1101,1172,1248,1327,1410,1497,1588,1684,1784,1890,2000,2116,2238,2366,2500,2640,2787,2941,3103,3273,3450,3637,3832}
 
static const std::vector< double > genBins {74 ,97 ,133 ,174 ,220 ,272 ,330 ,395 ,468 ,548 ,638 ,737 ,846 ,967 ,1101 ,1248 ,1410 ,1588 ,1784 ,2000 ,2238 ,2500 ,2787 ,3103 ,3450, 3832}
 
static const int nRecBins = recBins.size()-1
 
static const int nGenBins = genBins.size()-1
 
static const double minpt = recBins.front()
 
static const double maxpt = recBins.back()
 
static const double maxy = 2.0
 

Macro Definition Documentation

◆ PAIR

#define PAIR (   name)    make_pair(dynamic_cast<TH1*>(name), #name)

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)
273 {
274  try {
276 
277  vector<fs::path> inputs;
278  fs::path output;
279 
280  auto options = DAS::Options(
281  "Fill histograms to run unfolding.", DT::syst | DT::split);
282 
283  options.inputs("inputs", &inputs, "input ROOT file(s) or directory")
284  .output("output", &output, "output ROOT file" );
285  options(argc,argv);
286  const auto& slice = options.slice();
287  const int steering = options.steering();
288 
289  DAS::Unfolding::InclusiveJet1D::getUnfHistPt(inputs, output, steering, slice);
290  }
291  catch (boost::exception& e) {
292  DE::Diagnostic(e);
293  return EXIT_FAILURE;
294  }
295 
296  return EXIT_SUCCESS;
297 }
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::syst
@ syst
activate -s to systematic uncertainties
Definition: Options.h:29
Darwin::Tools::StandardInit
void StandardInit()
Definition: FileUtils.cc:25
DAS::Unfolding::InclusiveJet1D::getUnfHistPt
void getUnfHistPt(const vector< fs::path > &inputs, const fs::path &output, const int steering, const DT::Slice slice={1, 0})
Definition: getUnfHistPt.cc:102
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