|
DAS
3.0
Das Analysis System
|
#include <ControlPlots.h>
|
| ControlPlots (TString Name) |
|
void | operator() (const std::vector< RecJet > &recjets, const double &evW, size_t iJEC=0, size_t iWgt=0) |
|
void | operator() (const std::vector< GenJet > &genjets, const double &evW, size_t iWgt=0) |
|
void | Write (TDirectory *D) |
|
◆ ControlPlots()
- Todo:
- TH3 pt eta rho plots TH2 pt_N TH2 ptmax_Dphi
13 cout << __func__ <<
'\t' << Name << endl;
◆ operator()() [1/2]
void operator() |
( |
const std::vector< GenJet > & |
genjets, |
|
|
const double & |
evW, |
|
|
size_t |
iWgt = 0 |
|
) |
| |
45 auto genjet0 = find_if(begin(
genjets), end(
genjets), inYacceptance);
46 genpt0_N->Fill(genjet0->p4.Pt(), N, evW * genjet0->weights.front());
49 for (
size_t i = 0; i <
genjets.size(); ++i) {
59 if ( j0.p4.Pt() < 100. || j1.p4.Pt() < 50. )
return;
61 auto ymax = max(j0.AbsRap(), j1.AbsRap());
62 auto djW = j0.weights.at(iWgt) * j1.weights.at(iWgt);
65 auto Y0 = j0.Rapidity(),
67 auto ystar = 0.5*abs(Y0-Y1),
68 yboost = 0.5*abs(Y0+Y1);
69 genMjj_ysyb->Fill(dijet.CorrP4().M(), yboost, ystar, evW * djW);
70 auto ptav = 0.5*(j0.p4.Pt() + j1.p4.Pt());
◆ operator()() [2/2]
void operator() |
( |
const std::vector< RecJet > & |
recjets, |
|
|
const double & |
evW, |
|
|
size_t |
iJEC = 0 , |
|
|
size_t |
iWgt = 0 |
|
) |
| |
87 auto recjet0 = find_if(begin(
recjets), end(
recjets), inYacceptance);
88 recpt0_N->Fill(recjet0->p4.Pt(), N, evW * recjet0->weights.front());
92 for (
size_t i = 0; i <
recjets.size(); ++i) {
101 if ( j0.CorrPt(iJEC) < 100. || j1.CorrPt(iJEC) < 50. )
return;
102 auto ymax = max(j0.AbsRap(), j1.AbsRap());
103 auto djW = j0.weights.at(iWgt) * j1.weights.at(iWgt);
104 auto dijet = j0 + j1;
107 auto Y0 = j0.Rapidity(),
109 auto ystar = 0.5*abs(Y0-Y1),
110 yboost = 0.5*abs(Y0+Y1);
111 recMjj_ysyb->Fill(dijet.CorrP4().M(), yboost, ystar, evW * djW);
112 auto ptav = dijet.HT();
◆ Write()
void Write |
( |
TDirectory * |
D | ) |
|
119 auto d = D->mkdir(
name);
124 hs.insert(hs.end(), hs2.begin(), hs2.end());
127 TString n = h->GetName();
128 n.ReplaceAll(
name,
"");
◆ genMjj_y
std::optional<TH2F> genMjj_y |
◆ genMjj_ysyb
std::optional<TH3F> genMjj_ysyb |
◆ genpt
std::optional<TH1F> genpt |
◆ genpt0_N
std::optional<TH2F> genpt0_N |
◆ genpt_n
std::optional<TH2F> genpt_n |
◆ genpt_y
std::optional<TH2F> genpt_y |
◆ genptav_ysyb
std::optional<TH3F> genptav_ysyb |
◆ isMC
◆ name
◆ recMjj_y
std::optional<TH2F> recMjj_y |
◆ recMjj_ysyb
std::optional<TH3F> recMjj_ysyb |
◆ recpt
std::optional<TH1F> recpt |
◆ recpt0_N
std::optional<TH2F> recpt0_N |
◆ recpt_n
std::optional<TH2F> recpt_n |
◆ recpt_y
std::optional<TH2F> recpt_y |
◆ recptav_ysyb
std::optional<TH3F> recptav_ysyb |
The documentation for this struct was generated from the following files:
std::optional< TH2F > genMjj_y
Definition: ControlPlots.h:25
static const std::vector< double > y_edges
Definition: binnings.h:36
std::optional< TH1F > recpt
Definition: ControlPlots.h:23
std::optional< TH3F > genptav_ysyb
Definition: ControlPlots.h:27
FourVector p4
raw four-momentum directly after reconstruction
Definition: PhysicsObject.h:47
static const std::vector< double > n_edges
Definition: binnings.h:37
std::optional< TH2F > genpt_y
Definition: ControlPlots.h:24
static const std::vector< double > pt_edges
Definition: binnings.h:33
static const std::vector< double > pt_av_edges
Definition: binnings.h:35
static const int nMjjBins
Definition: binnings.h:40
static const int maxMult
Definition: binnings.h:42
std::optional< TH3F > genMjj_ysyb
Definition: ControlPlots.h:26
static const double ymax
Definition: binnings.h:49
std::optional< TH2F > recpt_y
Definition: ControlPlots.h:24
float AbsRap(const Uncertainties::Variation &=Uncertainties::nominal) const
absolute rapidity
Definition: PhysicsObject.h:54
genjets
Definition: Ntupliser_cfg.py:271
std::optional< TH1F > genpt
Definition: ControlPlots.h:23
DAS::RecJet recjet
Definition: classes.h:15
std::optional< TH2F > recpt0_N
Definition: ControlPlots.h:28
static bool isMC
Definition: ControlPlots.h:19
std::optional< TH2F > genpt0_N
Definition: ControlPlots.h:28
recjets
Definition: Ntupliser_cfg.py:272
static const std::vector< double > Mjj_edges
Definition: binnings.h:34
float CorrPt(size_t i=0) const
corrected transverse momentum
Definition: PhysicsObject.h:52
static const int nPtBins
Definition: binnings.h:39
std::optional< TH3F > recMjj_ysyb
Definition: ControlPlots.h:26
std::optional< TH2F > genpt_n
Definition: ControlPlots.h:29
Weights weights
object weights
Definition: PhysicsObject.h:49
DAS::GenJet genjet
Definition: classes.h:14
static const int nPtDijetBins
Definition: binnings.h:41
std::optional< TH3F > recptav_ysyb
Definition: ControlPlots.h:27
const TString name
Definition: ControlPlots.h:21
std::optional< TH2F > recpt_n
Definition: ControlPlots.h:29
static const int nYbins
Definition: binnings.h:38
std::optional< TH2F > recMjj_y
Definition: ControlPlots.h:25