29 EcalWeightXtalGroupsPlot()
34 bool fill(
const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs)
override {
39 auto iov = iovs.front();
41 unsigned int run = std::get<0>(iov);
44 if (
payload->barrelItems().empty())
50 std::vector<EcalXtalGroupId>::const_iterator value_ptr =
payload->find(rawid);
52 if (value_ptr ==
payload->end())
55 unsigned int weight = (
unsigned int)((*value_ptr).id());
67 if (
payload->endcapItems().empty())
71 for (
int iz = -1; iz < 2; iz = iz + 2)
76 uint32_t rawid = myEEId.
rawId();
78 std::vector<EcalXtalGroupId>::const_iterator value_ptr =
payload->find(rawid);
80 if (value_ptr ==
payload->end())
83 unsigned int weight = (
unsigned int)((*value_ptr).id());
86 endc_p->Fill(ix, iy,
weight);
88 endc_m->Fill(ix, iy,
weight);
92 gStyle->SetPalette(1);
93 gStyle->SetOptStat(0);
94 TCanvas
canvas(
"CC map",
"CC map", 1600, 450);
99 t1.DrawLatex(0.5, 0.96, Form(
"Ecal Weight Xtal Groups, IOV %i",
run));
101 float xmi[3] = {0.0, 0.24, 0.76};
102 float xma[3] = {0.24, 0.76, 1.00};
103 TPad** pad =
new TPad*;
105 pad[
obj] =
new TPad(Form(
"p_%i",
obj), Form(
"p_%i",
obj), xmi[
obj], 0.0, xma[
obj], 0.94);
120 canvas.SaveAs(ImageName.c_str());