DAS  3.0
Das Analysis System
applyDimuonSkim.cc File Reference
#include <iostream>
#include <filesystem>
#include <utility>
#include <TChain.h>
#include <TFile.h>
#include "Core/Objects/interface/Event.h"
#include "Core/Objects/interface/Lepton.h"
#include "Core/Objects/interface/Di.h"
#include "Core/CommonTools/interface/DASOptions.h"
#include "Core/CommonTools/interface/toolbox.h"
#include <darwin.h>
+ Include dependency graph for applyDimuonSkim.cc:

Namespaces

 DAS
 
 DAS::Muons
 

Functions

template<class Muon >
bool keepEvent (const vector< Muon > &muons, float pt1, float pt2)
 
void applyDimuonSkim (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[] 
)
120 {
121  try {
123 
124  vector<fs::path> inputs;
125  fs::path output;
126 
127  auto options = DAS::Options(
128  "Selects events with at least two muons passing pT cuts "
129  "and creates dimuon objects directly in the tree.",
131  options.inputs("inputs", &inputs, "input ROOT file(s) or directory")
132  .output("output", &output, "output ROOT file")
133  .arg<float>("pt1", "skims.dimuon.pt1", "Minimum pT of the first muon")
134  .arg<float>("pt2", "skims.dimuon.pt2", "Minimum pT of the second muon");
135 
136  const auto& config = options(argc, argv);
137  const auto& slice = options.slice();
138  const int steering = options.steering();
139 
140  DAS::Muons::applyDimuonSkim(inputs, output, config, steering, slice);
141  }
142  catch (boost::exception& e) {
143  DE::Diagnostic(e);
144  return EXIT_FAILURE;
145  }
146 
147  return EXIT_SUCCESS;
148 }
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
DAS::Muons::applyDimuonSkim
void applyDimuonSkim(const vector< fs::path > &inputs, const fs::path &output, const pt::ptree &config, const int steering, const DT::Slice slice={1, 0})
Definition: applyDimuonSkim.cc:40
Darwin::Tools::split
@ split
activate -k and -j to define slice
Definition: Options.h:26
Darwin::Tools::StandardInit
void StandardInit()
Definition: FileUtils.cc:29
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