1118 label_ =
"SiPixelGainCalibrationForHLT_PayloadInspector";
1122 bool fill()
override {
1123 auto tag = cond::payloadInspector::PlotBase::getTag<0>();
1124 auto iov =
tag.iovs.front();
1128 static const int n_layers = 4;
1129 int nlad_list[n_layers] = {6, 14, 22, 32};
1133 std::array<TH2D*, n_layers> h_bpix_Gains;
1135 for (
unsigned int lay = 1; lay <= 4; lay++) {
1136 int nlad = nlad_list[lay - 1];
1140 h_bpix_Gains[lay - 1] =
new TH2D(
name.c_str(),
1145 (nlad * 4 + 2) * divide_roc,
1150 std::map<uint32_t, float> GainCalibMap_;
1153 edm::LogError(
label_) <<
"SiPixelGainCalibration maps are not supported for non-Phase1 Pixel geometries !";
1154 TCanvas
canvas(
"Canv",
"Canv", 1200, 1000);
1162 std::array<double, 4> minima = {{999., 999., 999., 999.}};
1164 for (
const auto& element : GainCalibMap_) {
1173 COUT <<
"layer:" << layer <<
" ladder:" <<
ladder <<
" module:" <<
module <<
" signed ladder: " << s_ladder
1174 <<
" signed module: " << s_module << std::endl;
1176 if (element.second < minima.at(layer - 1))
1177 minima.at(layer - 1) = element.second;
1180 for (
const auto&
bin : rocsToMask) {
1181 h_bpix_Gains[layer - 1]->SetBinContent(
bin.first,
bin.second, element.second);
1186 gStyle->SetOptStat(0);
1188 TCanvas
canvas(
"Summary",
"Summary", 1200, 1200);
1191 for (
unsigned int lay = 1; lay <= 4; lay++) {
1194 COUT <<
" layer:" << lay <<
" max:" << h_bpix_Gains[lay - 1]->GetMaximum() <<
" min: " << minima.at(lay - 1)
1198 h_bpix_Gains[lay - 1]->GetZaxis()->SetRangeUser(minima.at(lay - 1) - 0.001,
1199 h_bpix_Gains[lay - 1]->GetMaximum() + 0.001);
1204 for (
unsigned int lay = 1; lay <= 4; lay++) {
1206 auto ltx = TLatex();
1207 ltx.SetTextFont(62);
1208 ltx.SetTextColor(kBlue);
1209 ltx.SetTextSize(0.055);
1210 ltx.SetTextAlign(11);
1211 ltx.DrawLatexNDC(gPad->GetLeftMargin(),
1212 1 - gPad->GetTopMargin() + 0.01,
1214 ? (
"IOV:" + std::to_string(unpacked.second)).c_str()
1215 : (std::to_string(unpacked.first) +
"," + std::to_string(unpacked.second)).c_str());