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[] 
)
116 {
117  try {
119 
120  vector<fs::path> inputs;
121  fs::path output;
122 
123  auto options = DAS::Options(
124  "Selects events with at least a Z and a jet passing pT cuts "
125  "and creates dijet objects directly in the tree.",
127  options.inputs("inputs", &inputs, "input ROOT file(s) or directory")
128  .output("output", &output, "output ROOT file")
129  .arg<float>("zpt", "skims.ZJet.zpt", "Minimum pT of the first jet")
130  .arg<float>("jpt", "skims.ZJet.jpt", "Minimum pT of the second jet");
131  const auto& config = options(argc, argv);
132  const auto& slice = options.slice();
133  const int steering = options.steering();
134 
135  DAS::Jets::applyZJetSkim(inputs, output, config, steering, slice);
136  }
137  catch (boost::exception& e) {
138  DE::Diagnostic(e);
139  return EXIT_FAILURE;
140  }
141 
142  return EXIT_SUCCESS;
143 }
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:131
Darwin::Tools::split
@ split
activate -k and -j to define slice
Definition: Options.h:26
Darwin::Tools::StandardInit
void StandardInit()
Definition: FileUtils.cc:29
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:264
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