17 #include "TPaveStats.h"
27 EcalTPGWeightIdMapPlot() :
cond::payloadInspector::PlotImage<
EcalTPGWeightIdMap>(
"Ecal TPG Weight Id Map - map ") {
31 bool fill(
const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs)
override {
32 auto iov = iovs.front();
34 unsigned int run = std::get<0>(iov);
42 align =
new TH2F(
"Ecal TPG Weight Id Map",
52 double row = NbRows - 0.5;
54 uint32_t mapKey = it->first;
56 uint32_t w0, w1,
w2,
w3,
w4;
59 align->Fill(0.5, row, mapKey + 1);
60 align->Fill(1.5, row, w0);
61 align->Fill(2.5, row, w1);
72 gStyle->SetPalette(1);
73 gStyle->SetOptStat(0);
74 TCanvas
canvas(
"CC map",
"CC map", 1000, 1000);
80 t1.DrawLatex(0.5, 0.96, Form(
"Ecal TPG Weight Id Map, IOV %i",
run));
82 TPad* pad =
new TPad(
"pad",
"pad", 0.0, 0.0, 1.0, 0.94);
89 align->GetXaxis()->SetTickLength(0.);
90 align->GetXaxis()->SetLabelSize(0.);
91 align->GetYaxis()->SetTickLength(0.);
92 align->GetYaxis()->SetLabelSize(0.);
95 canvas.SaveAs(ImageName.c_str());