template<class PayloadType, class StoreType, class TransientType>
class templateHelper::SiPixelFullPixelIDMap< PayloadType, StoreType, TransientType >
Definition at line 419 of file SiPixelTemplateHelper.h.
template<class PayloadType , class StoreType , class TransientType >
Implements cond::payloadInspector::PlotImpl< IOV_M, 0 >.
Definition at line 434 of file SiPixelTemplateHelper.h.
References svgfig::canvas(), ALPAKA_ACCELERATOR_NAMESPACE::brokenline::constexpr(), Phase1PixelSummaryMap::createTrackerBaseMap(), SiPixelPI::displayNotSupported(), mps_splice::entry, Exception, cond::payloadInspector::PlotImage< PayloadType, cond::payloadInspector::SINGLE_IOV >::fetchPayload(), MillePedeFileConverter_cfg::fileName, Phase1PixelSummaryMap::fillTrackerMap(), templateHelper::SiPixelFullPixelIDMap< PayloadType, StoreType, TransientType >::isTemplate_, templateHelper::SiPixelFullPixelIDMap< PayloadType, StoreType, TransientType >::label_, cond::payloadInspector::PlotImage< PayloadType, cond::payloadInspector::SINGLE_IOV >::m_imageFileName, jetsAK4_Puppi_cff::payload, SiPixelPI::phase0size, SiPixelPI::phase1size, Phase1PixelSummaryMap::printTrackerMap(), AlCaHLTBitMon_QueryRunRegistry::string, makeGlobalPositionRcd_cfg::tag, and to_string().
435 gStyle->SetPalette(1);
436 auto tag = cond::payloadInspector::PlotBase::getTag<0>();
437 auto iov =
tag.iovs.front();
438 std::vector<StoreType> thePixelTemp_;
444 if (!TransientType::pushfile(*
payload, thePixelTemp_)) {
446 <<
" not filled correctly. Check the conditions. Using " 447 << (
isTemplate_ ?
"SiPixelTemplateDBObject" :
"SiPixelGenErrorDBObject")
448 <<
payload->version() <<
"\n\n";
451 Phase1PixelSummaryMap fullMap(
"", fmt::sprintf(
"%s IDs", payloadString), fmt::sprintf(
"%s ID", payloadString));
452 fullMap.createTrackerBaseMap();
454 std::map<unsigned int, short> templMap;
455 if constexpr (std::is_same_v<PayloadType, SiPixelGenErrorDBObject>) {
456 templMap =
payload->getGenErrorIDs();
458 templMap =
payload->getTemplateIDs();
461 for (
const auto&
entry : templMap) {
462 fullMap.fillTrackerMap(
entry.first,
entry.second);
467 <<
"There are " << templMap.size()
468 <<
" DetIds in this payload. SiPixelIDs maps are not supported for non-Phase1 Pixel geometries !";
469 TCanvas
canvas(
"Canv",
"Canv", 1200, 1000);
477 <<
" DetIds in this payload !" 478 <<
"\n **************************** \n";
482 TCanvas
canvas(
"Canv",
"Canv", 3000, 2000);
483 fullMap.printTrackerMap(
canvas);
489 ltx.SetTextSize(0.025);
490 ltx.SetTextAlign(11);
492 gPad->GetLeftMargin() + 0.01,
493 gPad->GetBottomMargin() + 0.01,
494 (
"#color[4]{" +
tag.name +
"}, IOV: #color[4]{" +
std::to_string(std::get<0>(iov)) +
"}").c_str());
std::string m_imageFileName
static const unsigned int phase0size
Log< level::Error, false > LogError
static std::string to_string(const XMLCh *ch)
static const unsigned int phase1size
void displayNotSupported(TCanvas &canv, const unsigned int size)
Log< level::Warning, false > LogWarning
std::shared_ptr< PayloadType > fetchPayload(const cond::Hash &payloadHash)