17 #include "TPaveStats.h" 28 EcalTimeOffsetConstantPlot():
33 bool fill(
const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs)
override {
34 auto iov=iovs.front();
36 unsigned int run=std::get<0> (iov);
42 align=
new TH2F(
"Time Offset Constant [ns]",
"EB EE",2,0,2,NbRows,0,NbRows);
45 double row = NbRows-0.5;
52 gStyle->SetPalette(1);
53 gStyle->SetOptStat(0);
54 TCanvas
canvas(
"CC map",
"CC map", 1000, 1000);
60 t1.DrawLatex(0.5, 0.96,Form(
"Ecal Time Offset Constant, IOV %i", run));
63 TPad* pad =
new TPad(
"pad",
"pad", 0.0, 0.0, 1.0, 0.94);
70 align->GetXaxis()->SetTickLength(0.);
71 align->GetXaxis()->SetLabelSize(0.);
72 align->GetYaxis()->SetTickLength(0.);
73 align->GetYaxis()->SetLabelSize(0.);
76 canvas.SaveAs(ImageName.c_str());
90 EcalTimeOffsetConstantDiff() :
95 bool fill(
const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs)
override {
97 unsigned int run[2], irun = 0;
99 TH2F* align =
new TH2F(
"",
"", 1, 0., 1., 1, 0., 1.);
102 for (
auto const & iov : iovs) {
103 std::shared_ptr < EcalTimeOffsetConstant > payload = fetchPayload(std::get < 1 > (iov));
104 run[irun] = std::get < 0 > (iov);
110 align=
new TH2F(
"Ecal Time Offset Constant [ns]",
"EB EE",2,0,2,NbRows,0,NbRows);
114 double row = NbRows - 0.5;
134 gStyle->SetPalette(1);
135 gStyle->SetOptStat(0);
136 TCanvas
canvas(
"CC map",
"CC map", 1000, 1000);
140 t1.SetTextSize(0.05);
142 t1.DrawLatex(0.5, 0.96,Form(
"Ecal Time Offset Constant, IOV %i - %i", run[1],run[0]));
144 TPad* pad =
new TPad(
"pad",
"pad", 0.0, 0.0, 1.0, 0.94);
151 align->GetXaxis()->SetTickLength(0.);
152 align->GetXaxis()->SetLabelSize(0.);
153 align->GetYaxis()->SetTickLength(0.);
154 align->GetYaxis()->SetLabelSize(0.);
157 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)
void drawTable(int nbRows, int nbColumns)