17 #include "TPaveStats.h" 34 bool fill(
const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs)
override {
35 auto iov=iovs.front();
37 unsigned int run=std::get<0> (iov);
43 align=
new TH2F(
"Ecal Weight Set",
"WeightsBeforeGainSwitch",10,0,10,NbRows,0,NbRows);
50 for(EcalWeightSet::EcalWeightMatrix::const_iterator it=mat.begin();it != mat.end();it++){
51 align->Fill(cc,rr,*(it));
63 gStyle->SetPalette(1);
64 gStyle->SetOptStat(0);
65 TCanvas
canvas(
"CC map",
"CC map", 1000, 1000);
71 t1.DrawLatex(0.5, 0.96,Form(
"Ecal Weight Set, IOV %i", run));
74 TPad* pad =
new TPad(
"pad",
"pad", 0.0, 0.0, 1.0, 0.94);
81 align->GetXaxis()->SetTickLength(0.);
82 align->GetXaxis()->SetLabelSize(0.);
83 align->GetYaxis()->SetTickLength(0.);
84 align->GetYaxis()->SetLabelSize(0.);
87 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)
math::Matrix< 3, 10 >::type EcalWeightMatrix
void drawTable(int nbRows, int nbColumns)