152 auto tag = PlotBase::getTag<0>();
153 auto iov =
tag.iovs.front();
155 unsigned int run = std::get<0>(iov);
159 if (!
payload->getRecords().empty() &&
160 payload->getDefinition().getFormulaString().compare(
"") == 0)
165 if (!
record.getVariablesRange().empty() &&
payload->getDefinition().getVariableName(0) ==
"JetPt" &&
166 record.getVariablesRange()[0].is_inside(100.)) {
167 if (
record.getBinsRange().size() > 1 &&
payload->getDefinition().getBinName(1) ==
"Rho" &&
168 record.getBinsRange()[1].is_inside(20.)) {
169 if (!
record.getBinsRange().empty() &&
payload->getDefinition().getBinName(0) ==
"JetEta") {
174 if (
record.getBinsRange()[0].is_inside(x_axis)) {
175 std::vector<double>
var = {100.};
176 std::vector<double> param;
177 for (
size_t i = 0;
i <
record.getParametersValues().size();
i++) {
178 double par =
record.getParametersValues()[
i];
179 param.push_back(par);
181 float res =
f.evaluate(
var, param);
182 resol_eta->SetBinContent(
idx + 1,
res);
189 if (!
record.getBinsRange().empty() &&
payload->getDefinition().getBinName(0) ==
"JetEta" &&
190 record.getBinsRange()[0].is_inside(2.30)) {
191 if (
record.getBinsRange().size() > 1 &&
payload->getDefinition().getBinName(1) ==
"Rho" &&
192 record.getBinsRange()[1].is_inside(15.)) {
193 if (!
record.getVariablesRange().empty() &&
payload->getDefinition().getVariableName(0) ==
"JetPt") {
198 if (
record.getVariablesRange()[0].is_inside(x_axis)) {
199 std::vector<double>
var = {x_axis};
200 std::vector<double> param;
201 for (
size_t i = 0;
i <
record.getParametersValues().size();
i++) {
202 double par =
record.getParametersValues()[
i];
203 param.push_back(par);
205 float res =
f.evaluate(
var, param);
206 resol_pt->SetBinContent(
idx + 1,
res);
214 gStyle->SetOptStat(0);
215 gStyle->SetLabelFont(42,
"XYZ");
216 gStyle->SetLabelSize(0.05,
"XYZ");
217 gStyle->SetFrameLineWidth(3);
220 TCanvas
canvas(
"Jet Resolution Summary",
title.c_str(), 800, 1200);
224 resol_eta->SetTitle(
tagname.c_str());
225 resol_eta->SetXTitle(
"#eta");
226 resol_eta->SetYTitle(
"Resolution");
227 resol_eta->SetLineWidth(3);
231 resol_pt->SetXTitle(
"p_{T} [GeV]");
232 resol_pt->SetYTitle(
"Resolution");
233 resol_pt->SetLineWidth(3);
234 resol_pt->Draw(
"][");
std::string m_imageFileName
std::string title() const
std::shared_ptr< JetResolutionObject > fetchPayload(const cond::Hash &payloadHash)