DAS  3.0
Das Analysis System
getConservativeMap.cc File Reference
#include <cstdlib>
#include <cassert>
#include <iostream>
#include <vector>
#include <TFile.h>
#include <TH2.h>
#include <TProfile.h>
#include "Core/CommonTools/interface/DASOptions.h"
#include "Math/VectorUtil.h"
#include <darwin.h>
+ Include dependency graph for getConservativeMap.cc:

Namespaces

 DAS
 
 DAS::JetVeto
 

Functions

void getConservativeMap (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[] 
)
71 {
72  try {
74 
75  fs::path input, output;
76 
77  auto options = DAS::Options("Make efficiency map from the original JetMET veto map.", DT::config);
78 
79  options.input ("input" , &input , "input ROOT file")
80  .output("output", &output, "output ROOT file")
81  .arg<string>("histname", "corrections.jetvetomap.histname", "name of the histogram in the inputs");
82 
83  const auto& config = options(argc, argv);
84  const int steering = options.steering();
85 
86  DAS::JetVeto::getConservativeMap(input, output, config, steering);
87  }
88  catch (boost::exception& e) {
89  DE::Diagnostic(e);
90  return EXIT_FAILURE;
91  }
92 
93  return EXIT_SUCCESS;
94 }
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
Darwin::Tools::StandardInit
void StandardInit()
Definition: FileUtils.cc:29
DAS::JetVeto::getConservativeMap
void getConservativeMap(const fs::path &input, const fs::path &output, const pt::ptree &config, const int steering)
Maps the JetMET veto maps onto maps containing weights.
Definition: getConservativeMap.cc:29
Ntupliser_cfg.config
config
Definition: Ntupliser_cfg.py:264
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::Options
Darwin::Tools::Options Options(const char *, int=Darwin::Tools::none)
Constructs Darwin options with the correct commit information.
Definition: DASOptions.cc:14