template<class PayloadType , class StoreType , class TransientType , SiPixelPI::DetType myType, headerParam myParam>
Implements cond::payloadInspector::PlotImpl< IOV_M, 0 >.
Definition at line 590 of file SiPixelTemplateHelper.h.
References Phase1PixelMaps::beautifyAllHistograms(), Phase1PixelMaps::bookBarrelHistograms(), Phase1PixelMaps::bookForwardHistograms(), svgfig::canvas(), makeHLTPrescaleTable::delimiter, SiPixelPI::displayNotSupported(), Phase1PixelMaps::drawBarrelMaps(), Phase1PixelMaps::drawForwardMaps(), Phase1PixelMaps::drawSummaryMaps(), mps_splice::entry, Exception, cond::payloadInspector::PlotImage< PayloadType, cond::payloadInspector::SINGLE_IOV >::fetchPayload(), MillePedeFileConverter_cfg::fileName, Phase1PixelMaps::fillBarrelBin(), Phase1PixelMaps::fillForwardBin(), dqmdumpme::first, templateHelper::header_types, info(), input, templateHelper::SiPixelTemplateHeaderInfo< PayloadType, StoreType, TransientType, myType, myParam >::isTemplate_, templateHelper::k_Bfield, templateHelper::k_Dtype, templateHelper::k_END_OF_TYPES, templateHelper::k_fluence, templateHelper::k_ID, templateHelper::k_lorxbias, templateHelper::k_lorxwidth, templateHelper::k_lorybias, templateHelper::k_lorywidth, templateHelper::k_NTxx, templateHelper::k_NTy, templateHelper::k_NTyx, templateHelper::k_qscale, templateHelper::k_s50, templateHelper::k_ss50, templateHelper::k_temperature, templateHelper::k_title, templateHelper::k_Vbias, templateHelper::SiPixelTemplateHeaderInfo< PayloadType, StoreType, TransientType, myType, myParam >::label_, cond::payloadInspector::PlotImage< PayloadType, cond::payloadInspector::SINGLE_IOV >::m_imageFileName, jetsAK4_Puppi_cff::payload, SiPixelPI::phase0size, SiPixelPI::phase1size, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, Phase1PixelMaps::resetOption(), runTheMatrix::ret, edm::second(), AlCaHLTBitMon_QueryRunRegistry::string, SiPixelPI::t_all, SiPixelPI::t_barrel, SiPixelPI::t_forward, makeGlobalPositionRcd_cfg::tag, createPayload::tagname, templateHelper::SiPixelTemplateHeaderInfo< PayloadType, StoreType, TransientType, myType, myParam >::theInfos_, and to_string().
591 gStyle->SetPalette(kRainBow);
593 TGaxis::SetMaxDigits(2);
596 auto tag = cond::payloadInspector::PlotBase::getTag<0>();
597 auto iov =
tag.iovs.front();
599 std::vector<StoreType> thePixelTemp_;
603 if (!TransientType::pushfile(*
payload, thePixelTemp_)) {
604 throw cms::Exception(
label_) <<
"\nERROR: Templates not filled correctly. Check the conditions. Using " 606 <<
payload->version() <<
"\n\n";
611 for (
const auto& theTemp : thePixelTemp_) {
613 info.ID = theTemp.head.ID;
614 info.NTy = theTemp.head.NTy;
615 info.NTyx = theTemp.head.NTyx;
616 info.NTxx = theTemp.head.NTxx;
617 info.Dtype = theTemp.head.Dtype;
618 info.qscale = theTemp.head.qscale;
619 info.lorywidth = theTemp.head.lorywidth;
620 info.lorxwidth = theTemp.head.lorxwidth;
621 info.lorybias = theTemp.head.lorybias;
622 info.lorxbias = theTemp.head.lorxbias;
623 info.Vbias = theTemp.head.Vbias;
624 info.temperature = theTemp.head.temperature;
625 info.fluence = theTemp.head.fluence;
626 info.s50 = theTemp.head.s50;
627 info.ss50 = theTemp.head.ss50;
628 info.templ_version = theTemp.head.templ_version;
629 info.Bfield = theTemp.head.Bfield;
636 theMaps.resetOption(
"COLZA L");
638 theMaps.resetOption(
"COLZL");
647 theMaps.bookBarrelHistograms(
"templateLABarrel",
first.c_str(),
second.c_str());
649 theMaps.bookForwardHistograms(
"templateLAForward",
first.c_str(),
second.c_str());
651 theMaps.bookBarrelHistograms(
"templateLA",
first.c_str(),
second.c_str());
652 theMaps.bookForwardHistograms(
"templateLA",
first.c_str(),
second.c_str());
658 std::map<unsigned int, short> templMap =
payload->getTemplateIDs();
661 <<
"There are " << templMap.size()
662 <<
" DetIds in this payload. SiPixelTempate Lorentz Angle maps are not supported for non-Phase1 Pixel " 664 TCanvas
canvas(
"Canv",
"Canv", 1200, 1000);
672 <<
" DetIds in this payload !" 673 <<
"\n **************************** \n";
677 for (
auto const&
entry : templMap) {
682 std::function<float(headerParam, header_info)> cutFunctor = [](
headerParam my_param, header_info myInfo) {
686 return (
float)myInfo.ID;
688 return (
float)myInfo.NTy;
690 return (
float)myInfo.NTyx;
692 return (
float)myInfo.NTxx;
694 return (
float)myInfo.Dtype;
696 return (
float)myInfo.qscale;
698 return (
float)myInfo.lorywidth;
700 return (
float)myInfo.lorxwidth;
702 return (
float)myInfo.lorybias;
704 return (
float)myInfo.lorxbias;
706 return (
float)myInfo.Vbias;
708 return (
float)myInfo.temperature;
710 return (
float)myInfo.fluence;
712 return (
float)myInfo.s50;
714 return (
float)myInfo.ss50;
716 return (
float)myInfo.templ_version;
718 return (
float)myInfo.Bfield;
729 theMaps.fillBarrelBin(
"templateLA",
entry.first, cutFunctor(myParam, theInfo));
732 theMaps.fillForwardBin(
"templateLA",
entry.first, cutFunctor(myParam, theInfo));
735 theMaps.fillBarrelBin(
"templateLABarrel",
entry.first, cutFunctor(myParam, theInfo));
737 theMaps.fillForwardBin(
"templateLAForward",
entry.first, cutFunctor(myParam, theInfo));
741 theMaps.beautifyAllHistograms();
745 theMaps.drawBarrelMaps(
"templateLABarrel",
canvas);
747 theMaps.drawForwardMaps(
"templateLAForward",
canvas);
749 theMaps.drawSummaryMaps(
"templateLA",
canvas);
753 TPaveText ksPt(0, 0, 0.88, 0.04,
"NDC");
754 ksPt.SetBorderSize(0);
755 ksPt.SetFillColor(0);
756 const char* textToAdd = Form(
"%s Tag: #color[2]{%s}, IOV: #color[2]{%s}. Payload hash: #color[2]{%s}",
760 (std::get<1>(iov)).c_str());
761 ksPt.AddText(textToAdd);
std::string m_imageFileName
ret
prodAgent to be discontinued
static const unsigned int phase0size
static constexpr const char * header_types[]
Log< level::Error, false > LogError
static std::string to_string(const XMLCh *ch)
static std::string const input
U second(std::pair< T, U > const &p)
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)