17 #include "TPaveStats.h" 28 EcalPTMTemperaturesPlot() :
cond::payloadInspector::PlotImage<
EcalPTMTemperatures>(
"Ecal PTM Temperatures - 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);
42 align =
new TH2F(
"Ecal PTM Temperatures",
"Key PTMTemperature", 2, 0, 2, NbRows, 0, NbRows);
44 double row = NbRows - 0.5;
46 for (EcalPTMTemperatures::EcalPTMTemperatureMap::const_iterator it =
map.begin(); it !=
map.end(); it++) {
47 uint32_t mapKey = it->first;
48 float val = it->second;
50 align->Fill(0.5, row, mapKey);
59 gStyle->SetPalette(1);
60 gStyle->SetOptStat(0);
61 TCanvas
canvas(
"CC map",
"CC map", 1000, 1000);
67 t1.DrawLatex(0.5, 0.96, Form(
"Ecal PTM Temperatures, IOV %i",
run));
69 TPad* pad =
new TPad(
"pad",
"pad", 0.0, 0.0, 1.0, 0.94);
76 align->GetXaxis()->SetTickLength(0.);
77 align->GetXaxis()->SetLabelSize(0.);
78 align->GetYaxis()->SetTickLength(0.);
79 align->GetYaxis()->SetLabelSize(0.);
82 canvas.SaveAs(ImageName.c_str());
#define PAYLOAD_INSPECTOR_CLASS(CLASS_NAME)
#define PAYLOAD_INSPECTOR_MODULE(PAYLOAD_TYPENAME)
std::map< uint32_t, float > EcalPTMTemperatureMap
void drawTable(int nbRows, int nbColumns)
std::shared_ptr< PayloadType > fetchPayload(const cond::Hash &payloadHash)