1368 label_ =
"SiPixelGainCalibrationForHLT_PayloadInspector";
1372 bool fill()
override {
1373 auto tag = cond::payloadInspector::PlotBase::getTag<0>();
1374 auto iov =
tag.iovs.front();
1379 static constexpr
int n_layers = 4;
1381 std::map<uint32_t, float> GainCalibMap_;
1384 edm::LogError(
label_) <<
"SiPixelGainCalibration maps are not supported for non-Phase1 Pixel geometries !";
1385 TCanvas
canvas(
"Canv",
"Canv", 1200, 1000);
1393 std::array<double, n_layers> minima = {{999., 999., 999., 999.}};
1395 for (
const auto& element : GainCalibMap_) {
1400 if (element.second < minima.at(
layer - 1))
1401 minima.at(
layer - 1) = element.second;
1403 theBPixGainsMap.fillWholeModule(element.first, element.second);
1407 gStyle->SetOptStat(0);
1409 TCanvas
canvas(
"Summary",
"Summary", 1200, 1200);
1410 theBPixGainsMap.drawBarrelMaps(
canvas);
1412 for (
unsigned int lay = 1; lay <= n_layers; lay++) {
1415 auto h_bpix_Gains = theBPixGainsMap.getLayerMaps();
1417 COUT <<
" layer:" << lay <<
" max:" << h_bpix_Gains[lay - 1]->GetMaximum() <<
" min: " << minima.at(lay - 1)
1420 h_bpix_Gains[lay - 1]->GetZaxis()->SetRangeUser(minima.at(lay - 1) - 0.001,
1421 h_bpix_Gains[lay - 1]->GetMaximum() + 0.001);
1426 for (
unsigned int lay = 1; lay <= n_layers; lay++) {
1428 auto ltx = TLatex();
1429 ltx.SetTextFont(62);
1430 ltx.SetTextColor(kBlue);
1431 ltx.SetTextSize(0.055);
1432 ltx.SetTextAlign(11);
1433 ltx.DrawLatexNDC(gPad->GetLeftMargin(),
1434 1 - gPad->GetTopMargin() + 0.01,
1436 ? (
"IOV:" + std::to_string(unpacked.second)).c_str()
1437 : (std::to_string(unpacked.first) +
"," + std::to_string(unpacked.second)).c_str());