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[] 
)
110 {
111  try {
113  DT::MetaInfo::versions["TUnfold"] = TUnfold::GetTUnfoldVersion();
114 
115  vector<fs::path> inputs;
116  fs::path output;
117 
118  auto options = DAS::Options(
119  "Fill histograms to run global unfolding of "
120  "multiple observables.", DT::syst | DT::split | DT::config);
121 
122  options.inputs("inputs", &inputs, "input ROOT file(s) or directory")
123  .output("output", &output, "output ROOT file" )
124  .args("observables", "unfolding.observables", "list of observables (use DAS::Unfolding subnamespaces)");
125 
126  const auto& config = options(argc,argv);
127  const auto& slice = options.slice();
128  const int steering = options.steering();
129 
130  DAS::Unfolding::getUnfHist(inputs, output, config, steering, slice);
131  }
132  catch (boost::exception& e) {
133  DE::Diagnostic(e);
134  return EXIT_FAILURE;
135  }
136 
137  return EXIT_SUCCESS;
138 }
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::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
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:210