1367 label_ =
"SiPixelGainCalibrationForHLT_PayloadInspector";
1371 bool fill()
override {
1372 auto tag = cond::payloadInspector::PlotBase::getTag<0>();
1373 auto iov =
tag.iovs.front();
1377 static const int n_layers = 4;
1378 int nlad_list[n_layers] = {6, 14, 22, 32};
1382 std::array<TH2D*, n_layers> h_bpix_Gains;
1384 for (
unsigned int lay = 1; lay <= 4; lay++) {
1385 int nlad = nlad_list[lay - 1];
1389 h_bpix_Gains[lay - 1] =
new TH2D(
name.c_str(),
1394 (nlad * 4 + 2) * divide_roc,
1399 std::map<uint32_t, float> GainCalibMap_;
1402 edm::LogError(
label_) <<
"SiPixelGainCalibration maps are not supported for non-Phase1 Pixel geometries !";
1403 TCanvas
canvas(
"Canv",
"Canv", 1200, 1000);
1411 std::array<double, 4> minima = {{999., 999., 999., 999.}};
1413 for (
const auto& element : GainCalibMap_) {
1422 COUT <<
"layer:" << layer <<
" ladder:" <<
ladder <<
" module:" << module <<
" signed ladder: " << s_ladder
1423 <<
" signed module: " << s_module << std::endl;
1425 if (element.second < minima.at(layer - 1))
1426 minima.at(layer - 1) = element.second;
1429 for (
const auto&
bin : rocsToMask) {
1430 h_bpix_Gains[layer - 1]->SetBinContent(
bin.first,
bin.second, element.second);
1435 gStyle->SetOptStat(0);
1437 TCanvas
canvas(
"Summary",
"Summary", 1200, 1200);
1440 for (
unsigned int lay = 1; lay <= 4; lay++) {
1443 COUT <<
" layer:" << lay <<
" max:" << h_bpix_Gains[lay - 1]->GetMaximum() <<
" min: " << minima.at(lay - 1)
1447 h_bpix_Gains[lay - 1]->GetZaxis()->SetRangeUser(minima.at(lay - 1) - 0.001,
1448 h_bpix_Gains[lay - 1]->GetMaximum() + 0.001);
1453 for (
unsigned int lay = 1; lay <= 4; lay++) {
1455 auto ltx = TLatex();
1456 ltx.SetTextFont(62);
1457 ltx.SetTextColor(kBlue);
1458 ltx.SetTextSize(0.055);
1459 ltx.SetTextAlign(11);
1460 ltx.DrawLatexNDC(gPad->GetLeftMargin(),
1461 1 - gPad->GetTopMargin() + 0.01,
1463 ? (
"IOV:" + std::to_string(unpacked.second)).c_str()
1464 : (std::to_string(unpacked.first) +
"," + std::to_string(unpacked.second)).c_str());