564 gStyle->SetOptStat(
"mr");
569 auto theIOVs = cond::payloadInspector::PlotBase::getTag<0>().iovs;
570 auto f_tagname = cond::payloadInspector::PlotBase::getTag<0>().name;
572 auto firstiov = theIOVs.front();
573 std::tuple<cond::Time_t, cond::Hash> lastiov;
579 auto tag2iovs = cond::payloadInspector::PlotBase::getTag<1>().iovs;
580 l_tagname = cond::payloadInspector::PlotBase::getTag<1>().name;
581 lastiov = tag2iovs.front();
583 lastiov = theIOVs.back();
589 auto ip = paramValues.find(
"SetLog");
590 if (ip != paramValues.end()) {
591 auto answer = boost::lexical_cast<std::string>(ip->second);
595 <<
" is not a valid setting for this parameter, please use True,False,1,0,Yes,No \n\n";
599 std::shared_ptr<PayloadType> last_payload = this->
fetchPayload(std::get<1>(lastiov));
600 std::shared_ptr<PayloadType> first_payload = this->
fetchPayload(std::get<1>(firstiov));
602 std::string lastIOVsince = std::to_string(std::get<0>(lastiov));
603 std::string firstIOVsince = std::to_string(std::get<0>(firstiov));
605 std::vector<uint32_t> f_detids, l_detids;
606 last_payload->getDetIds(l_detids);
607 first_payload->getDetIds(f_detids);
609 float minimum(9999.);
610 float maximum(-9999.);
614 maximum =
std::max(last_payload->getGainHigh(), first_payload->getGainHigh());
615 minimum =
std::min(last_payload->getGainLow(), first_payload->getGainLow());
618 maximum =
std::max(last_payload->getPedHigh(), first_payload->getPedHigh());
619 minimum =
std::min(last_payload->getPedLow(), first_payload->getPedLow());
638 const char* path_toTopologyXML = l_phaseInfo.
pathToTopoXML();
645 Form(
"Last SiPixel Gain Calibration %s - %s", (
isForHLT_ ?
"ForHLT" :
"Offline"),
TypeName[myType]),
647 Form(
"# %ss", (
isForHLT_ ?
"column" :
"pixel")),
652 path_toTopologyXML = f_phaseInfo.pathToTopoXML();
659 Form(
"First SiPixel Gain Calibration %s - %s", (
isForHLT_ ?
"ForHLT" :
"Offline"),
TypeName[myType]),
661 Form(
"# %ss", (
isForHLT_ ?
"column" :
"pixel")),
675 f_myPlots.setLogScale();
676 l_myPlots.setLogScale();
679 l_myPlots.beautify(kRed, -1);
680 f_myPlots.beautify(kAzure, -1);
682 l_myPlots.draw(
canvas,
isBarrel,
"HIST", f_phaseInfo.isPhase1Comparison(l_phaseInfo));
683 f_myPlots.draw(
canvas,
isBarrel,
"HISTsames", f_phaseInfo.isPhase1Comparison(l_phaseInfo));
686 l_myPlots.rescaleMax(f_myPlots);
690 std::unique_ptr<TLegend>
legend;
692 legend = std::make_unique<TLegend>(0.36, 0.86, 0.94, 0.92);
693 legend->AddEntry(l_myPlots.getHistoFromMap(colorTag).get(), (
"#color[2]{" + l_tagname +
"}").c_str(),
"F");
694 legend->AddEntry(f_myPlots.getHistoFromMap(colorTag).get(), (
"#color[4]{" + f_tagname +
"}").c_str(),
"F");
695 legend->SetTextSize(0.024);
697 legend = std::make_unique<TLegend>(0.58, 0.80, 0.90, 0.92);
698 legend->AddEntry(l_myPlots.getHistoFromMap(colorTag).get(), (
"#color[2]{" + lastIOVsince +
"}").c_str(),
"F");
699 legend->AddEntry(f_myPlots.getHistoFromMap(colorTag).get(), (
"#color[4]{" + firstIOVsince +
"}").c_str(),
"F");
700 legend->SetTextSize(0.040);
704 unsigned int maxPads =
isBarrel ? 4 : 12;
705 for (
unsigned int c = 1;
c <= maxPads;
c++) {
717 ltx.SetTextSize(0.05);
718 ltx.SetTextAlign(11);
720 for (
unsigned int c = 1;
c <= maxPads;
c++) {
723 auto leftX = setLog ? 0. : 0.1;
724 ltx.DrawLatexNDC(gPad->GetLeftMargin() + leftX,
725 1 - gPad->GetTopMargin() + 0.01,
727 "} vs #color[2]{" + std::to_string(std::get<0>(lastiov)) +
"}")