46 EcalLaserAPDPNRatiosRefEBMap()
56 Base::setSingleIov(
true);
60 bool fill()
override {
61 auto tag = PlotBase::getTag<0>();
62 for (
auto const& iov :
tag.iovs) {
63 std::shared_ptr<EcalLaserAPDPNRatiosRef>
payload = Base::fetchPayload(std::get<1>(iov));
66 if (
payload->barrelItems().empty())
70 fillWithValue(
iphi, 0, -1);
77 if (value_ptr ==
payload->end())
101 int EEhistSplit = 20;
104 EcalLaserAPDPNRatiosRefEEMap()
114 Base::setSingleIov(
true);
117 bool fill()
override {
118 auto tag = PlotBase::getTag<0>();
119 for (
auto const& iov :
tag.iovs) {
120 std::shared_ptr<EcalLaserAPDPNRatiosRef>
payload = Base::fetchPayload(std::get<1>(iov));
122 if (
payload->endcapItems().empty())
128 fillWithValue(ix, iy, -1);
134 if (value_ptr ==
payload->end())
139 if (myEEId.zside() == -1)
140 fillWithValue(myEEId.ix(), myEEId.iy(),
weight);
142 fillWithValue(myEEId.ix() +
IX_MAX + EEhistSplit, myEEId.iy(),
weight);
157 EcalLaserAPDPNRatiosRefPlot()
162 bool fill(
const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs)
override {
170 auto iov = iovs.front();
171 std::shared_ptr<EcalLaserAPDPNRatiosRef>
payload = fetchPayload(std::get<1>(iov));
172 unsigned int run = std::get<0>(iov);
175 if (
payload->barrelItems().empty())
178 fillEBMap_SingleIOV<EcalLaserAPDPNRatiosRef>(
payload,
barrel);
180 if (
payload->endcapItems().empty())
183 fillEEMap_SingleIOV<EcalLaserAPDPNRatiosRef>(
payload, endc_m, endc_p);
187 gStyle->SetPalette(1);
188 gStyle->SetOptStat(0);
189 TCanvas
canvas(
"CC map",
"CC map", 1600, 450);
193 t1.SetTextSize(0.04);
194 t1.DrawLatex(0.5, 0.96, Form(
"Ecal Laser APDPN Ratios Ref, IOV %i",
run));
196 float xmi[3] = {0.0, 0.24, 0.76};
197 float xma[3] = {0.24, 0.76, 1.00};
198 TPad** pad =
new TPad*;
200 pad[
obj] =
new TPad(Form(
"p_%i",
obj), Form(
"p_%i",
obj), xmi[
obj], 0.0, xma[
obj], 0.94);
215 canvas.SaveAs(ImageName.c_str());
225 EcalLaserAPDPNRatiosRefDiff()
230 bool fill(
const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs)
override {
237 float pEBmin, pEEmin, pEBmax, pEEmax;
243 unsigned int run[2], irun = 0;
245 for (
auto const& iov : iovs) {
246 std::shared_ptr<EcalLaserAPDPNRatiosRef>
payload = fetchPayload(std::get<1>(iov));
247 run[irun] = std::get<0>(iov);
250 if (
payload->barrelItems().empty())
253 fillEBMap_DiffIOV<EcalLaserAPDPNRatiosRef>(
payload,
barrel, irun, pEB, pEBmin, pEBmax);
255 if (
payload->endcapItems().empty())
258 fillEEMap_DiffIOV<EcalLaserAPDPNRatiosRef>(
payload, endc_m, endc_p, irun, pEE, pEEmin, pEEmax);
265 gStyle->SetPalette(1);
266 gStyle->SetOptStat(0);
267 TCanvas
canvas(
"CC map",
"CC map", 1600, 450);
271 t1.SetTextSize(0.04);
272 t1.DrawLatex(0.5, 0.96, Form(
"Ecal Laser APDPN Ratios Ref Diff, IOV %i - %i",
run[1],
run[0]));
274 float xmi[3] = {0.0, 0.24, 0.76};
275 float xma[3] = {0.24, 0.76, 1.00};
276 TPad** pad =
new TPad*;
279 pad[
obj] =
new TPad(Form(
"p_%i",
obj), Form(
"p_%i",
obj), xmi[
obj], 0.0, xma[
obj], 0.94);
284 DrawEE(endc_m, pEEmin, pEEmax);
288 DrawEE(endc_p, pEEmin, pEEmax);
291 canvas.SaveAs(ImageName.c_str());
301 EcalLaserAPDPNRatiosRefSummaryPlot()
306 bool fill(
const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs)
override {
307 auto iov = iovs.front();
308 std::shared_ptr<EcalLaserAPDPNRatiosRef>
payload = fetchPayload(std::get<1>(iov));
309 unsigned int run = std::get<0>(iov);
315 align =
new TH2F(
"",
"", 0, 0, 0, 0, 0, 0);
317 float mean_x_EB = 0.0f;
318 float mean_x_EE = 0.0f;
326 payload->summary(mean_x_EB, rms_EB, num_x_EB, mean_x_EE, rms_EE, num_x_EE);
328 align,
"Ecal Laser APDPN Ratios Ref", mean_x_EB, rms_EB, num_x_EB, mean_x_EE, rms_EE, num_x_EE);
333 gStyle->SetPalette(1);
334 gStyle->SetOptStat(0);
335 TCanvas
canvas(
"CC map",
"CC map", 1000, 1000);
339 t1.SetTextSize(0.04);
341 t1.DrawLatex(0.5, 0.96, Form(
"Ecal Laser APDPN Ratios Ref Summary, IOV %i",
run));
343 TPad* pad =
new TPad(
"pad",
"pad", 0.0, 0.0, 1.0, 0.94);
351 canvas.SaveAs(ImageName.c_str());