28 EcalFloatCondObjectContainerPlot()
33 bool fill(
const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs)
override {
37 double EBmean = 0., EBrms = 0., EEmean = 0., EErms = 0.;
38 int EBtot = 0, EEtot = 0;
40 auto iov = iovs.front();
42 unsigned int run = std::get<0>(iov);
53 Double_t
phi = (Double_t)
iphi - 0.5;
55 double val = (*payload)[
id.rawId()];
57 EBmean = EBmean +
val;
64 int thesign =
sign == 1 ? 1 : -1;
65 for (
int ix = 1; ix <=
IX_MAX; ix++) {
66 for (
int iy = 1; iy <=
IY_MAX; iy++) {
70 double val = (*payload)[
id.rawId()];
71 EEmean = EEmean +
val;
75 endc_p->Fill(ix, iy,
val);
77 endc_m->Fill(ix, iy,
val);
82 double vt = (double)EBtot;
84 EBrms = EBrms / vt - (EBmean * EBmean);
88 double pEBmin = EBmean - kRMS * EBrms;
89 double pEBmax = EBmean + kRMS * EBrms;
93 EErms = EErms / vt - (EEmean * EEmean);
97 double pEEmin = EEmean - kRMS * EErms;
98 double pEEmax = EEmean + kRMS * EErms;
101 gStyle->SetPalette(1);
102 gStyle->SetOptStat(0);
103 TCanvas
canvas(
"CC map",
"CC map", 1600, 450);
107 t1.SetTextSize(0.05);
108 t1.DrawLatex(0.5, 0.96, Form(
"Ecal FloatCondObjectContainer, IOV %i",
run));
110 float xmi[3] = {0.0, 0.24, 0.76};
111 float xma[3] = {0.24, 0.76, 1.00};
112 TPad** pad =
new TPad*;
114 pad[
obj] =
new TPad(Form(
"p_%i",
obj), Form(
"p_%i",
obj), xmi[
obj], 0.0, xma[
obj], 0.94);
119 DrawEE(endc_m, pEEmin, pEEmax);
123 DrawEE(endc_p, pEEmin, pEEmax);
126 canvas.SaveAs(ImageName.c_str());
136 EcalFloatCondObjectContainerDiff()
141 bool fill(
const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs)
override {
145 double EBmean = 0., EBrms = 0., EEmean = 0., EErms = 0.;
146 int EBtot = 0, EEtot = 0;
149 unsigned int run[2], irun = 0;
151 for (
auto const& iov : iovs) {
153 run[irun] = std::get<0>(iov);
164 Double_t
phi = (Double_t)
iphi - 0.5;
166 int channel =
id.hashedIndex();
167 double val = (*payload)[
id.rawId()];
171 double diff =
val - vEB[channel];
173 EBmean = EBmean +
diff;
182 int thesign =
sign == 1 ? 1 : -1;
183 for (
int ix = 1; ix <=
IX_MAX; ix++) {
184 for (
int iy = 1; iy <=
IY_MAX; iy++) {
188 int channel =
id.hashedIndex();
189 double val = (*payload)[
id.rawId()];
193 double diff =
val - vEE[channel];
194 EEmean = EEmean +
diff;
198 endc_p->Fill(ix, iy,
diff);
200 endc_m->Fill(ix, iy,
diff);
211 double vt = (double)EBtot;
212 EBmean = EBmean / vt;
213 EBrms = EBrms / vt - (EBmean * EBmean);
217 double pEBmin = EBmean - kRMS * EBrms;
218 double pEBmax = EBmean + kRMS * EBrms;
221 EEmean = EEmean / vt;
222 EErms = EErms / vt - (EEmean * EEmean);
226 double pEEmin = EEmean - kRMS * EErms;
227 double pEEmax = EEmean + kRMS * EErms;
230 gStyle->SetPalette(1);
231 gStyle->SetOptStat(0);
232 TCanvas
canvas(
"CC map",
"CC map", 1600, 450);
236 t1.SetTextSize(0.05);
237 t1.DrawLatex(0.5, 0.96, Form(
"Ecal FloatCondObjectContainer, IOV %i - %i",
run[1],
run[0]));
239 float xmi[3] = {0.0, 0.24, 0.76};
240 float xma[3] = {0.24, 0.76, 1.00};
241 TPad** pad =
new TPad*;
243 pad[
obj] =
new TPad(Form(
"p_%i",
obj), Form(
"p_%i",
obj), xmi[
obj], 0.0, xma[
obj], 0.94);
248 DrawEE(endc_m, pEEmin, pEEmax);
252 DrawEE(endc_p, pEEmin, pEEmax);
255 canvas.SaveAs(ImageName.c_str());