922 auto theIOVs = cond::payloadInspector::PlotBase::getTag<0>().iovs;
923 auto f_tagname = cond::payloadInspector::PlotBase::getTag<0>().
name;
925 auto firstiov = theIOVs.front();
926 std::tuple<cond::Time_t, cond::Hash> lastiov;
932 auto tag2iovs = cond::payloadInspector::PlotBase::getTag<1>().iovs;
933 l_tagname = cond::payloadInspector::PlotBase::getTag<1>().
name;
934 lastiov = tag2iovs.front();
936 lastiov = theIOVs.back();
946 "Sim Beam Spot Parameters Difference Summary",
"Sim Beam Spot Parameters Difference summary", 1000, 1000);
948 canvas.cd(1)->SetTopMargin(0.10);
949 canvas.cd(1)->SetBottomMargin(0.06);
950 canvas.cd(1)->SetLeftMargin(0.23);
951 canvas.cd(1)->SetRightMargin(0.16);
957 h2_SimBSParameters->SetStats(
false);
958 h2_SimBSParameters->GetXaxis()->SetBinLabel(1,
"Value");
959 h2_SimBSParameters->GetXaxis()->LabelsOption(
"h");
960 h2_SimBSParameters->GetYaxis()->SetLabelSize(0.05);
961 h2_SimBSParameters->GetXaxis()->SetLabelSize(0.05);
962 h2_SimBSParameters->SetMarkerSize(1.5);
969 std::stringstream ss1, ss2;
978 const auto diffPars = fBS.diffCentralValues(lBS);
985 h2_SimBSParameters->GetYaxis()->SetBinLabel(
yBin, theLabel.c_str());
986 h2_SimBSParameters->SetBinContent(1,
yBin, diffPars[
foo]);
991 auto h2_SimBSShadow = (TH2F*)(h2_SimBSParameters->Clone(
"shadow"));
992 h2_SimBSShadow->GetZaxis()->SetTitle(
"#Delta Parameter(payload A - payload B)");
993 h2_SimBSShadow->GetZaxis()->CenterTitle();
994 h2_SimBSShadow->GetZaxis()->SetTitleOffset(1.5);
997 double max = h2_SimBSShadow->GetMaximum();
998 double min = h2_SimBSShadow->GetMinimum();
999 double val_white = 0.;
1000 double per_white = (
max !=
min) ? ((val_white -
min) / (
max -
min)) : 0.5;
1003 double Red[
number] = {0., 1., 1.};
1004 double Green[
number] = {0., 1., 0.};
1005 double Blue[
number] = {1., 1., 0.};
1006 double Stops[
number] = {0., per_white, 1.};
1008 h2_SimBSShadow->SetContour(nb);
1009 TColor::CreateGradientColorTable(
number, Stops, Red, Green, Blue, nb);
1011 h2_SimBSShadow->Draw(
"colz");
1012 h2_SimBSParameters->Draw(
"TEXTsame");
1014 auto ltx = TLatex();
1015 ltx.SetTextFont(62);
1016 ltx.SetTextSize(0.025);
1017 ltx.SetTextAlign(11);
1027 gPad->GetLeftMargin(),
1028 1 - gPad->GetTopMargin() + 0.025,
1030 "#splitline{A = #color[4]{%s}: %s}{B = #color[4]{%s}: %s}", f_tagname, f_runLSs, l_tagname, l_runLSs))
1034 gPad->GetLeftMargin(),
1035 1 - gPad->GetTopMargin() + 0.025,
1036 (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)