831 auto theIOVs = cond::payloadInspector::PlotBase::getTag<0>().iovs;
832 auto f_tagname = cond::payloadInspector::PlotBase::getTag<0>().
name;
834 auto firstiov = theIOVs.front();
835 std::tuple<cond::Time_t, cond::Hash> lastiov;
841 auto tag2iovs = cond::payloadInspector::PlotBase::getTag<1>().iovs;
842 l_tagname = cond::payloadInspector::PlotBase::getTag<1>().
name;
843 lastiov = tag2iovs.front();
845 lastiov = theIOVs.back();
855 "Sim Beam Spot Parameters Difference Summary",
"Sim Beam Spot Parameters Difference summary", 1000, 1000);
857 canvas.cd(1)->SetTopMargin(0.10);
858 canvas.cd(1)->SetBottomMargin(0.06);
859 canvas.cd(1)->SetLeftMargin(0.23);
860 canvas.cd(1)->SetRightMargin(0.16);
865 auto h2_SimBSParameters = std::make_unique<TH2F>(
"Parameters",
"", 1, 0.0, 1.0, 9, 0, 9.);
866 h2_SimBSParameters->SetStats(
false);
867 h2_SimBSParameters->GetXaxis()->SetBinLabel(1,
"Value");
868 h2_SimBSParameters->GetXaxis()->LabelsOption(
"h");
869 h2_SimBSParameters->GetYaxis()->SetLabelSize(0.05);
870 h2_SimBSParameters->GetXaxis()->SetLabelSize(0.05);
871 h2_SimBSParameters->SetMarkerSize(1.5);
878 std::stringstream ss1, ss2;
887 const auto diffPars = fBS.diffCentralValues(lBS);
890 unsigned int yBin = 9;
894 h2_SimBSParameters->GetYaxis()->SetBinLabel(
yBin, theLabel.c_str());
895 h2_SimBSParameters->SetBinContent(1,
yBin, diffPars[
foo]);
900 auto h2_SimBSShadow = (TH2F*)(h2_SimBSParameters->Clone(
"shadow"));
901 h2_SimBSShadow->GetZaxis()->SetTitle(
"#Delta Parameter(payload A - payload B)");
902 h2_SimBSShadow->GetZaxis()->CenterTitle();
903 h2_SimBSShadow->GetZaxis()->SetTitleOffset(1.5);
906 double max = h2_SimBSShadow->GetMaximum();
907 double min = h2_SimBSShadow->GetMinimum();
908 double val_white = 0.;
909 double per_white = (
max !=
min) ? ((val_white -
min) / (
max -
min)) : 0.5;
912 double Red[
number] = {0., 1., 1.};
913 double Green[
number] = {0., 1., 0.};
914 double Blue[
number] = {1., 1., 0.};
915 double Stops[
number] = {0., per_white, 1.};
917 h2_SimBSShadow->SetContour(nb);
918 TColor::CreateGradientColorTable(
number, Stops, Red, Green, Blue, nb);
920 h2_SimBSShadow->Draw(
"colz");
921 h2_SimBSParameters->Draw(
"TEXTsame");
925 ltx.SetTextSize(0.025);
926 ltx.SetTextAlign(11);
936 gPad->GetLeftMargin(),
937 1 - gPad->GetTopMargin() + 0.025,
939 "#splitline{A = #color[4]{%s}: %s}{B = #color[4]{%s}: %s}", f_tagname, f_runLSs, l_tagname, l_runLSs))
943 gPad->GetLeftMargin(),
944 1 - gPad->GetTopMargin() + 0.025,
945 (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)