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

Classes

struct  PerformanceHist
 

Namespaces

 DAS
 
 DAS::Photon
 

Functions

void Fill (const GenPhoton &genPhoton, const vector< RecPhoton > &recPhotons, const float minPt, const float minAbsEta, const float maxAbsEta, const double w_gen_ev, const double w_rec_ev, map< TString, PerformanceHist > &histograms, TString region, TEfficiency &eff_pt)
 
void getPhotonSpectrum (const vector< fs::path > &inputs, const fs::path &output, const int steering, const DT::Slice slice={1, 0})
 
int main (int argc, char *argv[])
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)
196  {
197  try {
199 
200  vector<fs::path> inputs;
201  fs::path output;
202 
203  auto options = DAS::Options("Obtain gen/reco plots for photons in the barrel/endcaps.", DT::split);
204  options.inputs("inputs", &inputs, "input ROOT file(s) or directory")
205  .output("output", &output, "output ROOT file");
206  options(argc, argv);
207  const auto& slice = options.slice();
208  const int steering = options.steering();
209 
210  DAS::Photon::getPhotonSpectrum(inputs, output, steering, slice);
211  }
212  catch (boost::exception& e) {
213  DE::Diagnostic(e);
214  return EXIT_FAILURE;
215  }
216 
217  return EXIT_SUCCESS;
218 }
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
DAS::Photon::getPhotonSpectrum
void getPhotonSpectrum(const vector< fs::path > &inputs, const fs::path &output, const int steering, const DT::Slice slice={1, 0})
Obtain photon plots.
Definition: getPhotonPerformance.cc:117
Darwin::Tools::StandardInit
void StandardInit()
Definition: FileUtils.cc:29
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