17 #include "TPaveStats.h" 27 EcalTPGPhysicsConstPlot()
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);
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);
60 align->Fill(2.5, row,
item.ttf_threshold_Low);
61 align->Fill(3.5, row,
item.ttf_threshold_High);
62 align->Fill(4.5, row,
item.FG_lowThreshold);
63 align->Fill(5.5, row,
item.FG_highThreshold);
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)
std::map< uint32_t, EcalTPGPhysicsConst::Item > EcalTPGPhysicsConstMap
void drawTable(int nbRows, int nbColumns)
std::shared_ptr< PayloadType > fetchPayload(const cond::Hash &payloadHash)