DAS  3.0
Das Analysis System
getTriggerCurves.cc File Reference
#include <cassert>
#include <cstdlib>
#include <filesystem>
#include <iostream>
#include <map>
#include <vector>
#include "Core/Objects/interface/Event.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 <boost/property_tree/ptree.hpp>
#include <boost/property_tree/info_parser.hpp>
#include <TH2.h>
#include <TRandom3.h>
#include <TString.h>
#include <darwin.h>
#include "Math/VectorUtil.h"
#include "common.h"
#include "Core/Trigger/interface/match.h"
#include "Core/Normalisation/interface/PhaseSelection.h"
+ Include dependency graph for getTriggerCurves.cc:

Classes

struct  Efficiency
 

Namespaces

 DAS
 
 DAS::Normalisation
 

Functions

float getPrescale (Trigger *trigger, size_t indx)
 
void getTriggerCurves (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[])
 

Variables

vector< double > thresholds
 
int nThresholds
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)
313 {
314  try {
316 
317  vector<fs::path> inputs;
318  fs::path output;
319 
320  auto options = DAS::Options(
321  "Determine the components necessary to determine the JetHT trigger efficiency.\n"
322  "Strategy:\n"
323  " - For the first trigger (presumably HLT40), only TnP is available\n"
324  " - For all other triggers, emulation is used by default\n"
325  " - The other methods are used as cross-checks",
327 
328  options.inputs("inputs", &inputs, "input ROOT file(s) or directory")
329  .output("output", &output, "output ROOT file")
330  .arg<fs::path>("luminosities", "corrections.normalisation.luminosities" , "2-column text file with luminosity per trigger")
331  .arg<bool> ("prescales" , "corrections.normalisation.use_prescales", "boolean flag, for filling of the histograms");
332 
333  const auto& config = options(argc, argv);
334  const auto& slice = options.slice();
335  const int steering = options.steering();
336 
337  DAS::Normalisation::getTriggerCurves(inputs, output, config, steering, slice);
338  }
339  catch (boost::exception& e) {
340  DE::Diagnostic(e);
341  return EXIT_FAILURE;
342  }
343 
344  return EXIT_SUCCESS;
345 }
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
Ntupliser_cfg.config
config
Definition: Ntupliser_cfg.py:264
DAS::Normalisation::getTriggerCurves
void getTriggerCurves(const vector< fs::path > &inputs, const fs::path &output, const pt::ptree &config, const int steering, const DT::Slice slice={1, 0})
Get trigger curves from the data n-tuples.
Definition: getTriggerCurves.cc:107
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