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);
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);
std::string m_imageFileName
static const std::array< std::string, 3 > t_titles
unsigned int pxbLayer(const DetId &id) const
static constexpr std::array< int, 3 > k_height
std::string to_string(const V &value)
Log< level::Error, false > LogError
static constexpr int n_rings
constexpr std::array< uint8_t, layerIndexSize > layer
static constexpr int n_layers
static void fillThePerModuleMap(const std::shared_ptr< PayloadType > &payload, AvgMap &map, gainCalibPI::type theType)
std::pair< unsigned int, unsigned int > unpack(cond::Time_t since)
static const unsigned int phase1size
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
int ring(const DetId &detid, const TrackerTopology &tTopo_, bool phase_)
void displayNotSupported(TCanvas &canv, const unsigned int size)
TrackerTopology m_trackerTopo
std::shared_ptr< PayloadType > fetchPayload(const cond::Hash &payloadHash)