46 EcalPFRecHitThresholdsEBMap()
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 EcalPFRecHitThresholdsEEMap()
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 EcalPFRecHitThresholdsPlot()
162 bool fill(
const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs)
override {
167 auto iov = iovs.front();
169 unsigned int run = std::get<0>(iov);
172 if (
payload->barrelItems().empty())
175 fillEBMap_SingleIOV<EcalPFRecHitThresholds>(
payload,
barrel);
177 if (
payload->endcapItems().empty())
180 fillEEMap_SingleIOV<EcalPFRecHitThresholds>(
payload, endc_m, endc_p);
184 gStyle->SetPalette(1);
185 gStyle->SetOptStat(0);
186 TCanvas
canvas(
"CC map",
"CC map", 1600, 450);
190 t1.SetTextSize(0.05);
191 t1.DrawLatex(0.5, 0.96, Form(
"Ecal PFRec Hit Thresholds, IOV %i",
run));
193 float xmi[3] = {0.0, 0.24, 0.76};
194 float xma[3] = {0.24, 0.76, 1.00};
195 TPad** pad =
new TPad*;
197 pad[
obj] =
new TPad(Form(
"p_%i",
obj), Form(
"p_%i",
obj), xmi[
obj], 0.0, xma[
obj], 0.94);
212 canvas.SaveAs(ImageName.c_str());
222 EcalPFRecHitThresholdsDiff()
227 bool fill(
const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs)
override {
231 float pEBmin, pEEmin, pEBmax, pEEmax;
237 unsigned int run[2], irun = 0;
239 for (
auto const& iov : iovs) {
241 run[irun] = std::get<0>(iov);
244 if (
payload->barrelItems().empty())
247 fillEBMap_DiffIOV<EcalPFRecHitThresholds>(
payload,
barrel, irun, pEB, pEBmin, pEBmax);
249 if (
payload->endcapItems().empty())
252 fillEEMap_DiffIOV<EcalPFRecHitThresholds>(
payload, endc_m, endc_p, irun, pEE, pEEmin, pEEmax);
259 gStyle->SetPalette(1);
260 gStyle->SetOptStat(0);
261 TCanvas
canvas(
"CC map",
"CC map", 1600, 450);
265 t1.SetTextSize(0.05);
266 t1.DrawLatex(0.5, 0.96, Form(
"Ecal PFRec Hit Thresholds Diff, IOV %i - %i",
run[1],
run[0]));
268 float xmi[3] = {0.0, 0.24, 0.76};
269 float xma[3] = {0.24, 0.76, 1.00};
270 TPad** pad =
new TPad*;
273 pad[
obj] =
new TPad(Form(
"p_%i",
obj), Form(
"p_%i",
obj), xmi[
obj], 0.0, xma[
obj], 0.94);
278 DrawEE(endc_m, pEEmin, pEEmax);
282 DrawEE(endc_p, pEEmin, pEEmax);
285 canvas.SaveAs(ImageName.c_str());
295 EcalPFRecHitThresholdsSummaryPlot()
300 bool fill(
const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs)
override {
301 auto iov = iovs.front();
303 unsigned int run = std::get<0>(iov);
309 align =
new TH2F(
"",
"", 0, 0, 0, 0, 0, 0);
311 float mean_x_EB = 0.0f;
312 float mean_x_EE = 0.0f;
320 payload->summary(mean_x_EB, rms_EB, num_x_EB, mean_x_EE, rms_EE, num_x_EE);
322 align,
"Ecal PFRec Hit Thresholds", mean_x_EB, rms_EB, num_x_EB, mean_x_EE, rms_EE, num_x_EE);
326 gStyle->SetPalette(1);
327 gStyle->SetOptStat(0);
328 TCanvas
canvas(
"CC map",
"CC map", 1000, 1000);
332 t1.SetTextSize(0.04);
334 t1.DrawLatex(0.5, 0.96, Form(
"Ecal PFRec Hit Thresholds Summary, IOV %i",
run));
336 TPad* pad =
new TPad(
"pad",
"pad", 0.0, 0.0, 1.0, 0.94);
344 canvas.SaveAs(ImageName.c_str());