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

Namespaces

 DAS
 
 DAS::Unfolding
 

Functions

void getLmatrix (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[] 
)
97 {
98  try {
100  DT::MetaInfo::versions["TUnfold"] = TUnfold::GetTUnfoldVersion();
101 
102  fs::path input, output;
103 
104  auto options = DAS::Options(
105  "Make the L-matrix for a given set of observables.",
106  DT::config);
107  options.input("input" , &input, "input MC ROOT file (from `getUnfHist*`)")
108  .output("output", &output, "output ROOT file")
109  .args("observables", "unfolding.observables", "list of observables (use DAS::Unfolding subnamespaces)");
110  const auto& config = options(argc, argv);
111  const int steering = options.steering();
112 
113  DAS::Unfolding::getLmatrix(input, output, config, steering);
114  }
115  catch (boost::exception& e) {
116  DE::Diagnostic(e);
117  return EXIT_FAILURE;
118  }
119 
120  return EXIT_SUCCESS;
121 }
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::StandardInit
void StandardInit()
Definition: FileUtils.cc:25
Ntupliser_cfg.config
config
Definition: Ntupliser_cfg.py:260
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::Unfolding::getLmatrix
void getLmatrix(const fs::path &input, const fs::path &output, const pt::ptree &config, const int steering)
Definition: getLmatrix.cc:40
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:207