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();
340 theMaps.bookBarrelHistograms(barrelName_, title_.c_str(), title_.c_str());
342 theMaps.bookBarrelBins(barrelName_);
344 theMaps.bookForwardHistograms(endcapName_, title_.c_str(), title_.c_str());
346 theMaps.bookForwardBins(endcapName_);
349 std::map<unsigned int, short> templMap;
350 if constexpr (std::is_same_v<PayloadType, SiPixelGenErrorDBObject>) {
351 templMap =
payload->getGenErrorIDs();
353 templMap =
payload->getTemplateIDs();
358 <<
"There are " << templMap.size()
359 <<
" DetIds in this payload. SiPixelIDs maps are not supported for non-Phase1 Pixel geometries !";
360 TCanvas
canvas(
"Canv",
"Canv", 1200, 1000);
368 <<
" DetIds in this payload !"
369 <<
"\n **************************** \n";
381 for (
auto const&
entry : templMap) {
382 COUT <<
"DetID: " <<
entry.first << fmt::sprintf(
"%s ID ", (
isTemplate_ ?
"Template" :
"GenError"))
383 <<
entry.second << std::endl;
386 theMaps.fillBarrelBin(barrelName_,
entry.first,
entry.second);
388 theMaps.fillForwardBin(endcapName_,
entry.first,
entry.second);
392 theMaps.beautifyAllHistograms();
396 theMaps.drawBarrelMaps(barrelName_,
canvas);
398 theMaps.drawForwardMaps(endcapName_,
canvas);
References Phase1PixelMaps::beautifyAllHistograms(), Phase1PixelMaps::bookBarrelBins(), Phase1PixelMaps::bookBarrelHistograms(), Phase1PixelMaps::bookForwardBins(), 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 GlobalPosition_Frontier_DevDB_cff::tag.