17 #include "TPaveStats.h"
28 EcalWeightSetPlot() : cond::payloadInspector::PlotImage<
EcalWeightSet>(
"Ecal Weight Set - map ") {
33 auto iov =
iovs.front();
35 unsigned int run = std::get<0>(iov);
41 align =
new TH2F(
"Ecal Weight Set",
"WeightsBeforeGainSwitch", 10, 0, 10, NbRows, 0, NbRows);
45 double rr = 9.5, cc = 0.5;
47 for (EcalWeightSet::EcalWeightMatrix::const_iterator it = mat.begin(); it != mat.end(); it++) {
48 align->Fill(cc, rr, *(it));
60 gStyle->SetPalette(1);
61 gStyle->SetOptStat(0);
62 TCanvas
canvas(
"CC map",
"CC map", 1000, 1000);
68 t1.DrawLatex(0.5, 0.96, Form(
"Ecal Weight Set, IOV %i", run));
70 TPad* pad =
new TPad(
"pad",
"pad", 0.0, 0.0, 1.0, 0.94);
77 align->GetXaxis()->SetTickLength(0.);
78 align->GetXaxis()->SetLabelSize(0.);
79 align->GetYaxis()->SetTickLength(0.);
80 align->GetYaxis()->SetLabelSize(0.);
83 canvas.SaveAs(ImageName.c_str());
math::Matrix< 3, 10 >::type EcalWeightMatrix
#define PAYLOAD_INSPECTOR_CLASS(CLASS_NAME)
#define PAYLOAD_INSPECTOR_MODULE(PAYLOAD_TYPENAME)
void drawTable(int nbRows, int nbColumns)
std::shared_ptr< PayloadType > fetchPayload(const cond::Hash &payloadHash)