#include <ZPtY.h>
◆ ZPtY()
Constructor.
115 Observable(__FUNCTION__,
"Z boson dsigma/dpT dy")
◆ getFiller()
Constructs a filler for the observable.
Reimplemented from Observable.
125 return make_unique<ZPtYFiller>(*
this, flow);
◆ setLmatrix()
void setLmatrix |
( |
const std::unique_ptr< TH1 > & |
bias, |
|
|
std::unique_ptr< TH2 > & |
L |
|
) |
| |
|
overridevirtual |
See Observable::setLmatrix
- Todo:
- some docs... this is quite obscure
- Todo:
- Most existing L-matrices follow a similar structure, this should be implemented in a function instead of repeating the same code
Reimplemented from Observable.
136 auto y = (
yBins.at(iy - 1) +
yBins.at(iy)) / 2,
140 BOOST_THROW_EXCEPTION( logic_error(
141 Form(
"pt = %f and y = %f do not correspond to any bin index",
pt, y)) );
145 bLeft = i-1, bCenter = i , bRight = i+1,
149 auto get = [&bias](
int i) {
150 auto content = bias->GetBinContent(i);
152 BOOST_THROW_EXCEPTION(
DE::BadInput(
"Expecting only positive entries", bias) );
153 return content > 0 ? 1./content : 0;
156 auto cUp = get(bUp ),
158 cRight = get(bRight),
161 cout << setw(3) << iy << setw(3) << ipt
162 << setw(5) << bCenter << setw(15) << (cUp+cLeft+cRight+cDown)
163 << setw(5) << bUp << setw(15) << -cUp
164 << setw(5) << bLeft << setw(15) << -cLeft
165 << setw(5) << bRight << setw(15) << -cRight
166 << setw(5) << bDown << setw(15) << -cDown <<
'\n';
169 L->SetBinContent(i, bCenter, cUp+cLeft+cRight+cDown );
170 if (cUp > 0) L->SetBinContent(i, bUp , -cUp );
171 if (cLeft > 0) L->SetBinContent(i, bLeft , -cLeft );
172 if (cRight > 0) L->SetBinContent(i, bRight , -cRight );
173 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/ZPtY.h
- /builds/cms-analysis/general/DasAnalysisSystem/Core/Installer/Core/Unfolding/src/ZPtY.cc