17 #include "TPaveStats.h" 27 EcalTPGWeightIdMapPlot() :
cond::payloadInspector::PlotImage<
EcalTPGWeightIdMap>(
"Ecal TPG Weight Id Map - map ") {
31 bool fill(
const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs)
override {
32 auto iov = iovs.front();
34 unsigned int run = std::get<0>(iov);
42 align =
new TH2F(
"Ecal TPG Weight Id Map",
52 double row = NbRows - 0.5;
54 uint32_t mapKey = it->first;
59 align->Fill(0.5, row, mapKey + 1);
60 align->Fill(1.5, row, w0);
72 gStyle->SetPalette(1);
73 gStyle->SetOptStat(0);
74 TCanvas
canvas(
"CC map",
"CC map", 1000, 1000);
80 t1.DrawLatex(0.5, 0.96, Form(
"Ecal TPG Weight Id Map, IOV %i",
run));
82 TPad* pad =
new TPad(
"pad",
"pad", 0.0, 0.0, 1.0, 0.94);
89 align->GetXaxis()->SetTickLength(0.);
90 align->GetXaxis()->SetLabelSize(0.);
91 align->GetYaxis()->SetTickLength(0.);
92 align->GetYaxis()->SetLabelSize(0.);
95 canvas.SaveAs(ImageName.c_str());
std::map< uint32_t, EcalTPGWeights >::const_iterator EcalTPGWeightMapItr
common ppss p3p6s2 common epss epspn46 common const1 w2
#define PAYLOAD_INSPECTOR_CLASS(CLASS_NAME)
common ppss p3p6s2 common epss epspn46 common const1 w4
std::map< uint32_t, EcalTPGWeights > EcalTPGWeightMap
#define PAYLOAD_INSPECTOR_MODULE(PAYLOAD_TYPENAME)
weight_default_t w1[2000]
common ppss p3p6s2 common epss epspn46 common const1 w3
void drawTable(int nbRows, int nbColumns)
std::shared_ptr< PayloadType > fetchPayload(const cond::Hash &payloadHash)