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[] 
)
322 {
323  try {
325 
326  vector<fs::path> inputs;
327  fs::path output;
328 
329  auto options = DAS::Options(
330  "Determine the components necessary to determine the JetHT trigger efficiency.\n"
331  "Strategy:\n"
332  " - For the first trigger (presumably HLT40), only TnP is available\n"
333  " - For all other triggers, emulation is used by default\n"
334  " - The other methods are used as cross-checks",
336 
337  options.inputs("inputs", &inputs, "input ROOT file(s) or directory")
338  .output("output", &output, "output ROOT file")
339  .arg<fs::path>("luminosities", "corrections.normalisation.luminosities" , "2-column text file with luminosity per trigger")
340  .arg<bool> ("prescales" , "corrections.normalisation.use_prescales", "boolean flag, for filling of the histograms");
341 
342  const auto& config = options(argc, argv);
343  const auto& slice = options.slice();
344  const int steering = options.steering();
345 
346  DAS::Normalisation::getTriggerCurves(inputs, output, config, steering, slice);
347  }
348  catch (boost::exception& e) {
349  DE::Diagnostic(e);
350  return EXIT_FAILURE;
351  }
352 
353  return EXIT_SUCCESS;
354 }
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:116
Darwin::Tools::split
@ split
activate -k and -j to define slice
Definition: Options.h:26
Darwin::Tools::StandardInit
void StandardInit()
Definition: FileUtils.cc:25
Ntupliser_cfg.config
config
Definition: Ntupliser_cfg.py:260
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:110
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