DAS  3.0
Das Analysis System
printHist.cc File Reference
#include <cstdlib>
#include <stdexcept>
#include <iostream>
#include <iomanip>
#include <filesystem>
#include <memory>
#include "darwin.h"
#include <TFile.h>
#include <TTree.h>
+ Include dependency graph for printHist.cc:

Namespaces

 Darwin
 
 Darwin::Tools
 

Functions

void printHist (vector< fs::path > inputs, const pt::ptree &config)
 
int main (int argc, char *argv[])
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)
72 {
73  try {
75 
76  vector<fs::path> inputs;
77 
78  DT::Options options("Print the non-empty bins of a histogram");
79  options.inputs("inputs", &inputs, "input ROOT files or directory")
80  .arg<string>("hist", "hist", "path to histogram to print");
81  options(argc, argv);
82  const auto& config = options(argc, argv);
83 
85  return EXIT_SUCCESS;
86  }
87  catch (boost::exception& e) {
88  DE::Diagnostic(e);
89  return EXIT_FAILURE;
90  }
91 }
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
Darwin::Tools::Options
Common class to interpret the command line, based on Boost Program Options.
Definition: Options.h:58
Darwin::Tools::printHist
void printHist(vector< fs::path > inputs, const pt::ptree &config)
Definition: printHist.cc:26
jercExample.inputs
def inputs
Definition: jercExample.py:118