template<class PayloadType, SiPixelPI::DetType myType>
class templateHelper::SiPixelIDs< PayloadType, myType >
Definition at line 314 of file SiPixelTemplateHelper.h.
template<class PayloadType , SiPixelPI::DetType myType>
Implements cond::payloadInspector::PlotImpl< IOV_M, 0 >.
Definition at line 328 of file SiPixelTemplateHelper.h.
References Phase1PixelMaps::beautifyAllHistograms(), Phase1PixelMaps::bookBarrelHistograms(), Phase1PixelMaps::bookForwardHistograms(), svgfig::canvas(), ALPAKA_ACCELERATOR_NAMESPACE::brokenline::constexpr(), COUT, SiPixelPI::displayNotSupported(), Phase1PixelMaps::drawBarrelMaps(), Phase1PixelMaps::drawForwardMaps(), mps_splice::entry, cond::payloadInspector::PlotImage< PayloadType, cond::payloadInspector::SINGLE_IOV >::fetchPayload(), MillePedeFileConverter_cfg::fileName, Phase1PixelMaps::fillBarrelBin(), Phase1PixelMaps::fillForwardBin(), templateHelper::SiPixelIDs< PayloadType, myType >::isTemplate_, templateHelper::SiPixelIDs< PayloadType, myType >::label_, cond::payloadInspector::PlotImage< PayloadType, cond::payloadInspector::SINGLE_IOV >::m_imageFileName, jetsAK4_Puppi_cff::payload, SiPixelPI::phase0size, SiPixelPI::phase1size, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, AlCaHLTBitMon_QueryRunRegistry::string, SiPixelPI::t_barrel, SiPixelPI::t_forward, and makeGlobalPositionRcd_cfg::tag.
329 gStyle->SetPalette(kRainBow);
331 auto tag = cond::payloadInspector::PlotBase::getTag<0>();
332 auto iov =
tag.iovs.front();
344 theMaps.bookBarrelHistograms(barrelName_, title_.c_str(), title_.c_str());
347 theMaps.bookForwardHistograms(endcapName_, title_.c_str(), title_.c_str());
350 std::map<unsigned int, short> templMap;
351 if constexpr (std::is_same_v<PayloadType, SiPixelGenErrorDBObject>) {
352 templMap =
payload->getGenErrorIDs();
354 templMap =
payload->getTemplateIDs();
359 <<
"There are " << templMap.size()
360 <<
" DetIds in this payload. SiPixelIDs maps are not supported for non-Phase1 Pixel geometries !";
361 TCanvas
canvas(
"Canv",
"Canv", 1200, 1000);
369 <<
" DetIds in this payload !" 370 <<
"\n **************************** \n";
382 for (
auto const&
entry : templMap) {
383 COUT <<
"DetID: " <<
entry.first << fmt::sprintf(
"%s ID ", (
isTemplate_ ?
"Template" :
"GenError"))
384 <<
entry.second << std::endl;
387 theMaps.fillBarrelBin(barrelName_,
entry.first,
entry.second);
389 theMaps.fillForwardBin(endcapName_,
entry.first,
entry.second);
393 theMaps.beautifyAllHistograms();
397 theMaps.drawBarrelMaps(barrelName_,
canvas);
399 theMaps.drawForwardMaps(endcapName_,
canvas);
std::string m_imageFileName
static const unsigned int phase0size
Log< level::Error, false > LogError
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)