DAS  3.0
Das Analysis System
getToyCalculation.cc File Reference
#include <cstdlib>
#include <iostream>
#include <vector>
#include <numeric>
#include <limits>
#include <utility>
#include "Core/CommonTools/interface/DASOptions.h"
#include "Core/Objects/interface/Jet.h"
#include "Core/Objects/interface/Event.h"
#include "Core/Uncertainties/interface/Teddy.h"
#include "Core/Unfolding/interface/Observable.h"
#include "Core/Unfolding/interface/toolbox.h"
#include <TString.h>
#include <TFile.h>
#include <TH2D.h>
#include <TKey.h>
#include <darwin.h>
+ Include dependency graph for getToyCalculation.cc:
+ This graph shows which files directly or indirectly include this file:

Namespaces

 DAS
 
 DAS::Unfolding
 

Functions

template<typename TH1X , typename TH2X >
void CheckSymmetry (const unique_ptr< TH1X > &h, const unique_ptr< TH2X > &cov)
 
template<typename TH1X , typename TH2X >
void CheckEntries (const unique_ptr< TH1X > &h, const unique_ptr< TH2X > &cov)
 
void getToyCalculation (const fs::path &input, const fs::path &output, const pt::ptree &config, const int steering, const DT::Slice slice={1, 0})
 
int main (int argc, char *argv[])
 

Variables

static const auto deps = numeric_limits<double>::epsilon()
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)
213 {
214  try {
216 
217  fs::path input, output;
218 
219  auto options = DAS::Options(
220  "Fill histograms to run global unfolding of "
221  "multiple observables.", DT::syst | DT::split | DT::config);
222 
223  options.input("input", &input, "input ROOT file")
224  .output("output", &output, "output ROOT file")
225  .arg<string>("level", "uncertainties.toy.level", "gen or rec")
226  .arg<string>("distribution", "uncertainties.toy.distribution", "distribution (e.g. unfold)")
227  .arg<string>("covariance", "uncertainties.toy.covariance", "covariance matrix (e.g. covOutData)")
228  .arg<long>("N", "uncertainties.toy.N", "number of events")
229  .args("observables", "unfolding.observables", "list of observables (use DAS::Unfolding subnamespaces)");
230 
231  const auto& config = options(argc,argv);
232  const auto& slice = options.slice();
233  const int steering = options.steering();
234 
235  DAS::Unfolding::getToyCalculation(input, output, config, steering, slice);
236  }
237  catch (boost::exception& e) {
238  DE::Diagnostic(e);
239  return EXIT_FAILURE;
240  }
241 }

Variable Documentation

◆ deps

const auto deps = numeric_limits<double>::epsilon()
static
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
DAS::Unfolding::getToyCalculation
void getToyCalculation(const fs::path &input, const fs::path &output, const pt::ptree &config, const int steering, const DT::Slice slice={1, 0})
Definition: getToyCalculation.cc:81
Darwin::Exceptions::Diagnostic
void Diagnostic(const boost::exception &e)
Definition: exceptions.h:131
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: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