DAS  3.0
Das Analysis System
getUnfBinning.cc File Reference
#include <cstdlib>
#include <cassert>
#include <iostream>
#include <vector>
#include <filesystem>
#include <TString.h>
#include <TFile.h>
#include <TH1.h>
#include <TUnfoldBinningXML.h>
#include "Math/VectorUtil.h"
#include <darwin.h>
#include "Core/CommonTools/interface/DASOptions.h"
#include "Core/Unfolding/interface/Observable.h"
+ Include dependency graph for getUnfBinning.cc:

Namespaces

 DAS
 
 DAS::Unfolding
 

Functions

void getUnfBinning (const fs::path &outputGen, const fs::path &outputRec, const pt::ptree &config, const int steering)
 
int main (int argc, char *argv[])
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)
68 {
69  try {
71  DT::MetaInfo::versions["TUnfold"] = TUnfold::GetTUnfoldVersion();
72 
73  fs::path outputGen, outputRec;
74 
75  auto options = DAS::Options(
76  "Get binning used in unfolding in XML format.",
77  DT::config);
78  options.output("outputGen", &outputGen, "output XML file with binning at hadron level (`/dev/null` to deactivate)")
79  .output("outputRec", &outputRec, "output XML file with binning at detector level (`/dev/null` to deactivate)")
80  .args("observables", "unfolding.observables", "list of observables (use DAS::Unfolding subnamespaces)");
81  const auto& config = options(argc, argv);
82  const int steering = options.steering();
83 
84  DAS::Unfolding::getUnfBinning(outputGen, outputRec, config, steering);
85  }
86  catch (boost::exception& e) {
87  DE::Diagnostic(e);
88  return EXIT_FAILURE;
89  }
90 
91  return EXIT_SUCCESS;
92 }
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
DAS::Unfolding::getUnfBinning
void getUnfBinning(const fs::path &outputGen, const fs::path &outputRec, const pt::ptree &config, const int steering)
Get binning in XML format.
Definition: getUnfBinning.cc:33
Darwin::Tools::StandardInit
void StandardInit()
Definition: FileUtils.cc:29
Ntupliser_cfg.config
config
Definition: Ntupliser_cfg.py:264
DAS::Options
Darwin::Tools::Options Options(const char *, int=Darwin::Tools::none)
Constructs Darwin options with the correct commit information.
Definition: DASOptions.cc:14
Darwin::Tools::MetaInfo::versions
static std::map< std::string, std::string > versions
software version
Definition: MetaInfo.h:210