46 EcalLaserAlphasEBMap()
56 Base::setSingleIov(
true);
60 bool fill()
override {
61 auto tag = PlotBase::getTag<0>();
62 for (
auto const& iov :
tag.iovs) {
66 if (
payload->barrelItems().empty())
77 if (value_ptr ==
payload->end())
101 int EEhistSplit = 20;
104 EcalLaserAlphasEEMap()
114 Base::setSingleIov(
true);
117 bool fill()
override {
118 auto tag = PlotBase::getTag<0>();
119 for (
auto const& iov :
tag.iovs) {
122 if (
payload->endcapItems().empty())
134 if (value_ptr ==
payload->end())
139 if (myEEId.zside() == -1)
157 EcalLaserAlphasPlot() :
cond::payloadInspector::PlotImage<
EcalLaserAlphas>(
"Ecal Laser Alphas - map ") {
161 bool fill(
const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs)
override {
166 auto iov = iovs.front();
168 unsigned int run = std::get<0>(iov);
171 if (
payload->barrelItems().empty())
176 if (
payload->endcapItems().empty())
179 fillEEMap_SingleIOV<EcalLaserAlphas>(
payload, endc_m, endc_p);
183 gStyle->SetPalette(1);
184 gStyle->SetOptStat(0);
185 TCanvas
canvas(
"CC map",
"CC map", 1600, 450);
189 t1.SetTextSize(0.05);
190 t1.DrawLatex(0.5, 0.96, Form(
"Ecal Laser Alphas, IOV %i",
run));
192 float xmi[3] = {0.0, 0.24, 0.76};
193 float xma[3] = {0.24, 0.76, 1.00};
194 TPad** pad =
new TPad*;
196 pad[
obj] =
new TPad(Form(
"p_%i",
obj), Form(
"p_%i",
obj), xmi[
obj], 0.0, xma[
obj], 0.94);
211 canvas.SaveAs(ImageName.c_str());
221 EcalLaserAlphasDiff() :
cond::payloadInspector::PlotImage<
EcalLaserAlphas>(
"Ecal Laser Alphas difference ") {
225 bool fill(
const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs)
override {
229 float pEBmin, pEEmin, pEBmax, pEEmax;
235 unsigned int run[2], irun = 0;
237 for (
auto const& iov : iovs) {
239 run[irun] = std::get<0>(iov);
242 if (
payload->barrelItems().empty())
245 fillEBMap_DiffIOV<EcalLaserAlphas>(
payload,
barrel, irun, pEB, pEBmin, pEBmax);
247 if (
payload->endcapItems().empty())
250 fillEEMap_DiffIOV<EcalLaserAlphas>(
payload, endc_m, endc_p, irun, pEE, pEEmin, pEEmax);
257 gStyle->SetPalette(1);
258 gStyle->SetOptStat(0);
259 TCanvas
canvas(
"CC map",
"CC map", 1600, 450);
263 t1.SetTextSize(0.05);
264 t1.DrawLatex(0.5, 0.96, Form(
"Ecal Laser Alphas Diff, IOV %i - %i",
run[1],
run[0]));
266 float xmi[3] = {0.0, 0.24, 0.76};
267 float xma[3] = {0.24, 0.76, 1.00};
268 TPad** pad =
new TPad*;
271 pad[
obj] =
new TPad(Form(
"p_%i",
obj), Form(
"p_%i",
obj), xmi[
obj], 0.0, xma[
obj], 0.94);
276 DrawEE(endc_m, pEEmin, pEEmax);
280 DrawEE(endc_p, pEEmin, pEEmax);
283 canvas.SaveAs(ImageName.c_str());
293 EcalLaserAlphasSummaryPlot()
298 bool fill(
const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs)
override {
299 auto iov = iovs.front();
301 unsigned int run = std::get<0>(iov);
307 align =
new TH2F(
"",
"", 0, 0, 0, 0, 0, 0);
309 float mean_x_EB = 0.0f;
310 float mean_x_EE = 0.0f;
318 payload->summary(mean_x_EB, rms_EB, num_x_EB, mean_x_EE, rms_EE, num_x_EE);
324 gStyle->SetPalette(1);
325 gStyle->SetOptStat(0);
326 TCanvas
canvas(
"CC map",
"CC map", 1000, 1000);
330 t1.SetTextSize(0.04);
332 t1.DrawLatex(0.5, 0.96, Form(
"Ecal Laser Alphas Summary, IOV %i",
run));
334 TPad* pad =
new TPad(
"pad",
"pad", 0.0, 0.0, 1.0, 0.94);
342 canvas.SaveAs(ImageName.c_str());