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

Namespaces

 DAS
 
 DAS::PUprofile
 

Functions

void getPUprofile (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[] 
)
178 {
179  try {
181 
182  vector<fs::path> inputs;
183  fs::path output;
184 
185  auto options = DAS::Options(
186  "Produces the PU profiles from the events stored in the selection.",
188  options.inputs("inputs", &inputs, "input ROOT file(s) or directory")
189  .output("output", &output, "output ROOT file")
190  .arg<fs::path>("turnons", "corrections.normalisation.turnons", "2-column file with HLT and offline-PF thresholds");
191 
192  const auto& config = options(argc, argv);
193  const auto& slice = options.slice();
194  const int steering = options.steering();
195 
196  DAS::PUprofile::getPUprofile(inputs, output, config, steering, slice);
197  }
198  catch (boost::exception& e) {
199  DE::Diagnostic(e);
200  return EXIT_FAILURE;
201  }
202 
203  return EXIT_SUCCESS;
204 }
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::PUprofile::getPUprofile
void getPUprofile(const vector< fs::path > &inputs, const fs::path &output, const pt::ptree &config, const int steering, const DT::Slice slice={1, 0})
Get the PU profile from the n-tuple (data and MC)
Definition: getPUprofile.cc:45
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