17 #include "TPaveStats.h"
33 bool fill(
const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs)
override {
34 auto iov=iovs.front();
36 unsigned int run=std::get<0> (iov);
43 align=
new TH2F(
"Ecal PTM Temperatures",
"EcalXtalGroupId EcalTDCId EcalWeightSet",
44 3,0,3,NbRows,0,NbRows);
46 double row = NbRows-0.5;
48 for (EcalTBWeights::EcalPTMTemperatureMap::const_iterator it =
map.begin();
49 it !=
map.end();it++) {
63 gStyle->SetPalette(1);
64 gStyle->SetOptStat(0);
65 TCanvas
canvas(
"CC map",
"CC map", 1000, 1000);
71 t1.DrawLatex(0.5, 0.96,Form(
"Ecal TBWeights, IOV %i",
run));
74 TPad* pad =
new TPad(
"pad",
"pad", 0.0, 0.0, 1.0, 0.94);
81 for (
int i = 1;
i < NbRows;
i++) {
82 double y = (double)
i;
83 l =
new TLine(0.,
y, 3.,
y);
87 for (
int i = 1;
i < 3;
i++) {
88 double x = (double)
i;
89 double y = (double) NbRows;
90 l =
new TLine(
x, 0.,
x,
y);
94 align->GetXaxis()->SetTickLength(0.);
95 align->GetXaxis()->SetLabelSize(0.);
96 align->GetYaxis()->SetTickLength(0.);
97 align->GetYaxis()->SetLabelSize(0.);
100 canvas.SaveAs(ImageName.c_str());