#include <PtY.h>
◆ PtY()
Constructor.
116 Observable(__FUNCTION__,
"Inclusive jet double differential cross section")
◆ getFiller()
Constructs a filler for the observable.
Reimplemented from Observable.
126 return make_unique<PtYFiller>(*
this, reader);
◆ setLmatrix()
void setLmatrix |
( |
const std::unique_ptr< TH1 > & |
bias, |
|
|
std::unique_ptr< TH2 > & |
L |
|
) |
| |
|
overridevirtual |
See Observable::setLmatrix
Reimplemented from Observable.
131 for (
int iy = 1; iy <=
nYbins; ++iy)
132 for (
int ipt = 1; ipt <=
nGenBins; ++ipt) {
138 BOOST_THROW_EXCEPTION( runtime_error(
"pt = "s +
pt +
" and y = "s + y
139 +
" do not correspond to any bin index"s) );
143 bLeft = i-1, bCenter = i , bRight = i+1,
147 auto get = [&bias](
int i) {
148 auto content = bias->GetBinContent(i);
150 BOOST_THROW_EXCEPTION(
DE::BadInput(
"Expecting only positive entries", bias) );
151 return content > 0 ? 1./content : 0;
154 auto cUp = get(bUp ),
156 cRight = get(bRight),
159 cout << setw(3) << iy << setw(3) << ipt
160 << setw(5) << bCenter << setw(15) << (cUp+cLeft+cRight+cDown)
161 << setw(5) << bUp << setw(15) << -cUp
162 << setw(5) << bLeft << setw(15) << -cLeft
163 << setw(5) << bRight << setw(15) << -cRight
164 << setw(5) << bDown << setw(15) << -cDown <<
'\n';
167 L->SetBinContent(i, bCenter, cUp+cLeft+cRight+cDown );
168 if (cUp > 0) L->SetBinContent(i, bUp , -cUp );
169 if (cLeft > 0) L->SetBinContent(i, bLeft , -cLeft );
170 if (cRight > 0) L->SetBinContent(i, bRight , -cRight );
171 if (cDown > 0) L->SetBinContent(i, bDown , -cDown );
The documentation for this struct was generated from the following files:
- /builds/cms-analysis/general/DasAnalysisSystem/Core/Installer/Core/Unfolding/interface/PtY.h
- /builds/cms-analysis/general/DasAnalysisSystem/Core/Installer/Core/Unfolding/src/PtY.cc