DAS  3.0
Das Analysis System
getUnfHist.cc File Reference
#include <cstdlib>
#include <iostream>
#include <vector>
#include "Core/CommonTools/interface/binnings.h"
#include "Core/CommonTools/interface/DASOptions.h"
#include "Core/CommonTools/interface/toolbox.h"
#include "Core/Unfolding/interface/HTn.h"
#include "Core/Unfolding/interface/DistVariation.h"
#include "Math/VectorUtil.h"
#include "Math/GenVector/GenVector_exception.h"
#include <darwin.h>
+ Include dependency graph for getUnfHist.cc:

Namespaces

 DAS
 
 DAS::Unfolding
 

Functions

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

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)
124 {
125  try {
127  DT::MetaInfo::versions["TUnfold"] = TUnfold::GetTUnfoldVersion();
128 
129  vector<fs::path> inputs;
130  fs::path output;
131 
132  auto options = DAS::Options(
133  "Fill histograms to run global unfolding of "
134  "multiple observables.", DT::syst | DT::split | DT::config);
135 
136  options.inputs("inputs", &inputs, "input ROOT file(s) or directory")
137  .output("output", &output, "output ROOT file" )
138  .args("observables", "unfolding.observables", "list of observables (use DAS::Unfolding subnamespaces)");
139 
140  const auto& config = options(argc,argv);
141  const auto& slice = options.slice();
142  const int steering = options.steering();
143 
144  DAS::Unfolding::getUnfHist(inputs, output, config, steering, slice);
145  }
146  catch (boost::exception& e) {
147  DE::Diagnostic(e);
148  return EXIT_FAILURE;
149  }
150 
151  return EXIT_SUCCESS;
152 }
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
Ntupliser_cfg.config
config
Definition: Ntupliser_cfg.py:260
DAS::Unfolding::getUnfHist
void getUnfHist(const vector< fs::path > &inputs, const fs::path &output, const pt::ptree &config, const int steering, const DT::Slice slice={1, 0})
Definition: getUnfHist.cc:35
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
Darwin::Tools::MetaInfo::versions
static std::map< std::string, std::string > versions
software version
Definition: MetaInfo.h:207