479 gStyle->SetOptStat(
"mr");
484 auto theIOVs = cond::payloadInspector::PlotBase::getTag<0>().iovs;
485 auto tagname1 = cond::payloadInspector::PlotBase::getTag<0>().name;
487 auto firstiov = theIOVs.front();
488 std::tuple<cond::Time_t, cond::Hash> lastiov;
494 auto tag2iovs = cond::payloadInspector::PlotBase::getTag<1>().iovs;
495 tagname2 = cond::payloadInspector::PlotBase::getTag<1>().name;
496 lastiov = tag2iovs.front();
498 lastiov = theIOVs.back();
504 auto ip = paramValues.find(
"SetLog");
505 if (ip != paramValues.end()) {
506 auto answer = boost::lexical_cast<std::string>(ip->second);
510 <<
" is not a valid setting for this parameter, please use True,False,1,0,Yes,No \n\n";
514 std::shared_ptr<PayloadType> last_payload = this->
fetchPayload(std::get<1>(lastiov));
515 std::shared_ptr<PayloadType> first_payload = this->
fetchPayload(std::get<1>(firstiov));
517 std::string lastIOVsince = std::to_string(std::get<0>(lastiov));
518 std::string firstIOVsince = std::to_string(std::get<0>(firstiov));
520 std::vector<uint32_t> f_detids, l_detids;
521 last_payload->getDetIds(l_detids);
522 first_payload->getDetIds(f_detids);
524 float minimum(9999.);
525 float maximum(-9999.);
529 maximum =
std::max(last_payload->getGainHigh(), first_payload->getGainHigh());
530 minimum =
std::min(last_payload->getGainLow(), first_payload->getGainLow());
533 maximum =
std::max(last_payload->getPedHigh(), first_payload->getPedHigh());
534 minimum =
std::min(last_payload->getPedLow(), first_payload->getPedLow());
555 const char* path_toTopologyXML = is_l_phase0 ?
"Geometry/TrackerCommonData/data/trackerParameters.xml"
556 :
"Geometry/TrackerCommonData/data/PhaseI/trackerParameters.xml";
562 Form(
"Last SiPixel Gain Calibration %s - %s", (
isForHLT_ ?
"ForHLT" :
"Offline"),
TypeName[myType]),
564 Form(
"# %ss", (
isForHLT_ ?
"column" :
"pixel")),
569 path_toTopologyXML = is_f_phase0 ?
"Geometry/TrackerCommonData/data/trackerParameters.xml"
570 :
"Geometry/TrackerCommonData/data/PhaseI/trackerParameters.xml";
576 Form(
"First SiPixel Gain Calibration %s - %s", (
isForHLT_ ?
"ForHLT" :
"Offline"),
TypeName[myType]),
578 Form(
"# %ss", (
isForHLT_ ?
"column" :
"pixel")),
592 f_myPlots.setLogScale();
593 l_myPlots.setLogScale();
596 l_myPlots.beautify(kRed, -1);
597 f_myPlots.beautify(kAzure, -1);
599 l_myPlots.draw(
canvas,
isBarrel,
"HIST", (!is_f_phase0 || !is_l_phase0));
600 f_myPlots.draw(
canvas,
isBarrel,
"HISTsames", (!is_f_phase0 || !is_l_phase0));
603 l_myPlots.rescaleMax(f_myPlots);
607 std::unique_ptr<TLegend>
legend;
609 legend = std::make_unique<TLegend>(0.36, 0.86, 0.94, 0.92);
610 legend->AddEntry(l_myPlots.getHistoFromMap(colorTag).get(), (
"#color[2]{" + tagname2 +
"}").c_str(),
"F");
611 legend->AddEntry(f_myPlots.getHistoFromMap(colorTag).get(), (
"#color[4]{" + tagname1 +
"}").c_str(),
"F");
612 legend->SetTextSize(0.024);
614 legend = std::make_unique<TLegend>(0.58, 0.80, 0.90, 0.92);
615 legend->AddEntry(l_myPlots.getHistoFromMap(colorTag).get(), (
"#color[2]{" + lastIOVsince +
"}").c_str(),
"F");
616 legend->AddEntry(f_myPlots.getHistoFromMap(colorTag).get(), (
"#color[4]{" + firstIOVsince +
"}").c_str(),
"F");
617 legend->SetTextSize(0.040);
621 unsigned int maxPads =
isBarrel ? 4 : 12;
622 for (
unsigned int c = 1;
c <= maxPads;
c++) {
634 ltx.SetTextSize(0.05);
635 ltx.SetTextAlign(11);
637 for (
unsigned int c = 1;
c <= maxPads;
c++) {
640 auto leftX = setLog ? 0. : 0.1;
641 ltx.DrawLatexNDC(gPad->GetLeftMargin() + leftX,
642 1 - gPad->GetTopMargin() + 0.01,
644 "} vs #color[2]{" + std::to_string(std::get<0>(lastiov)) +
"}")