46 EcalIntercalibConstantsEBMap()
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())
96 EcalIntercalibConstantsEEMap()
106 Base::setSingleIov(
true);
109 bool fill()
override {
110 auto tag = PlotBase::getTag<0>();
111 for (
auto const& iov :
tag.iovs) {
114 if (
payload->endcapItems().empty())
126 if (value_ptr ==
payload->end())
130 if (myEEId.zside() == -1)
147 EcalIntercalibConstantsPlot()
152 bool fill(
const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs)
override {
157 auto iov = iovs.front();
159 unsigned int run = std::get<0>(iov);
162 if (
payload->barrelItems().empty())
165 fillEBMap_SingleIOV<EcalIntercalibConstants>(
payload,
barrel);
167 if (
payload->endcapItems().empty())
170 fillEEMap_SingleIOV<EcalIntercalibConstants>(
payload, endc_m, endc_p);
174 gStyle->SetPalette(1);
175 gStyle->SetOptStat(0);
176 TCanvas
canvas(
"CC map",
"CC map", 1600, 450);
180 t1.SetTextSize(0.05);
181 t1.DrawLatex(0.5, 0.96, Form(
"Ecal IntercalibConstants, IOV %i",
run));
183 float xmi[3] = {0.0, 0.24, 0.76};
184 float xma[3] = {0.24, 0.76, 1.00};
185 TPad** pad =
new TPad*;
187 pad[
obj] =
new TPad(Form(
"p_%i",
obj), Form(
"p_%i",
obj), xmi[
obj], 0.0, xma[
obj], 0.94);
202 canvas.SaveAs(ImageName.c_str());
212 EcalIntercalibConstantsDiff()
217 bool fill(
const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs)
override {
221 float pEBmin, pEEmin, pEBmax, pEEmax;
227 unsigned int run[2], irun = 0;
229 for (
auto const& iov : iovs) {
231 run[irun] = std::get<0>(iov);
234 if (
payload->barrelItems().empty())
237 fillEBMap_DiffIOV<EcalIntercalibConstants>(
payload,
barrel, irun, pEB, pEBmin, pEBmax);
239 if (
payload->endcapItems().empty())
242 fillEEMap_DiffIOV<EcalIntercalibConstants>(
payload, endc_m, endc_p, irun, pEE, pEEmin, pEEmax);
249 gStyle->SetPalette(1);
250 gStyle->SetOptStat(0);
251 TCanvas
canvas(
"CC map",
"CC map", 1600, 450);
255 t1.SetTextSize(0.05);
256 t1.DrawLatex(0.5, 0.96, Form(
"Ecal IntercalibConstants, IOV %i - %i",
run[1],
run[0]));
258 float xmi[3] = {0.0, 0.24, 0.76};
259 float xma[3] = {0.24, 0.76, 1.00};
260 TPad** pad =
new TPad*;
262 pad[
obj] =
new TPad(Form(
"p_%i",
obj), Form(
"p_%i",
obj), xmi[
obj], 0.0, xma[
obj], 0.94);
266 DrawEE(endc_m, pEEmin, pEEmax);
270 DrawEE(endc_p, pEEmin, pEEmax);
273 canvas.SaveAs(ImageName.c_str());
283 EcalIntercalibConstantsSummaryPlot()
288 bool fill(
const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs)
override {
289 auto iov = iovs.front();
291 unsigned int run = std::get<0>(iov);
297 align =
new TH2F(
"",
"", 0, 0, 0, 0, 0, 0);
299 float mean_x_EB = 0.0f;
300 float mean_x_EE = 0.0f;
308 payload->summary(mean_x_EB, rms_EB, num_x_EB, mean_x_EE, rms_EE, num_x_EE);
310 align,
"Ecal Intercalib Constants", mean_x_EB, rms_EB, num_x_EB, mean_x_EE, rms_EE, num_x_EE);
314 gStyle->SetPalette(1);
315 gStyle->SetOptStat(0);
316 TCanvas
canvas(
"CC map",
"CC map", 1000, 1000);
320 t1.SetTextSize(0.04);
322 t1.DrawLatex(0.5, 0.96, Form(
"Ecal Intercalib Constants Summary, IOV %i",
run));
324 TPad* pad =
new TPad(
"pad",
"pad", 0.0, 0.0, 1.0, 0.94);
328 TLine*
l =
new TLine;
334 canvas.SaveAs(ImageName.c_str());