17 #include "TPaveStats.h" 27 EcalTPGWeightIdMapPlot():
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);
44 align =
new TH2F(
"Ecal TPG Weight Id Map",
"MapKey w0 w1 w2 w3 w4",
45 6, 0, 6, NbRows, 0, NbRows);
47 double row = NbRows - 0.5;
50 uint32_t mapKey=it->first;
55 align->Fill(0.5, row, mapKey+1);
56 align->Fill(1.5, row, w0);
57 align->Fill(2.5, row, w1);
58 align->Fill(3.5, row, w2);
59 align->Fill(4.5, row, w3);
60 align->Fill(5.5, row, w4);
70 gStyle->SetPalette(1);
71 gStyle->SetOptStat(0);
72 TCanvas
canvas(
"CC map",
"CC map", 1000, 1000);
78 t1.DrawLatex(0.5, 0.96,Form(
"Ecal TPG Weight Id Map, IOV %i", run));
80 TPad* pad =
new TPad(
"pad",
"pad", 0.0, 0.0, 1.0, 0.94);
87 align->GetXaxis()->SetTickLength(0.);
88 align->GetXaxis()->SetLabelSize(0.);
89 align->GetYaxis()->SetTickLength(0.);
90 align->GetYaxis()->SetLabelSize(0.);
93 canvas.SaveAs(ImageName.c_str());
std::map< uint32_t, EcalTPGWeights >::const_iterator EcalTPGWeightMapItr
common ppss p3p6s2 common epss epspn46 common const1 w2
std::shared_ptr< PayloadType > fetchPayload(const cond::Hash &payloadHash)
void getValues(uint32_t &w0, uint32_t &w1, uint32_t &w2, uint32_t &w3, uint32_t &w4) const
#define PAYLOAD_INSPECTOR_CLASS(CLASS_NAME)
common ppss p3p6s2 common epss epspn46 common const1 w4
virtual bool fill(const std::vector< std::tuple< cond::Time_t, cond::Hash > > &iovs)=0
std::map< uint32_t, EcalTPGWeights > EcalTPGWeightMap
#define PAYLOAD_INSPECTOR_MODULE(PAYLOAD_TYPENAME)
void setSingleIov(bool flag)
common ppss p3p6s2 common epss epspn46 common const1 w3
void drawTable(int nbRows, int nbColumns)