1369 label_ =
"SiPixelGainCalibrationForHLT_PayloadInspector";
1373 bool fill()
override {
1374 TGaxis::SetMaxDigits(2);
1376 auto tag = cond::payloadInspector::PlotBase::getTag<0>();
1378 auto iov =
tag.iovs.front();
1386 std::map<uint32_t, float> GainCalibMap_;
1389 edm::LogError(
label_) <<
"SiPixelGainCalibration maps are not supported for non-Phase1 Pixel geometries !";
1390 TCanvas
canvas(
"Canv",
"Canv", 1200, 1000);
1398 std::array<double, n_layers> b_minima = {{999., 999., 999., 999.}};
1399 std::array<double, n_rings> f_minima = {{999., 999.}};
1401 for (
const auto& element : GainCalibMap_) {
1405 if (element.second < b_minima.at(
layer - 1)) {
1406 b_minima.at(
layer - 1) = element.second;
1408 theGainsMap.fillWholeModule(element.first, element.second);
1411 if (element.second < f_minima.at(
ring - 1)) {
1412 f_minima.at(
ring - 1) = element.second;
1414 theGainsMap.fillWholeModule(element.first, element.second);
1418 gStyle->SetOptStat(0);
1426 ? std::to_string(unpacked.second)
1427 : (std::to_string(unpacked.first) +
"," + std::to_string(unpacked.second));
1429 const auto headerText = fmt::sprintf(
"#color[4]{%s}, IOV: #color[4]{%s}",
tagname, IOVstring);
1431 switch (myDetType) {
1433 theGainsMap.drawBarrelMaps(
canvas, headerText);
1436 theGainsMap.drawForwardMaps(
canvas, headerText);
1439 theGainsMap.drawMaps(
canvas, headerText);
1443 <<
"\nERROR: unrecognized Pixel Detector part " << std::endl;
1447 for (
unsigned int lay = 1; lay <=
n_layers; lay++) {
1450 auto h_bpix_Gains = theGainsMap.getLayerMaps();
1452 COUT <<
" layer:" << lay <<
" max:" << h_bpix_Gains[lay - 1]->GetMaximum() <<
" min: " << b_minima.at(lay - 1)
1455 h_bpix_Gains[lay - 1]->GetZaxis()->SetRangeUser(b_minima.at(lay - 1) - 0.001,
1456 h_bpix_Gains[lay - 1]->GetMaximum() + 0.001);
1464 auto h_fpix_Gains = theGainsMap.getRingMaps();
1466 COUT <<
" ring:" <<
ring <<
" max:" << h_fpix_Gains[
ring - 1]->GetMaximum()
1467 <<
" min: " << f_minima.at(
ring - 1) << std::endl;
1469 h_fpix_Gains[
ring - 1]->GetZaxis()->SetRangeUser(f_minima.at(
ring - 1) - 0.001,
1470 h_fpix_Gains[
ring - 1]->GetMaximum() + 0.001);