46 EcalIntercalibConstantsMCEBMap()
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())
78 if (value_ptr ==
payload->end())
103 int EEhistSplit = 20;
106 EcalIntercalibConstantsMCEEMap()
116 Base::setSingleIov(
true);
119 bool fill()
override {
120 auto tag = PlotBase::getTag<0>();
121 for (
auto const& iov :
tag.iovs) {
124 if (
payload->endcapItems().empty())
136 if (value_ptr ==
payload->end())
141 if (myEEId.zside() == -1)
159 EcalIntercalibConstantsMCPlot()
164 bool fill(
const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs)
override {
169 auto iov = iovs.front();
171 unsigned int run = std::get<0>(iov);
174 if (
payload->barrelItems().empty())
177 fillEBMap_SingleIOV<EcalIntercalibConstantsMC>(
payload,
barrel);
179 if (
payload->endcapItems().empty())
182 fillEEMap_SingleIOV<EcalIntercalibConstantsMC>(
payload, endc_m, endc_p);
186 gStyle->SetPalette(1);
187 gStyle->SetOptStat(0);
188 TCanvas
canvas(
"CC map",
"CC map", 1600, 450);
192 t1.SetTextSize(0.04);
193 t1.DrawLatex(0.5, 0.96, Form(
"Ecal IntercalibConstants MC, IOV %i",
run));
195 float xmi[3] = {0.0, 0.24, 0.76};
196 float xma[3] = {0.24, 0.76, 1.00};
197 TPad** pad =
new TPad*;
199 pad[
obj] =
new TPad(Form(
"p_%i",
obj), Form(
"p_%i",
obj), xmi[
obj], 0.0, xma[
obj], 0.94);
214 canvas.SaveAs(ImageName.c_str());
224 EcalIntercalibConstantsMCDiff()
229 bool fill(
const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs)
override {
233 float pEBmin, pEEmin, pEBmax, pEEmax;
239 unsigned int run[2], irun = 0;
241 for (
auto const& iov : iovs) {
243 run[irun] = std::get<0>(iov);
246 if (
payload->barrelItems().empty())
249 fillEBMap_DiffIOV<EcalIntercalibConstantsMC>(
payload,
barrel, irun, pEB, pEBmin, pEBmax);
251 if (
payload->endcapItems().empty())
254 fillEEMap_DiffIOV<EcalIntercalibConstantsMC>(
payload, endc_m, endc_p, irun, pEE, pEEmin, pEEmax);
261 gStyle->SetPalette(1);
262 gStyle->SetOptStat(0);
263 TCanvas
canvas(
"CC map",
"CC map", 1600, 450);
267 t1.SetTextSize(0.04);
268 t1.DrawLatex(0.5, 0.96, Form(
"Ecal IntercalibConstants MC Diff, IOV %i - %i",
run[1],
run[0]));
270 float xmi[3] = {0.0, 0.24, 0.76};
271 float xma[3] = {0.24, 0.76, 1.00};
272 TPad** pad =
new TPad*;
275 pad[
obj] =
new TPad(Form(
"p_%i",
obj), Form(
"p_%i",
obj), xmi[
obj], 0.0, xma[
obj], 0.94);
280 DrawEE(endc_m, pEEmin, pEEmax);
284 DrawEE(endc_p, pEEmin, pEEmax);
287 canvas.SaveAs(ImageName.c_str());
297 EcalIntercalibConstantsMCSummaryPlot()
302 bool fill(
const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs)
override {
303 auto iov = iovs.front();
305 unsigned int run = std::get<0>(iov);
311 align =
new TH2F(
"",
"", 0, 0, 0, 0, 0, 0);
313 float mean_x_EB = 0.0f;
314 float mean_x_EE = 0.0f;
322 payload->summary(mean_x_EB, rms_EB, num_x_EB, mean_x_EE, rms_EE, num_x_EE);
324 align,
"Ecal Intercalib Constants MC", mean_x_EB, rms_EB, num_x_EB, mean_x_EE, rms_EE, num_x_EE);
329 gStyle->SetPalette(1);
330 gStyle->SetOptStat(0);
331 TCanvas
canvas(
"CC map",
"CC map", 1000, 1000);
335 t1.SetTextSize(0.04);
337 t1.DrawLatex(0.5, 0.96, Form(
"Ecal Intercalib Constants MC Summary, IOV %i",
run));
339 TPad* pad =
new TPad(
"pad",
"pad", 0.0, 0.0, 1.0, 0.94);
347 canvas.SaveAs(ImageName.c_str());