29 EcalDQMChannelStatusEBMap()
34 bool fill(
const std::vector<std::tuple<cond::Time_t, cond::Hash> > &iovs)
override {
35 TH2F *ebmap =
new TH2F(
37 TH2F *ebmap_coarse =
new TH2F(
42 auto iov = iovs.front();
44 run = std::get<0>(iov);
48 if (
payload->barrelItems().empty())
56 Double_t
weight = (Double_t)(*
payload)[rawid].getStatusCode();
67 ebmap_coarse->Fill(
phi,
eta);
74 gStyle->SetOptStat(0);
76 gStyle->SetFillColor(10);
77 gStyle->SetFrameFillColor(10);
78 gStyle->SetCanvasColor(10);
79 gStyle->SetPadColor(10);
80 gStyle->SetTitleFillColor(0);
81 gStyle->SetStatColor(10);
83 gStyle->SetFrameBorderMode(0);
84 gStyle->SetCanvasBorderMode(0);
85 gStyle->SetPadBorderMode(0);
87 gStyle->SetPalette(1);
89 Double_t stops[NRGBs] = {0.00, 0.34, 0.61, 0.84, 1.00};
90 Double_t
red[NRGBs] = {0.00, 0.00, 0.87, 1.00, 0.51};
91 Double_t green[NRGBs] = {0.00, 0.81, 1.00, 0.20, 0.00};
92 Double_t
blue[NRGBs] = {0.51, 1.00, 0.12, 0.00, 0.00};
93 TColor::CreateGradientColorTable(NRGBs, stops,
red, green,
blue, NCont);
94 gStyle->SetNumberContours(NCont);
96 TCanvas
c1(
"c1",
"c1", 1200, 700);
103 t1.SetTextSize(0.06);
105 ebmap->SetXTitle(
"i#phi");
106 ebmap->SetYTitle(
"i#eta");
107 ebmap->GetXaxis()->SetNdivisions(-418, kFALSE);
108 ebmap->GetYaxis()->SetNdivisions(-1702, kFALSE);
109 ebmap->GetXaxis()->SetLabelSize(0.03);
110 ebmap->GetYaxis()->SetLabelSize(0.03);
111 ebmap->GetXaxis()->SetTickLength(0.01);
112 ebmap->GetYaxis()->SetTickLength(0.01);
113 ebmap->SetMaximum(15);
118 ebmap_coarse->SetMarkerSize(1.3);
119 ebmap_coarse->Draw(
"text,same");
121 t1.SetTextSize(0.05);
122 t1.DrawLatex(0.5, 0.96, Form(
"EB DQM Channel Status, IOV %i",
run));
125 Double_t prop = (Double_t)ebcount /
kEBChannels * 100.;
126 sprintf(txt,
"%d/61200 (%4.3f%%)", ebcount, prop);
128 t1.SetTextSize(0.045);
129 t1.DrawLatex(0.5, 0.91, txt);
132 c1.SaveAs(ImageName.c_str());
142 EcalDQMChannelStatusEEMap()
147 bool fill(
const std::vector<std::tuple<cond::Time_t, cond::Hash> > &iovs)
override {
150 TH2F *eemap_coarse =
new TH2F(
"eemap_coarse",
"", 2, 0, 2 *
IX_MAX, 1, 0,
IY_MAX);
154 unsigned int run = 0;
155 auto iov = iovs.front();
157 run = std::get<0>(iov);
160 if (
payload->endcapItems().empty())
164 for (
int iz = -1; iz < 2; iz = iz + 2)
170 uint32_t rawid = myEEId.
rawId();
178 eemap->Fill(ix - 1, iy - 1,
weight);
181 eemap_coarse->Fill(ix - 1, iy - 1);
188 eemap_coarse->Fill(ix +
IX_MAX - 1, iy - 1);
195 gStyle->SetOptStat(0);
197 gStyle->SetFillColor(10);
198 gStyle->SetFrameFillColor(10);
199 gStyle->SetCanvasColor(10);
200 gStyle->SetPadColor(10);
201 gStyle->SetTitleFillColor(0);
202 gStyle->SetStatColor(10);
204 gStyle->SetFrameBorderMode(0);
205 gStyle->SetCanvasBorderMode(0);
206 gStyle->SetPadBorderMode(0);
208 gStyle->SetPalette(1);
210 Double_t stops[NRGBs] = {0.00, 0.34, 0.61, 0.84, 1.00};
211 Double_t
red[NRGBs] = {0.00, 0.00, 0.87, 1.00, 0.51};
212 Double_t green[NRGBs] = {0.00, 0.81, 1.00, 0.20, 0.00};
213 Double_t
blue[NRGBs] = {0.51, 1.00, 0.12, 0.00, 0.00};
214 TColor::CreateGradientColorTable(NRGBs, stops,
red, green,
blue, NCont);
215 gStyle->SetNumberContours(NCont);
223 eetemp->SetBinContent(
i,
j, 2);
224 eetemp->SetBinContent(
i +
IX_MAX,
j, 2);
229 eetemp->SetFillColor(920);
230 TCanvas
c1(
"c1",
"c1", 1200, 600);
237 t1.SetTextSize(0.06);
239 eetemp->GetXaxis()->SetNdivisions(40, kFALSE);
240 eetemp->GetYaxis()->SetNdivisions(20, kFALSE);
241 eetemp->GetXaxis()->SetLabelSize(0.00);
242 eetemp->GetYaxis()->SetLabelSize(0.00);
243 eetemp->GetXaxis()->SetTickLength(0.01);
244 eetemp->GetYaxis()->SetTickLength(0.01);
245 eetemp->SetMaximum(1.15);
247 eemap->GetXaxis()->SetNdivisions(40, kFALSE);
248 eemap->GetYaxis()->SetNdivisions(20, kFALSE);
249 eemap->GetXaxis()->SetLabelSize(0.00);
250 eemap->GetYaxis()->SetLabelSize(0.00);
251 eemap->GetXaxis()->SetTickLength(0.01);
252 eemap->GetYaxis()->SetTickLength(0.01);
253 eemap->SetMaximum(15);
256 eemap->Draw(
"same,colz");
258 eemap_coarse->SetMarkerSize(2);
259 eemap_coarse->Draw(
"same,text");
262 t1.SetTextSize(0.055);
263 t1.DrawLatex(0.5, 0.96, Form(
"EE DQM Channel Status, IOV %i",
run));
266 Double_t prop = (Double_t)eecount /
kEEChannels * 100.;
267 sprintf(txt,
"%d/14648 (%4.3f%%)", eecount, prop);
269 t1.SetTextSize(0.045);
270 t1.DrawLatex(0.5, 0.91, txt);
272 t1.SetTextSize(0.05);
273 t1.DrawLatex(0.14, 0.84,
"EE-");
274 t1.DrawLatex(0.86, 0.84,
"EE+");
277 c1.SaveAs(ImageName.c_str());
287 EcalDQMChannelStatusEBDiff()
291 bool fill(
const std::vector<std::tuple<cond::Time_t, cond::Hash> > &iovs)
override {
296 for (
auto const &iov : iovs) {
300 if (
payload->barrelItems().empty())
303 run[irun] = std::get<0>(iov);
312 status[cellid] = (*payload)[rawid].getStatusCode();
314 unsigned int new_status = (*payload)[rawid].getStatusCode();
315 if (new_status !=
status[cellid]) {
318 if (new_status >
status[cellid])
330 ebmap->Fill(
phi,
eta, 0.05 + 0.95 * (tmp3 > 0));
332 ebmap_coarse->Fill(
phi,
eta, tmp3);
342 gStyle->SetOptStat(0);
344 gStyle->SetFillColor(10);
345 gStyle->SetFrameFillColor(10);
346 gStyle->SetCanvasColor(10);
347 gStyle->SetPadColor(10);
348 gStyle->SetTitleFillColor(0);
349 gStyle->SetStatColor(10);
351 gStyle->SetFrameBorderMode(0);
352 gStyle->SetCanvasBorderMode(0);
353 gStyle->SetPadBorderMode(0);
355 gStyle->SetPalette(1);
357 Double_t stops[NRGBs] = {0.00, 0.34, 0.61, 0.84, 1.00};
358 Double_t
red[NRGBs] = {0.00, 0.00, 0.87, 1.00, 0.51};
359 Double_t green[NRGBs] = {0.00, 0.81, 1.00, 0.20, 0.00};
360 Double_t
blue[NRGBs] = {0.51, 1.00, 0.12, 0.00, 0.00};
361 TColor::CreateGradientColorTable(NRGBs, stops,
red, green,
blue, NCont);
362 gStyle->SetNumberContours(NCont);
364 TCanvas
c1(
"c1",
"c1", 1200, 700);
371 t1.SetTextSize(0.06);
373 ebmap->SetXTitle(
"i#phi");
374 ebmap->SetYTitle(
"i#eta");
375 ebmap->GetXaxis()->SetNdivisions(-418, kFALSE);
376 ebmap->GetYaxis()->SetNdivisions(-1702, kFALSE);
377 ebmap->GetXaxis()->SetLabelSize(0.03);
378 ebmap->GetYaxis()->SetLabelSize(0.03);
379 ebmap->GetXaxis()->SetTickLength(0.01);
380 ebmap->GetYaxis()->SetTickLength(0.01);
381 ebmap->SetMaximum(1.15);
386 ebmap_coarse->SetMarkerSize(1.3);
387 ebmap_coarse->Draw(
"text,same");
389 t1.SetTextSize(0.05);
390 t1.DrawLatex(0.5, 0.96, Form(
"EB DQM Channel Status (Diff), IOV: %i vs %i",
run[0],
run[1]));
393 sprintf(txt,
"Net difference: %d channel(s)", ebcount);
395 t1.SetTextSize(0.045);
396 t1.DrawLatex(0.5, 0.91, txt);
399 c1.SaveAs(ImageName.c_str());
409 EcalDQMChannelStatusEEDiff()
414 bool fill(
const std::vector<std::tuple<cond::Time_t, cond::Hash> > &iovs)
override {
416 TH2F *eemap_coarse =
new TH2F(
"eemap_coarse",
"", 2, 0, 2 *
IX_MAX, 1, 0,
IY_MAX);
420 for (
auto const &iov : iovs) {
422 run[irun] = std::get<0>(iov);
424 if (
payload->endcapItems().empty())
428 for (
int iz = -1; iz < 2; iz = iz + 2)
433 uint32_t rawid = myEEId.
rawId();
440 status[channel] = (*payload)[rawid].getStatusCode();
442 unsigned int new_status = (*payload)[rawid].getStatusCode();
443 if (new_status !=
status[channel]) {
445 if (new_status >
status[channel])
451 eemap->Fill(ix - 1, iy - 1, 0.05 + 0.95 * (tmp3 > 0));
453 eemap_coarse->Fill(ix - 1, iy - 1, tmp3);
455 eemap->Fill(ix +
IX_MAX - 1, iy - 1, 0.05 + 0.95 * (tmp3 > 0));
457 eemap_coarse->Fill(ix +
IX_MAX - 1, iy - 1, tmp3);
466 gStyle->SetOptStat(0);
468 gStyle->SetFillColor(10);
469 gStyle->SetFrameFillColor(10);
470 gStyle->SetCanvasColor(10);
471 gStyle->SetPadColor(10);
472 gStyle->SetTitleFillColor(0);
473 gStyle->SetStatColor(10);
475 gStyle->SetFrameBorderMode(0);
476 gStyle->SetCanvasBorderMode(0);
477 gStyle->SetPadBorderMode(0);
479 gStyle->SetPalette(1);
481 Double_t stops[NRGBs] = {0.00, 0.34, 0.61, 0.84, 1.00};
482 Double_t
red[NRGBs] = {0.00, 0.00, 0.87, 1.00, 0.51};
483 Double_t green[NRGBs] = {0.00, 0.81, 1.00, 0.20, 0.00};
484 Double_t
blue[NRGBs] = {0.51, 1.00, 0.12, 0.00, 0.00};
485 TColor::CreateGradientColorTable(NRGBs, stops,
red, green,
blue, NCont);
486 gStyle->SetNumberContours(NCont);
492 eetemp->SetBinContent(
i,
j, 2);
493 eetemp->SetBinContent(
i +
IX_MAX,
j, 2);
498 eetemp->SetFillColor(920);
499 TCanvas
c1(
"c1",
"c1", 1200, 600);
506 t1.SetTextSize(0.06);
508 eetemp->GetXaxis()->SetNdivisions(40, kFALSE);
509 eetemp->GetYaxis()->SetNdivisions(20, kFALSE);
510 eetemp->GetXaxis()->SetLabelSize(0.00);
511 eetemp->GetYaxis()->SetLabelSize(0.00);
512 eetemp->GetXaxis()->SetTickLength(0.01);
513 eetemp->GetYaxis()->SetTickLength(0.01);
514 eetemp->SetMaximum(1.15);
516 eemap->GetXaxis()->SetNdivisions(40, kFALSE);
517 eemap->GetYaxis()->SetNdivisions(20, kFALSE);
518 eemap->GetXaxis()->SetLabelSize(0.00);
519 eemap->GetYaxis()->SetLabelSize(0.00);
520 eemap->GetXaxis()->SetTickLength(0.01);
521 eemap->GetYaxis()->SetTickLength(0.01);
522 eemap->SetMaximum(1.15);
525 eemap->Draw(
"same,colz");
527 eemap_coarse->SetMarkerSize(2);
528 eemap_coarse->Draw(
"same,text");
531 t1.SetTextSize(0.055);
532 t1.DrawLatex(0.5, 0.96, Form(
"EE DQM Channel Status (Diff), IOV %i vs %i",
run[0],
run[1]));
535 sprintf(txt,
"Net difference: %d channel(s)", eecount);
537 t1.SetTextSize(0.045);
538 t1.DrawLatex(0.5, 0.91, txt);
540 t1.SetTextSize(0.05);
541 t1.DrawLatex(0.14, 0.84,
"EE-");
542 t1.DrawLatex(0.86, 0.84,
"EE+");
545 c1.SaveAs(ImageName.c_str());