DAS  3.0
Das Analysis System
getSmoothTests.cc File Reference
#include <cstdlib>
#include <cassert>
#include <iostream>
#include <vector>
#include <filesystem>
#include <TROOT.h>
#include <TString.h>
#include <TFile.h>
#include <TH1.h>
#include <TKey.h>
#include "Math/VectorUtil.h"
#include "Core/CommonTools/interface/Step.h"
#include "Core/CommonTools/interface/toolbox.h"
#include <darwin.h>
+ Include dependency graph for getSmoothTests.cc:

Namespaces

 DAS
 

Functions

pair< int, int > GetBinRange (TH1 *h)
 
void ScaleWidth (TH1 *h, TH2 *cov)
 
void getSmoothFits (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[])
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)
158 {
159  try {
161 
162  fs::path input, output;
163 
164  DT::Options options("Smooth relative uncertainties in the output of `getUnfPhysDist`",
166  options.input ("input" , &input , "input ROOT file")
167  .output("output", &output, "output ROOT file")
168  .arg<string>("distribution", "uncertainties.smoothness.distribution", "distribution (e.g. `unfold`)")
169  .arg<string>("covariance", "uncertainties.smoothness.covariance", "covariance matrix (e.g. `covOutTotal`)")
170  (argc, argv);
171  const auto& config = options(argc, argv);
172  const auto& slice = options.slice();
173  const int steering = options.steering();
174 
175  DAS::getSmoothFits(input, output, config, steering, slice);
176  }
177  catch (boost::exception& e) {
178  DE::Diagnostic(e);
179  return EXIT_FAILURE;
180  }
181 
182  return EXIT_SUCCESS;
183 }
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::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
Darwin::Tools::Options
Common class to interpret the command line, based on Boost Program Options.
Definition: Options.h:58
DAS::getSmoothFits
void getSmoothFits(const fs::path &input, const fs::path &output, const pt::ptree &config, const int steering, const DT::Slice slice={1, 0})
Smooth relative uncertainties on the output of getUnfPhysDist.
Definition: getSmoothTests.cc:62