DAS  3.0
Das Analysis System
applyPhotonConversionVeto.cc File Reference
#include <cstdlib>
#include <filesystem>
#include <iostream>
#include <vector>
#include "Core/Objects/interface/Event.h"
#include "Core/Objects/interface/Photon.h"
#include "Core/CommonTools/interface/toolbox.h"
#include "Core/CommonTools/interface/binnings.h"
#include "Core/CommonTools/interface/DASOptions.h"
#include "Core/CommonTools/interface/GenericSFApplier.h"
#include <darwin.h>
+ Include dependency graph for applyPhotonConversionVeto.cc:

Classes

class  ConversionVetoApplier
 

Namespaces

 DAS
 
 DAS::Photon
 

Functions

void applyPhotonConversionVeto (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[] 
)
165 {
166  try {
168 
169  vector<fs::path> inputs;
170  fs::path output;
171 
172  auto options = DAS::Options(
173  "Selects photons passing the conversion-safe electron "
174  "veto (CSEV) or pixel seed veto (HasPix). Photon ID should "
175  "be applied before.",
177  options.inputs("inputs", &inputs, "input ROOT file(s) or directory")
178  .output("output", &output, "output ROOT file")
179  .arg<fs::path>("table", "corrections.photons.conversion_veto.table",
180  "The file from which scale factors are taken "
181  "(or /dev/null for no correction)")
182  .arg<string>("type", "corrections.photons.conversion_veto.type",
183  "CSEV or HasPix");
184 
185  const auto& config = options(argc, argv);
186  const auto& slice = options.slice();
187  const int steering = options.steering();
188 
189  DAS::Photon::applyPhotonConversionVeto(inputs, output, config, steering, slice);
190  }
191  catch (boost::exception& e) {
192  DE::Diagnostic(e);
193  return EXIT_FAILURE;
194  }
195 
196  return EXIT_SUCCESS;
197 }
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::Friend
@ Friend
activate -F to only fill the new branches
Definition: Options.h:28
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
DAS::Photon::applyPhotonConversionVeto
void applyPhotonConversionVeto(const vector< fs::path > &inputs, const fs::path &output, const pt::ptree &config, const int steering, const DT::Slice slice={1, 0})
Definition: applyPhotonConversionVeto.cc:116
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