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

Namespaces

 DAS
 
 DAS::BTagging
 

Functions

vector< double > GetDeepJetEdges (int year, bool HIPM=false)
 
void getBTagBinnedDiscriminant (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[] 
)
Todo:
provide WPs as input?
124 {
125  try {
127 
128  vector<fs::path> inputs;
129  fs::path output;
130 
131  auto options = DAS::Options(
132  "Fill distributions of the discriminants in bins of "
133  "jet kinematic variables and for the fixed working points.",
135  options.inputs("inputs", &inputs, "input ROOT file(s) or directory")
136  .output("output", &output, "output ROOT file");
138  const auto& config = options(argc, argv);
139  const auto& slice = options.slice();
140  const int steering = options.steering();
141 
142  DAS::BTagging::getBTagBinnedDiscriminant(inputs, output, config, steering, slice);
143  }
144  catch (boost::exception& e) {
145  DE::Diagnostic(e);
146  return EXIT_FAILURE;
147  }
148 
149  return EXIT_SUCCESS;
150 }
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::syst
@ syst
activate -s to systematic uncertainties
Definition: Options.h:29
Darwin::Tools::StandardInit
void StandardInit()
Definition: FileUtils.cc:25
Ntupliser_cfg.config
config
Definition: Ntupliser_cfg.py:260
DAS::BTagging::getBTagBinnedDiscriminant
void getBTagBinnedDiscriminant(const vector< fs::path > &inputs, const fs::path &output, const pt::ptree &config, const int steering, const DT::Slice slice={1, 0})
Definition: getBTagBinnedDiscriminant.cc:55
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