1201 auto tag = cond::payloadInspector::PlotBase::getTag<0>();
1203 auto iov =
tag.iovs.front();
1205 gStyle->SetHistMinimumZero(kTRUE);
1209 std::function<double(parameters)> cutFunctor = [
this](
parameters my_param) {
1227 return m_payload->crabbingAngleCrossing();
1229 return m_payload->crabbingAngleSeparation();
1233 return m_payload->betaSeparationPlane();
1235 return m_payload->horizontalEmittance();
1249 TCanvas
canvas(
"Sim Beam Spot HL-LHC Parameters Summary",
"Sim BeamSpot HL-LHC Parameters summary", 1500, 1000);
1254 canvas.cd(1)->SetTopMargin(0.05);
1255 canvas.cd(1)->SetBottomMargin(0.06);
1256 canvas.cd(1)->SetLeftMargin(0.35);
1257 canvas.cd(1)->SetRightMargin(0.01);
1258 canvas.cd(1)->Modified();
1261 auto h2_SimBSHLLHCParameters = std::make_unique<TH2F>(
1263 h2_SimBSHLLHCParameters->SetStats(
false);
1264 h2_SimBSHLLHCParameters->GetXaxis()->SetBinLabel(1,
"Value");
1266 unsigned int yBin = 8;
1270 h2_SimBSHLLHCParameters->GetYaxis()->SetBinLabel(
yBin, theLabel.c_str());
1271 h2_SimBSHLLHCParameters->SetBinContent(1,
yBin, cutFunctor(param));
1275 h2_SimBSHLLHCParameters->GetXaxis()->LabelsOption(
"h");
1276 h2_SimBSHLLHCParameters->GetYaxis()->SetLabelSize(0.05);
1277 h2_SimBSHLLHCParameters->GetXaxis()->SetLabelSize(0.05);
1278 h2_SimBSHLLHCParameters->SetMarkerSize(1.5);
1279 h2_SimBSHLLHCParameters->Draw(
"TEXT");
1281 auto ltx = TLatex();
1282 ltx.SetTextFont(62);
1283 ltx.SetTextSize(0.030);
1284 ltx.SetTextAlign(11);
1289 gPad->GetLeftMargin(),
1290 1 - gPad->GetTopMargin() + 0.01,
1296 canvas.cd(2)->SetTopMargin(0.05);
1297 canvas.cd(2)->SetBottomMargin(0.06);
1298 canvas.cd(2)->SetLeftMargin(0.35);
1299 canvas.cd(2)->SetRightMargin(0.01);
1300 canvas.cd(2)->Modified();
1304 auto h2_SimBSHLLHCParameters_Extras =
1305 std::make_unique<TH2F>(
"Parameters Extras",
"", 1, 0.0, 1.0, span, 0,
static_cast<float>(span));
1306 h2_SimBSHLLHCParameters_Extras->SetStats(
false);
1307 h2_SimBSHLLHCParameters_Extras->GetXaxis()->SetBinLabel(1,
"Value");
1309 unsigned int yBin_Extras = span;
1313 h2_SimBSHLLHCParameters_Extras->GetYaxis()->SetBinLabel(yBin_Extras, theLabel.c_str());
1314 h2_SimBSHLLHCParameters_Extras->SetBinContent(1, yBin_Extras, cutFunctor(param));
1318 h2_SimBSHLLHCParameters_Extras->GetXaxis()->LabelsOption(
"h");
1319 h2_SimBSHLLHCParameters_Extras->GetYaxis()->SetLabelSize(0.05);
1320 h2_SimBSHLLHCParameters_Extras->GetXaxis()->SetLabelSize(0.05);
1321 h2_SimBSHLLHCParameters_Extras->SetMarkerSize(1.5);
1322 h2_SimBSHLLHCParameters_Extras->Draw(
"TEXT");
1325 gPad->GetLeftMargin(),
1326 1 - gPad->GetTopMargin() + 0.01,
std::string m_imageFileName
ret
prodAgent to be discontinued
static std::string to_string(const XMLCh *ch)
std::pair< unsigned int, unsigned int > unpack(cond::Time_t since)
std::shared_ptr< PayloadType > m_payload
std::string getStringFromParamEnum(const parameters ¶meter, const bool addUnits=false)
std::shared_ptr< PayloadType > fetchPayload(const cond::Hash &payloadHash)