17 #include "TPaveStats.h"
27 EcalTPGPhysicsConstPlot()
28 : cond::payloadInspector::PlotImage<
EcalTPGPhysicsConst>(
"ECAL TPG Physics Constant - map ") {
33 auto iov =
iovs.front();
35 unsigned int run = std::get<0>(iov);
43 align =
new TH2F(
"TPGPhysicsConstant",
44 "mapKey EtSat ttf_threshold_Low ttf_threshold_High FG_lowThreshold "
45 " FG_highThreshold FG_lowRatio FG_highRatio",
53 double row = NbRows - 0.5;
54 for (std::map<uint32_t, EcalTPGPhysicsConst::Item>::const_iterator it = map.begin(); it != map.end(); it++) {
55 uint32_t mapKey = it->first;
58 align->Fill(0.5, row, mapKey);
59 align->Fill(1.5, row, item.
EtSat);
73 gStyle->SetPalette(1);
74 gStyle->SetOptStat(0);
75 TCanvas
canvas(
"CC map",
"CC map", 1000, 1000);
81 t1.DrawLatex(0.5, 0.96, Form(
"ECAL TPG Physics Constant, IOV %i", run));
83 TPad* pad =
new TPad(
"pad",
"pad", 0.0, 0.0, 1.0, 0.94);
90 align->GetXaxis()->SetTickLength(0.);
91 align->GetXaxis()->SetLabelSize(0.);
92 align->GetYaxis()->SetTickLength(0.);
93 align->GetYaxis()->SetLabelSize(0.);
96 canvas.SaveAs(ImageName.c_str());
#define PAYLOAD_INSPECTOR_CLASS(CLASS_NAME)
#define PAYLOAD_INSPECTOR_MODULE(PAYLOAD_TYPENAME)
double ttf_threshold_High
std::map< uint32_t, EcalTPGPhysicsConst::Item > EcalTPGPhysicsConstMap
void drawTable(int nbRows, int nbColumns)
std::shared_ptr< PayloadType > fetchPayload(const cond::Hash &payloadHash)