DAS  3.0
Das Analysis System
getPtAveBalance.cc File Reference
#include <cstdlib>
#include <cassert>
#include <iostream>
#include <vector>
#include <filesystem>
#include <tuple>
#include <TROOT.h>
#include <TString.h>
#include <TFile.h>
#include <TH1.h>
#include <TH2.h>
#include <TH3.h>
#include <TDirectory.h>
#include <TKey.h>
#include "Core/Objects/interface/Jet.h"
#include "Core/Objects/interface/Event.h"
#include "Core/Objects/interface/Format.h"
#include "Core/CommonTools/interface/DASOptions.h"
#include "Core/CommonTools/interface/toolbox.h"
#include "Math/VectorUtil.h"
#include <darwin.h>
+ Include dependency graph for getPtAveBalance.cc:

Namespaces

 DAS
 
 DAS::JetEnergy
 

Functions

void ProcessVariations (const vector< TH3 * > &variations, TDirectory &dOut)
 
void loopDirsFromGetBalance (TDirectory *dIn, TDirectory *dOut)
 
void getPtAveBalance (const fs::path &input, const fs::path &output, const pt::ptree &config, const int steering)
 
int main (int argc, char *argv[])
 

Variables

static const auto deps = numeric_limits<double>::epsilon()
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)
244 {
245  try {
247 
248  fs::path input, output;
249 
250  auto options = DAS::Options("Get pt average balance in bins of pt and eta.");
251  options.input ("input" , &input , "input ROOT file (from `getPtBalance`)")
252  .output("output", &output, "output ROOT file");
253 
254  const auto& config = options(argc, argv);
255  const int steering = options.steering();
256 
257  DAS::JetEnergy::getPtAveBalance(input, output, config, steering);
258  }
259  catch (boost::exception& e) {
260  DE::Diagnostic(e);
261  return EXIT_FAILURE;
262  }
263  return EXIT_SUCCESS;
264 }
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
DAS::JetEnergy::getPtAveBalance
void getPtAveBalance(const fs::path &input, const fs::path &output, const pt::ptree &config, const int steering)
Definition: getPtAveBalance.cc:228
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::Options
Darwin::Tools::Options Options(const char *, int=Darwin::Tools::none)
Constructs Darwin options with the correct commit information.
Definition: DASOptions.cc:14