17 #include "TPaveStats.h"
27 EcalTPGLutIdMapPlot() :
cond::payloadInspector::PlotImage<
EcalTPGLutIdMap>(
"Ecal TPG LutId 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 LutId Map",
43 "EB LutEcalTPGLut EE "
52 double row = NbRows - 0.5;
56 uint32_t mapKey = it->first;
58 const unsigned int* lut = (ecaltpgLut.
getLut());
60 for (
int i = 0;
i < 30;
i++) {
61 if (
i == (NbRows / 2 - 1))
62 align->Fill(0.5 + columnBase, row, mapKey + 1);
64 align->Fill(1.5 + columnBase, row, *(lut +
i));
75 gStyle->SetPalette(1);
76 gStyle->SetOptStat(0);
77 TCanvas
canvas(
"CC map",
"CC map", 1000, 1000);
83 t1.DrawLatex(0.5, 0.96, Form(
"ECAL TPG LutId Map, IOV %i",
run));
85 TPad* pad =
new TPad(
"pad",
"pad", 0.0, 0.0, 1.0, 0.94);
91 for (
int i = 1;
i < NbRows;
i++) {
93 l =
new TLine(1.,
y, 2.,
y);
97 for (
int i = 1;
i < NbRows;
i++) {
99 l =
new TLine(3.,
y, 4.,
y);
103 for (
int i = 1;
i < 4;
i++) {
104 double x = (double)
i;
105 double y = (double)NbRows;
106 l =
new TLine(
x, 0.,
x,
y);
110 align->GetXaxis()->SetTickLength(0.);
111 align->GetXaxis()->SetLabelSize(0.);
112 align->GetYaxis()->SetTickLength(0.);
113 align->GetYaxis()->SetLabelSize(0.);
116 canvas.SaveAs(ImageName.c_str());