Balance histogram for a given variation.
#include <Balance.h>
◆ Balance()
73 vector balBins = MakeBinning<double>({-1.2,1.2}, nBins);
78 TString dirname =
d->GetName();
79 TString hname = dirname +
'_' +
v.
group +
'_' +
v.
name;
80 asymmetry = make_unique<TH3D>(hname,
v.
name, nBins, balBins.data(),
84 balBins = MakeBinning<double>({0., 1.2}, nBins);
85 response = make_unique<TH2D>(
"response_" + hname,
v.
name, nBins, balBins.data(),
◆ operator()()
Calculates balance for two objects following the definition of the Run 1 JetMET reference publication for dijet systems.
96 float absy_probe = probe.
AbsRap(
v);
104 response->Fill(pt_probe/pt_tag, absy_probe, ev_w*jw);
108 float pt_dif = (pt_tag - pt_probe),
109 pt_ave = (pt_tag + pt_probe) * 0.5;
111 float asym = pt_dif / pt_ave;
113 cout << asym << endl;
115 asymmetry->Fill(asym, pt_ave, absy_probe, ev_w*jw);
◆ Write()
121 TString dirname =
d->GetName();
125 hname.ReplaceAll(dirname +
'_',
"");
130 hname.ReplaceAll(dirname +
'_',
"");
◆ asymmetry
unique_ptr<TH3D> asymmetry |
|
private |
directory in output ROOT file
◆ response
unique_ptr<TH2D> response |
|
private |
The documentation for this class was generated from the following file:
- /builds/cms-analysis/general/DasAnalysisSystem/Core/Installer/Core/JEC/bin/Balance.h