|
DAS
3.0
Das Analysis System
|
#include <cstdlib>
#include <filesystem>
#include <iostream>
#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 <TString.h>
#include <TFile.h>
#include <TH2.h>
#include "Core/CommonTools/interface/ControlPlots.h"
#include "PUcorrection.h"
#include <darwin.h>
|
void | applyPUprofCorrection (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[]) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
181 "Correct PU profile (independently to the trigger).",
183 options.inputs(
"inputs", &
inputs,
"input ROOT file(s) or directory")
184 .output(
"output", &output,
"output ROOT file")
185 .arg<fs::path>(
"MC",
"corrections.PUprofile.MC",
"profile obtained with `getPUprofile`")
186 .arg<fs::path>(
"Data",
"corrections.PUprofile.Data",
"profile obtained with `getPUprofile`")
187 .arg<
float>(
"maxWeight",
"corrections.PUprofile.maxWeight",
"highest allowed value for the weight");
190 const auto& slice =
options.slice();
191 const int steering =
options.steering();
195 catch (boost::exception& e) {
options
Definition: DYToLL_M-50_13TeV_pythia8_cff_GEN_SIM_RECOBEFMIX_DIGI_L1_DIGI2RAW_L1Reco_RECO.py:41
void Diagnostic(const boost::exception &e)
Definition: exceptions.h:116
config
Definition: Ntupliser_cfg.py:260
void applyPUprofCorrection(const vector< fs::path > inputs, const fs::path output, const pt::ptree &config, const int steering, const DT::Slice slice={1, 0})
Apply the PU profile reweighting to the simulation.
Definition: applyPUprofCorrection.cc:37
def inputs
Definition: jercExample.py:118
Darwin::Tools::Options Options(const char *, int=Darwin::Tools::none)
Constructs Darwin options with the correct commit information.
Definition: DASOptions.cc:14