565 gStyle->SetOptStat(
"mr");
570 auto theIOVs = cond::payloadInspector::PlotBase::getTag<0>().iovs;
571 auto f_tagname = cond::payloadInspector::PlotBase::getTag<0>().name;
573 auto firstiov = theIOVs.front();
574 std::tuple<cond::Time_t, cond::Hash> lastiov;
580 auto tag2iovs = cond::payloadInspector::PlotBase::getTag<1>().iovs;
581 l_tagname = cond::payloadInspector::PlotBase::getTag<1>().name;
582 lastiov = tag2iovs.front();
584 lastiov = theIOVs.back();
590 auto ip = paramValues.find(
"SetLog");
591 if (ip != paramValues.end()) {
592 auto answer = boost::lexical_cast<std::string>(ip->second);
596 <<
" is not a valid setting for this parameter, please use True,False,1,0,Yes,No \n\n";
600 std::shared_ptr<PayloadType> last_payload = this->
fetchPayload(std::get<1>(lastiov));
601 std::shared_ptr<PayloadType> first_payload = this->
fetchPayload(std::get<1>(firstiov));
603 std::string lastIOVsince = std::to_string(std::get<0>(lastiov));
604 std::string firstIOVsince = std::to_string(std::get<0>(firstiov));
606 std::vector<uint32_t> f_detids, l_detids;
607 last_payload->getDetIds(l_detids);
608 first_payload->getDetIds(f_detids);
610 float minimum(9999.);
611 float maximum(-9999.);
615 maximum =
std::max(last_payload->getGainHigh(), first_payload->getGainHigh());
616 minimum =
std::min(last_payload->getGainLow(), first_payload->getGainLow());
619 maximum =
std::max(last_payload->getPedHigh(), first_payload->getPedHigh());
620 minimum =
std::min(last_payload->getPedLow(), first_payload->getPedLow());
639 const char* path_toTopologyXML = l_phaseInfo.
pathToTopoXML();
646 Form(
"Last SiPixel Gain Calibration %s - %s", (
isForHLT_ ?
"ForHLT" :
"Offline"),
TypeName[myType]),
648 Form(
"# %ss", (
isForHLT_ ?
"column" :
"pixel")),
653 path_toTopologyXML = f_phaseInfo.pathToTopoXML();
660 Form(
"First SiPixel Gain Calibration %s - %s", (
isForHLT_ ?
"ForHLT" :
"Offline"),
TypeName[myType]),
662 Form(
"# %ss", (
isForHLT_ ?
"column" :
"pixel")),
676 f_myPlots.setLogScale();
677 l_myPlots.setLogScale();
680 l_myPlots.beautify(kRed, -1);
681 f_myPlots.beautify(kAzure, -1);
683 l_myPlots.draw(
canvas,
isBarrel,
"HIST", f_phaseInfo.isPhase1Comparison(l_phaseInfo));
684 f_myPlots.draw(
canvas,
isBarrel,
"HISTsames", f_phaseInfo.isPhase1Comparison(l_phaseInfo));
687 l_myPlots.rescaleMax(f_myPlots);
691 std::unique_ptr<TLegend>
legend;
693 legend = std::make_unique<TLegend>(0.36, 0.86, 0.94, 0.92);
694 legend->AddEntry(l_myPlots.getHistoFromMap(colorTag).get(), (
"#color[2]{" + l_tagname +
"}").c_str(),
"F");
695 legend->AddEntry(f_myPlots.getHistoFromMap(colorTag).get(), (
"#color[4]{" + f_tagname +
"}").c_str(),
"F");
696 legend->SetTextSize(0.024);
698 legend = std::make_unique<TLegend>(0.58, 0.80, 0.90, 0.92);
699 legend->AddEntry(l_myPlots.getHistoFromMap(colorTag).get(), (
"#color[2]{" + lastIOVsince +
"}").c_str(),
"F");
700 legend->AddEntry(f_myPlots.getHistoFromMap(colorTag).get(), (
"#color[4]{" + firstIOVsince +
"}").c_str(),
"F");
701 legend->SetTextSize(0.040);
705 unsigned int maxPads =
isBarrel ? 4 : 12;
706 for (
unsigned int c = 1;
c <= maxPads;
c++) {
718 ltx.SetTextSize(0.05);
719 ltx.SetTextAlign(11);
721 for (
unsigned int c = 1;
c <= maxPads;
c++) {
724 auto leftX = setLog ? 0. : 0.1;
725 ltx.DrawLatexNDC(gPad->GetLeftMargin() + leftX,
726 1 - gPad->GetTopMargin() + 0.01,
728 "} vs #color[2]{" + std::to_string(std::get<0>(lastiov)) +
"}")