566 gStyle->SetOptStat(
"mr");
571 auto theIOVs = cond::payloadInspector::PlotBase::getTag<0>().iovs;
572 auto f_tagname = cond::payloadInspector::PlotBase::getTag<0>().name;
574 auto firstiov = theIOVs.front();
575 std::tuple<cond::Time_t, cond::Hash> lastiov;
581 auto tag2iovs = cond::payloadInspector::PlotBase::getTag<1>().iovs;
582 l_tagname = cond::payloadInspector::PlotBase::getTag<1>().name;
583 lastiov = tag2iovs.front();
585 lastiov = theIOVs.back();
591 auto ip = paramValues.find(
"SetLog");
592 if (ip != paramValues.end()) {
593 auto answer = boost::lexical_cast<std::string>(ip->second);
596 <<
"\nERROR: " << answer
597 <<
" is not a valid setting for this parameter, please use True,False,1,0,Yes,No \n\n";
601 std::shared_ptr<PayloadType> last_payload = this->
fetchPayload(std::get<1>(lastiov));
602 std::shared_ptr<PayloadType> first_payload = this->
fetchPayload(std::get<1>(firstiov));
604 std::string lastIOVsince = std::to_string(std::get<0>(lastiov));
605 std::string firstIOVsince = std::to_string(std::get<0>(firstiov));
607 std::vector<uint32_t> f_detids, l_detids;
608 last_payload->getDetIds(l_detids);
609 first_payload->getDetIds(f_detids);
611 float minimum(9999.);
612 float maximum(-9999.);
616 maximum =
std::max(last_payload->getGainHigh(), first_payload->getGainHigh());
617 minimum =
std::min(last_payload->getGainLow(), first_payload->getGainLow());
620 maximum =
std::max(last_payload->getPedHigh(), first_payload->getPedHigh());
621 minimum =
std::min(last_payload->getPedLow(), first_payload->getPedLow());
640 const char* path_toTopologyXML = l_phaseInfo.
pathToTopoXML();
647 Form(
"Last SiPixel Gain Calibration %s - %s", (
isForHLT_ ?
"ForHLT" :
"Offline"),
TypeName[myType]),
649 Form(
"# %ss", (
isForHLT_ ?
"column" :
"pixel")),
654 path_toTopologyXML = f_phaseInfo.pathToTopoXML();
661 Form(
"First SiPixel Gain Calibration %s - %s", (
isForHLT_ ?
"ForHLT" :
"Offline"),
TypeName[myType]),
663 Form(
"# %ss", (
isForHLT_ ?
"column" :
"pixel")),
677 f_myPlots.setLogScale();
678 l_myPlots.setLogScale();
681 l_myPlots.beautify(kRed, -1);
682 f_myPlots.beautify(kAzure, -1);
684 l_myPlots.draw(
canvas,
isBarrel,
"HIST", f_phaseInfo.isPhase1Comparison(l_phaseInfo));
685 f_myPlots.draw(
canvas,
isBarrel,
"HISTsames", f_phaseInfo.isPhase1Comparison(l_phaseInfo));
688 l_myPlots.rescaleMax(f_myPlots);
692 std::unique_ptr<TLegend>
legend;
694 legend = std::make_unique<TLegend>(0.36, 0.86, 0.94, 0.92);
695 legend->AddEntry(l_myPlots.getHistoFromMap(colorTag).get(), (
"#color[2]{" + l_tagname +
"}").c_str(),
"F");
696 legend->AddEntry(f_myPlots.getHistoFromMap(colorTag).get(), (
"#color[4]{" + f_tagname +
"}").c_str(),
"F");
697 legend->SetTextSize(0.024);
699 legend = std::make_unique<TLegend>(0.58, 0.80, 0.90, 0.92);
700 legend->AddEntry(l_myPlots.getHistoFromMap(colorTag).get(), (
"#color[2]{" + lastIOVsince +
"}").c_str(),
"F");
701 legend->AddEntry(f_myPlots.getHistoFromMap(colorTag).get(), (
"#color[4]{" + firstIOVsince +
"}").c_str(),
"F");
702 legend->SetTextSize(0.040);
706 unsigned int maxPads =
isBarrel ? 4 : 12;
707 for (
unsigned int c = 1;
c <= maxPads;
c++) {
719 ltx.SetTextSize(0.05);
720 ltx.SetTextAlign(11);
722 for (
unsigned int c = 1;
c <= maxPads;
c++) {
725 auto leftX = setLog ? 0. : 0.1;
726 ltx.DrawLatexNDC(gPad->GetLeftMargin() + leftX,
727 1 - gPad->GetTopMargin() + 0.01,
729 "} vs #color[2]{" + std::to_string(std::get<0>(lastiov)) +
"}")