945 auto theIOVs = cond::payloadInspector::PlotBase::getTag<0>().
iovs;
946 auto f_tagname = cond::payloadInspector::PlotBase::getTag<0>().
name;
948 auto firstiov = theIOVs.front();
949 std::tuple<cond::Time_t, cond::Hash> lastiov;
955 auto tag2iovs = cond::payloadInspector::PlotBase::getTag<1>().
iovs;
956 l_tagname = cond::payloadInspector::PlotBase::getTag<1>().
name;
957 lastiov = tag2iovs.front();
959 lastiov = theIOVs.back();
969 "Sim Beam Spot Parameters Difference Summary",
"Sim Beam Spot Parameters Difference summary", 1000, 1000);
971 canvas.cd(1)->SetTopMargin(0.10);
972 canvas.cd(1)->SetBottomMargin(0.06);
973 canvas.cd(1)->SetLeftMargin(0.23);
974 canvas.cd(1)->SetRightMargin(0.16);
980 h2_SimBSParameters->SetStats(
false);
981 h2_SimBSParameters->GetXaxis()->SetBinLabel(1,
"Value");
982 h2_SimBSParameters->GetXaxis()->LabelsOption(
"h");
983 h2_SimBSParameters->GetYaxis()->SetLabelSize(0.05);
984 h2_SimBSParameters->GetXaxis()->SetLabelSize(0.05);
985 h2_SimBSParameters->SetMarkerSize(1.5);
992 std::stringstream ss1, ss2;
1001 const auto diffPars = fBS.diffCentralValues(lBS);
1008 h2_SimBSParameters->GetYaxis()->SetBinLabel(
yBin, theLabel.c_str());
1009 h2_SimBSParameters->SetBinContent(1,
yBin, diffPars[
foo]);
1014 auto h2_SimBSShadow = (TH2F*)(h2_SimBSParameters->Clone(
"shadow"));
1015 h2_SimBSShadow->GetZaxis()->SetTitle(
"#Delta Parameter(payload A - payload B)");
1016 h2_SimBSShadow->GetZaxis()->CenterTitle();
1017 h2_SimBSShadow->GetZaxis()->SetTitleOffset(1.5);
1020 double max = h2_SimBSShadow->GetMaximum();
1021 double min = h2_SimBSShadow->GetMinimum();
1022 double val_white = 0.;
1023 double per_white = (
max !=
min) ? ((val_white -
min) / (
max -
min)) : 0.5;
1026 double Red[
number] = {0., 1., 1.};
1027 double Green[
number] = {0., 1., 0.};
1028 double Blue[
number] = {1., 1., 0.};
1029 double Stops[
number] = {0., per_white, 1.};
1031 h2_SimBSShadow->SetContour(nb);
1032 TColor::CreateGradientColorTable(
number, Stops, Red, Green, Blue, nb);
1034 h2_SimBSShadow->Draw(
"colz");
1035 h2_SimBSParameters->Draw(
"TEXTsame");
1037 auto ltx = TLatex();
1038 ltx.SetTextFont(62);
1039 ltx.SetTextSize(0.025);
1040 ltx.SetTextAlign(11);
1050 gPad->GetLeftMargin(),
1051 1 - gPad->GetTopMargin() + 0.025,
1053 "#splitline{A = #color[4]{%s}: %s}{B = #color[4]{%s}: %s}", f_tagname, f_runLSs, l_tagname, l_runLSs))
1057 gPad->GetLeftMargin(),
1058 1 - gPad->GetTopMargin() + 0.025,
1059 (fmt::sprintf(
"#splitline{#color[4]{%s}}{A = %s | B = %s}", f_tagname, l_runLSs, f_runLSs)).c_str());
std::string m_imageFileName
static std::string to_string(const XMLCh *ch)
std::pair< unsigned int, unsigned int > unpack(cond::Time_t since)
PlotAnnotations m_plotAnnotations
std::string getStringFromParamEnum(const parameters ¶meter, const bool addUnits=false)
Log< level::Warning, true > LogPrint
std::shared_ptr< PayloadType > f_payload
std::shared_ptr< PayloadType > l_payload
std::shared_ptr< PayloadType > fetchPayload(const cond::Hash &payloadHash)