template<class PayloadType, SiPixelPI::DetType myType>
class templateHelper::SiPixelIDs< PayloadType, myType >
Definition at line 310 of file SiPixelTemplateHelper.h.
template<class PayloadType , SiPixelPI::DetType myType>
Implements cond::payloadInspector::PlotImpl< IOV_M, 0 >.
Definition at line 324 of file SiPixelTemplateHelper.h.
326 gStyle->SetPalette(kRainBow);
328 auto tag = cond::payloadInspector::PlotBase::getTag<0>();
329 auto iov =
tag.iovs.front();
341 theMaps.bookBarrelHistograms(barrelName_, title_.c_str(), title_.c_str());
344 theMaps.bookForwardHistograms(endcapName_, title_.c_str(), title_.c_str());
347 std::map<unsigned int, short> templMap;
348 if constexpr (std::is_same_v<PayloadType, SiPixelGenErrorDBObject>) {
349 templMap =
payload->getGenErrorIDs();
351 templMap =
payload->getTemplateIDs();
356 <<
"There are " << templMap.size()
357 <<
" DetIds in this payload. SiPixelIDs maps are not supported for non-Phase1 Pixel geometries !";
358 TCanvas
canvas(
"Canv",
"Canv", 1200, 1000);
366 <<
" DetIds in this payload !"
367 <<
"\n **************************** \n";
379 for (
auto const&
entry : templMap) {
380 COUT <<
"DetID: " <<
entry.first << fmt::sprintf(
"%s ID ", (
isTemplate_ ?
"Template" :
"GenError"))
381 <<
entry.second << std::endl;
384 theMaps.fillBarrelBin(barrelName_,
entry.first,
entry.second);
386 theMaps.fillForwardBin(endcapName_,
entry.first,
entry.second);
390 theMaps.beautifyAllHistograms();
394 theMaps.drawBarrelMaps(barrelName_,
canvas);
396 theMaps.drawForwardMaps(endcapName_,
canvas);
References Phase1PixelMaps::beautifyAllHistograms(), Phase1PixelMaps::bookBarrelHistograms(), Phase1PixelMaps::bookForwardHistograms(), svgfig::canvas(), 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, jets_cff::payload, SiPixelPI::phase0size, SiPixelPI::phase1size, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, AlCaHLTBitMon_QueryRunRegistry::string, SiPixelPI::t_barrel, SiPixelPI::t_forward, and makeGlobalPositionRcd_cfg::tag.