|
DAS
3.0
Das Analysis System
|
#include <cassert>
#include <cstdlib>
#include <algorithm>
#include <functional>
#include <filesystem>
#include <iostream>
#include <limits>
#include <random>
#include <vector>
#include <TChain.h>
#include <TDirectory.h>
#include <TH2.h>
#include <TFile.h>
#include "Core/CommonTools/interface/DASOptions.h"
#include "Core/CommonTools/interface/toolbox.h"
#include "Core/CommonTools/interface/ControlPlots.h"
#include "Core/Objects/interface/Event.h"
#include "Core/Objects/interface/Format.h"
#include "Core/Objects/interface/Jet.h"
#include "Core/JEC/interface/JMEmatching.h"
#include <correction.h>
#include <darwin.h>
#include "common.h"
|
void | applyJERsmearing (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[] |
|
) |
| |
244 "Apply jet energy smearing correction. In practice, the correction factors "
245 "are stored in a dedicated vector in the reconstructed jets. To apply the "
246 "pure stochastic (scaling) smearing, use a null (infinite) core size; hybrid "
247 "smearing (scaling in core and stochastic in tails) is recommended. Note: JME "
248 "recommends 3 sigmas, but Run 2 studies suggest not more than 2 sigmas.",
250 options.inputs(
"inputs", &
inputs,
"input ROOT file(s) or directory")
251 .output(
"output", &output,
"output ROOT file")
252 .arg<fs::path>(
"tables",
"corrections.JER.tables",
253 "JSON file containing the corrections")
254 .arg<string>(
"campaign",
"corrections.JER.campaign",
255 "campaign (e.g. `Summer19UL18_RunA`)")
256 .arg<
float>(
"core_width",
"corrections.JER.core_width",
257 "width of the Gaussian core in units of sigma "
258 "(for the matching algorithm)");
261 const auto& slice =
options.slice();
262 const int steering =
options.steering();
266 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
void applyJERsmearing(const vector< fs::path > &inputs, const fs::path &output, const pt::ptree &config, const int steering, const DT::Slice slice={1, 0})
Definition: applyJERsmearing.cc:47
config
Definition: Ntupliser_cfg.py:260
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