37 AlignPCLThresholds_Display()
38 :
cond::payloadInspector::PlotImage<
AlignPCLThresholds>(
"Display of threshold parameters for SiPixelAli PCL") {
42 bool fill(
const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs)
override {
43 auto iov = iovs.front();
45 auto alignables =
payload->getAlignableList();
47 TCanvas
canvas(
"Alignment PCL thresholds summary",
"Alignment PCL thresholds summary", 1500, 800);
51 canvas.SetBottomMargin(0.06);
52 canvas.SetLeftMargin(0.11);
53 canvas.SetRightMargin(0.05);
58 "Thresholds",
"Alignment parameter thresholds", alignables.size(), 0, alignables.size(), 24, 0, 24);
66 return payload->getCut(alignable, coord);
68 return payload->getSigCut(alignable, coord);
70 return payload->getMaxMoveCut(alignable, coord);
72 return payload->getMaxErrorCut(alignable, coord);
80 unsigned int xBin = 0;
81 for (
const auto& alignable : alignables) {
84 auto xLabel = replaceAll(replaceAll(alignable,
"minus",
"(-)"),
"plus",
"(+)");
86 unsigned int yBin = 24;
128 return "should never be here";
138 return "#Delta/#sigma ";
144 return "should never be here";
154 size_t start_pos = 0;
155 while ((start_pos =
out.find(from, start_pos)) != std::string::npos) {
156 out.replace(start_pos, from.length(),
to);
157 start_pos +=
to.length();