47 EcalTimeCalibConstantsEBMap()
57 Base::setSingleIov(
true);
61 bool fill()
override {
62 auto tag = PlotBase::getTag<0>();
63 for (
auto const& iov :
tag.iovs) {
67 if (
payload->barrelItems().empty())
78 if (value_ptr ==
payload->end())
102 int EEhistSplit = 20;
105 EcalTimeCalibConstantsEEMap()
115 Base::setSingleIov(
true);
118 bool fill()
override {
119 auto tag = PlotBase::getTag<0>();
120 for (
auto const& iov :
tag.iovs) {
123 if (
payload->endcapItems().empty())
135 if (value_ptr ==
payload->end())
140 if (myEEId.zside() == -1)
158 EcalTimeCalibConstantsPlot()
163 bool fill(
const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs)
override {
168 auto iov = iovs.front();
170 unsigned int run = std::get<0>(iov);
173 if (
payload->barrelItems().empty())
176 fillEBMap_SingleIOV<EcalTimeCalibConstants>(
payload,
barrel);
178 if (
payload->endcapItems().empty())
181 fillEEMap_SingleIOV<EcalTimeCalibConstants>(
payload, endc_m, endc_p);
185 gStyle->SetPalette(1);
186 gStyle->SetOptStat(0);
187 TCanvas
canvas(
"CC map",
"CC map", 1600, 450);
191 t1.SetTextSize(0.05);
192 t1.DrawLatex(0.5, 0.96, Form(
"Ecal Time Calib Constants, IOV %i",
run));
194 float xmi[3] = {0.0, 0.24, 0.76};
195 float xma[3] = {0.24, 0.76, 1.00};
196 TPad** pad =
new TPad*;
198 pad[
obj] =
new TPad(Form(
"p_%i",
obj), Form(
"p_%i",
obj), xmi[
obj], 0.0, xma[
obj], 0.94);
204 DrawEE(endc_m, -2.5, 2.5);
210 DrawEE(endc_p, -2.5, 2.5);
213 canvas.SaveAs(ImageName.c_str());
223 EcalTimeCalibConstantsDiff()
228 bool fill(
const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs)
override {
232 float pEBmin, pEEmin, pEBmax, pEEmax;
238 unsigned int run[2], irun = 0;
240 for (
auto const& iov : iovs) {
242 run[irun] = std::get<0>(iov);
245 if (
payload->barrelItems().empty())
248 fillEBMap_DiffIOV<EcalTimeCalibConstants>(
payload,
barrel, irun, pEB, pEBmin, pEBmax);
250 if (
payload->endcapItems().empty())
253 fillEEMap_DiffIOV<EcalTimeCalibConstants>(
payload, endc_m, endc_p, irun, pEE, pEEmin, pEEmax);
260 gStyle->SetPalette(1);
261 gStyle->SetOptStat(0);
262 TCanvas
canvas(
"CC map",
"CC map", 1600, 450);
266 t1.SetTextSize(0.05);
267 t1.DrawLatex(0.5, 0.96, Form(
"Ecal Time Calib Constants Diff, IOV %i - %i",
run[1],
run[0]));
269 float xmi[3] = {0.0, 0.24, 0.76};
270 float xma[3] = {0.24, 0.76, 1.00};
271 TPad** pad =
new TPad*;
274 pad[
obj] =
new TPad(Form(
"p_%i",
obj), Form(
"p_%i",
obj), xmi[
obj], 0.0, xma[
obj], 0.94);
279 DrawEE(endc_m, pEEmin, pEEmax);
283 DrawEE(endc_p, pEEmin, pEEmax);
286 canvas.SaveAs(ImageName.c_str());
296 EcalTimeCalibConstantsSummaryPlot()
301 bool fill(
const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs)
override {
302 auto iov = iovs.front();
304 unsigned int run = std::get<0>(iov);
310 align =
new TH2F(
"",
"", 0, 0, 0, 0, 0, 0);
312 float mean_x_EB = 0.0f;
313 float mean_x_EE = 0.0f;
321 payload->summary(mean_x_EB, rms_EB, num_x_EB, mean_x_EE, rms_EE, num_x_EE);
323 align,
"Ecal Time Calib Constants", mean_x_EB, rms_EB, num_x_EB, mean_x_EE, rms_EE, num_x_EE);
327 gStyle->SetPalette(1);
328 gStyle->SetOptStat(0);
329 TCanvas
canvas(
"CC map",
"CC map", 1000, 1000);
333 t1.SetTextSize(0.04);
335 t1.DrawLatex(0.5, 0.96, Form(
"Ecal Time Calib Constants Summary, IOV %i",
run));
337 TPad* pad =
new TPad(
"pad",
"pad", 0.0, 0.0, 1.0, 0.94);
345 canvas.SaveAs(ImageName.c_str());