17 #include "TPaveStats.h"
28 EcalSampleMaskPlot() :
cond::payloadInspector::PlotImage<
EcalSampleMask>(
"ECAL Sample Mask - map ") {
32 bool fill(
const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs)
override {
33 auto iov = iovs.front();
35 unsigned int run = std::get<0>(iov);
41 align =
new TH2F(
"Ecal Sample Mask",
"EB EE", 2, 0, 2, NbRows, 0, NbRows);
44 double row = NbRows - 0.5;
51 gStyle->SetPalette(1);
52 gStyle->SetOptStat(0);
53 TCanvas
canvas(
"CC map",
"CC map", 1000, 1000);
59 t1.DrawLatex(0.5, 0.96, Form(
"Ecal Sample Mask, IOV %i",
run));
61 TPad* pad =
new TPad(
"pad",
"pad", 0.0, 0.0, 1.0, 0.94);
68 align->GetXaxis()->SetTickLength(0.);
69 align->GetXaxis()->SetLabelSize(0.);
70 align->GetYaxis()->SetTickLength(0.);
71 align->GetYaxis()->SetLabelSize(0.);
74 canvas.SaveAs(ImageName.c_str());