DAS  3.0
Das Analysis System
applyZJetSkim.cc File Reference
#include <cstdlib>
#include <cassert>
#include <iostream>
#include <filesystem>
#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 applyZJetSkim.cc:

Namespaces

 DAS
 
 DAS::Jets
 

Functions

template<class Jet , class Dimuon >
bool keepEvent (const vector< Jet > &jets, const Dimuon &dimuon, float zpt, float jpt)
 
void applyZJetSkim (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[] 
)
129 {
130  try {
132 
133  vector<fs::path> inputs;
134  fs::path output;
135 
136  auto options = DAS::Options(
137  "Selects events with at least a Z and a jet passing pT cuts "
138  "and creates dijet objects directly in the tree.",
140  options.inputs("inputs", &inputs, "input ROOT file(s) or directory")
141  .output("output", &output, "output ROOT file")
142  .arg<float>("zpt", "skims.ZJet.zpt", "Minimum pT of the first jet")
143  .arg<float>("jpt", "skims.ZJet.jpt", "Minimum pT of the second jet");
144  const auto& config = options(argc, argv);
145  const auto& slice = options.slice();
146  const int steering = options.steering();
147 
148  DAS::Jets::applyZJetSkim(inputs, output, config, steering, slice);
149  }
150  catch (boost::exception& e) {
151  DE::Diagnostic(e);
152  return EXIT_FAILURE;
153  }
154 
155  return EXIT_SUCCESS;
156 }
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
DAS::Jets::applyZJetSkim
void applyZJetSkim(const vector< fs::path > &inputs, const fs::path &output, const pt::ptree &config, const int steering, const DT::Slice slice={1, 0})
Definition: applyZJetSkim.cc:46
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