219 auto tag = cond::payloadInspector::PlotBase::getTag<0>();
221 auto iov =
tag.iovs.front();
223 gStyle->SetHistMinimumZero(kTRUE);
227 TCanvas
canvas(
"Beam Spot Parameters Summary",
"BeamSpot Parameters summary",
isOnline_ ? 1500 : 1000, 1000);
233 canvas.cd(1)->SetTopMargin(0.05);
234 canvas.cd(1)->SetBottomMargin(0.06);
235 canvas.cd(1)->SetLeftMargin(0.15);
236 canvas.cd(1)->SetRightMargin(0.03);
240 auto h2_BSParameters = std::make_unique<TH2F>(
"Parameters",
"", 2, 0.0, 2.0, 8, 0, 8.);
241 h2_BSParameters->SetStats(
false);
294 h2_BSParameters->GetXaxis()->SetBinLabel(1,
"Value");
295 h2_BSParameters->GetXaxis()->SetBinLabel(2,
"Error");
297 unsigned int yBin = 8;
299 parameters param = static_cast<parameters>(foo);
301 h2_BSParameters->GetYaxis()->SetBinLabel(
yBin, theLabel.c_str());
302 h2_BSParameters->SetBinContent(1,
yBin, cutFunctor(param,
false));
303 h2_BSParameters->SetBinContent(2,
yBin, cutFunctor(param,
true));
307 h2_BSParameters->GetXaxis()->LabelsOption(
"h");
308 h2_BSParameters->GetYaxis()->SetLabelSize(0.05);
309 h2_BSParameters->GetXaxis()->SetLabelSize(0.05);
310 h2_BSParameters->SetMarkerSize(1.5);
311 h2_BSParameters->Draw(
"TEXT");
316 ltx.SetTextSize(0.030);
318 ltx.SetTextSize(0.025);
320 ltx.SetTextAlign(11);
325 gPad->GetLeftMargin(),
326 1 - gPad->GetTopMargin() + 0.01,
327 (
tagname +
" IOV: #color[4]{" + std::to_string(runLS.first) +
"," + std::to_string(runLS.second) +
"}")
332 canvas.cd(2)->SetTopMargin(0.05);
333 canvas.cd(2)->SetBottomMargin(0.06);
334 canvas.cd(2)->SetLeftMargin(0.15);
335 canvas.cd(2)->SetRightMargin(0.03);
341 for (
int bin = 1;
bin <= extras->GetNbinsY();
bin++) {
343 << extras->GetYaxis()->GetBinLabel(
bin) <<
": " << extras->GetBinContent(1,
bin) <<
"\n";
346 extras->Draw(
"TEXT");
349 gPad->GetLeftMargin(),
350 1 - gPad->GetTopMargin() + 0.01,
351 (
tagname +
" IOV: #color[4]{" + std::to_string(runLS.first) +
"," + std::to_string(runLS.second) +
"}")