#include <Plots.h>
|
float | FillPtHat (const GenEvent &event, const PileUp &pileup) |
|
template<typename Jet > |
void | FillObsWgt (std::unique_ptr< TH2F > &ptLogw, std::unique_ptr< TH2F > &mjjLogw, std::unique_ptr< TH2F > &htLogw, std::unique_ptr< TH1F > &ht, const std::vector< Jet > &jets, float evW) |
|
◆ Plots()
Plots |
( |
const char * |
Name | ) |
|
|
inline |
32 genht(std::make_unique<TH1F>(
"genht",
";H_{T}^{gen} [GeV];N_{eff}^{j}",
nPtBins,
pt_edges.data())),
33 recht(std::make_unique<TH1F>(
"recht",
";H_{T}^{rec} [GeV];N_{eff}^{j}",
nPtBins,
pt_edges.data())),
35 genptLogw(std::make_unique<TH2F>(
"genptLogw",
";Jet p_{T}^{gen} [GeV];log(w);N_{eff}^{j}",
nPtBins,
pt_edges.data(), 400, -30, 20)),
36 genhtLogw(std::make_unique<TH2F>(
"genhtLogw",
";H_{T}^{gen} [GeV];log(w);N_{eff}^{j}",
nPtBins,
pt_edges.data(), 400, -30, 20)),
37 genmjjLogw(std::make_unique<TH2F>(
"genmjjLogw",
";m_{jj}^{gen} [GeV];log(w);N_{eff}^{jj}",
nMjjBins,
Mjj_edges.data(), 400, -30, 20)),
38 recptLogw(std::make_unique<TH2F>(
"recptLogw",
";Jet p_{T}^{rec} [GeV];log(w);N_{eff}^{j}",
nPtBins,
pt_edges.data(), 400, -30, 20)),
39 rechtLogw(std::make_unique<TH2F>(
"rechtLogw",
";H_{T}^{rec} [GeV];log(w);N_{eff}^{j}",
nPtBins,
pt_edges.data(), 400, -30, 20)),
40 recmjjLogw(std::make_unique<TH2F>(
"recmjjLogw",
";m_{jj}^{rec} [GeV];log(w);N_{eff}^{jj}",
nMjjBins,
Mjj_edges.data(), 400, -30, 20))
◆ FillObsWgt()
void FillObsWgt |
( |
std::unique_ptr< TH2F > & |
ptLogw, |
|
|
std::unique_ptr< TH2F > & |
mjjLogw, |
|
|
std::unique_ptr< TH2F > & |
htLogw, |
|
|
std::unique_ptr< TH1F > & |
ht, |
|
|
const std::vector< Jet > & |
jets, |
|
|
float |
evW |
|
) |
| |
|
inlineprivate |
68 for (
const auto& jet:
jets) {
69 auto jW = log(jet.weights.front());
70 weight_sum = weight_sum + jW;
71 ptLogw->Fill(jet.p4.Pt(), evW + jW);
72 pt_sum += jet.p4.Pt();
76 htLogw->Fill(pt_sum, evW + weight_sum);
78 if (
jets.size() < 2)
return;
79 const auto& j0 =
jets.at(0),
82 if (j0.p4.Pt() < 100. || j1.p4.Pt() < 50.)
return;
83 if (std::max(j0.AbsRap(), j1.AbsRap()) >= 3.0)
return;
85 auto djW = log(j0.weights.front()) + log(j1.weights.front());
86 mjjLogw->Fill(dijet.CorrP4().M(), evW + djW);
◆ FillPtHat()
47 float gW =
event.weights.front();
49 pthatME->Fill(event.hard_scale, gW);
50 float maxpthat =
event.hard_scale;
53 maxpthat = std::max(maxpthat, pthat);
◆ operator()()
99 float logw = log(genEvt.weights.front());
103 logw += log(recEvt.weights.front());
◆ Write()
void Write |
( |
TDirectory * |
d | ) |
|
|
inline |
111 TDirectory * dd = d->mkdir(
name);
121 for (
auto h: hists) {
123 TString hname = h->GetName();
124 hname.ReplaceAll(
name,
"");
◆ genht
std::unique_ptr<TH1F> genht |
◆ genhtLogw
std::unique_ptr<TH2F> genhtLogw |
◆ genmjjLogw
std::unique_ptr<TH2F> genmjjLogw |
◆ genptLogw
std::unique_ptr<TH2F> genptLogw |
◆ name
◆ pthatLogw
std::unique_ptr<TH2F> pthatLogw |
◆ pthatMax
std::unique_ptr<TH1F> pthatMax |
◆ pthatME
std::unique_ptr<TH1F> pthatME |
◆ pthatPU
std::unique_ptr<TH1F> pthatPU |
◆ recht
std::unique_ptr<TH1F> recht |
◆ rechtLogw
std::unique_ptr<TH2F> rechtLogw |
◆ recmjjLogw
std::unique_ptr<TH2F> recmjjLogw |
◆ recptLogw
std::unique_ptr<TH2F> recptLogw |
The documentation for this struct was generated from the following file:
- /builds/cms-analysis/general/DasAnalysisSystem/Core/Installer/Core/PUstaubSauger/interface/Plots.h