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

Namespaces

 DAS
 
 DAS::Jets
 

Functions

template<class Jet >
bool keepEvent (const vector< Jet > &jets, float pt1, float pt2)
 
void applyDijetSkim (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[] 
)
117 {
118  try {
120 
121  vector<fs::path> inputs;
122  fs::path output;
123 
124  auto options = DAS::Options(
125  "Selects events with at least two jets passing pT cuts "
126  "and creates dijet objects directly in the tree.",
128  options.inputs("inputs", &inputs, "input ROOT file(s) or directory")
129  .output("output", &output, "output ROOT file")
130  .arg<float>("pt1", "skims.dijet.pt1", "Minimum pT of the first jet")
131  .arg<float>("pt2", "skims.dijet.pt2", "Minimum pT of the second jet");
132  const auto& config = options(argc, argv);
133  const auto& slice = options.slice();
134  const int steering = options.steering();
135 
136  DAS::Jets::applyDijetSkim(inputs, output, config, steering, slice);
137  }
138  catch (boost::exception& e) {
139  DE::Diagnostic(e);
140  return EXIT_FAILURE;
141  }
142 
143  return EXIT_SUCCESS;
144 }
DAS::Jets::applyDijetSkim
void applyDijetSkim(const vector< fs::path > &inputs, const fs::path &output, const pt::ptree &config, const int steering, const DT::Slice slice={1, 0})
Definition: applyDijetSkim.cc:44
Darwin::Tools::fill
@ fill
activate -f to fill the tree
Definition: Options.h:27
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
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