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);
44 align =
new TH2F(
"TPGPhysicsConstant",
"mapKey EtSat ttf_threshold_Low ttf_threshold_High FG_lowThreshold FG_highThreshold FG_lowRatio FG_highRatio",
45 8, 0, 8, NbRows, 0, NbRows);
47 double row = NbRows - 0.5;
48 for (std::map<uint32_t, EcalTPGPhysicsConst::Item>::const_iterator it = map.begin();
49 it != map.end();it++) {
51 uint32_t mapKey=it->first;
54 align->Fill(0.5, row, mapKey);
55 align->Fill(1.5, row, item.
EtSat);
71 gStyle->SetPalette(1);
72 gStyle->SetOptStat(0);
73 TCanvas
canvas(
"CC map",
"CC map", 1000, 1000);
79 t1.DrawLatex(0.5, 0.96,Form(
"ECAL TPG Physics Constant, IOV %i", run));
81 TPad* pad =
new TPad(
"pad",
"pad", 0.0, 0.0, 1.0, 0.94);
88 align->GetXaxis()->SetTickLength(0.);
89 align->GetXaxis()->SetLabelSize(0.);
90 align->GetYaxis()->SetTickLength(0.);
91 align->GetYaxis()->SetLabelSize(0.);
94 canvas.SaveAs(ImageName.c_str());
std::shared_ptr< PayloadType > fetchPayload(const cond::Hash &payloadHash)
#define PAYLOAD_INSPECTOR_CLASS(CLASS_NAME)
virtual bool fill(const std::vector< std::tuple< cond::Time_t, cond::Hash > > &iovs)=0
#define PAYLOAD_INSPECTOR_MODULE(PAYLOAD_TYPENAME)
void setSingleIov(bool flag)
double ttf_threshold_High
std::map< uint32_t, EcalTPGPhysicsConst::Item > EcalTPGPhysicsConstMap
void drawTable(int nbRows, int nbColumns)