DAS  3.0
Das Analysis System
getBTagFraction.cc File Reference
#include <cstdlib>
#include <cassert>
#include <iostream>
#include <vector>
#include <filesystem>
#include <map>
#include <TString.h>
#include <TFile.h>
#include <TH3.h>
#include "Math/VectorUtil.h"
#include "Core/CommonTools/interface/DASOptions.h"
#include <darwin.h>
+ Include dependency graph for getBTagFraction.cc:

Namespaces

 DAS
 
 DAS::BTagging
 

Functions

void getBTagFraction (const vector< fs::path > &inputs, const fs::path &output, const int steering)
 
int main (int argc, char *argv[])
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)
78 {
79  try {
81 
82  vector<fs::path> inputs;
83  fs::path output;
84 
85  auto options = DAS::Options(
86  "Extract fraction of b-tagged jets "
87  "from output of `getBTagDiscriminant`.");
88  options.inputs("inputs", &inputs, "input ROOT files")
89  .output("output", &output, "output ROOT file")
90  (argc, argv);
91  const int steering = options.steering();
92 
93  DAS::BTagging::getBTagFraction(inputs, output, steering);
94  }
95  catch (boost::exception& e) {
96  DE::Diagnostic(e);
97  return EXIT_FAILURE;
98  }
99 
100  return EXIT_SUCCESS;
101 }
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
DAS::BTagging::getBTagFraction
void getBTagFraction(const vector< fs::path > &inputs, const fs::path &output, const int steering)
Definition: getBTagFraction.cc:32
Darwin::Tools::StandardInit
void StandardInit()
Definition: FileUtils.cc:29
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