Helper struct to administer the markers & colors that are added to the legend.
More...
Helper struct to administer the markers & colors that are added to the legend.
Definition at line 60 of file TrackVisualizationTool.h.
◆ LegendEntry_t
◆ PlotLegend()
MuonValR4::TrackVisualizationTool::PlotLegend::PlotLegend |
( |
const double |
xLow, |
|
|
const double |
yLow, |
|
|
const double |
xHigh, |
|
|
const double |
yHigh |
|
) |
| |
|
inline |
Constructor defining the Legned placement.
- Parameters
-
xLow | Low x-end of the Legend (relative coords.) |
yLow | Low y-end of the Legend (relative coords.) |
xHigh | High x-end of the Legend (relative coords.) |
yHigh | High y-end of the Legend (relative coords.) |
Definition at line 66 of file TrackVisualizationTool.h.
68 legend{std::make_unique<TLegend>(xLow, yLow, xHigh, yHigh)}{}
◆ addColor()
void MuonValR4::TrackVisualizationTool::PlotLegend::addColor |
( |
const int |
color, |
|
|
const std::string & |
label |
|
) |
| |
Add new color legend entry.
- Parameters
-
color | TColor code of the color to add |
label | Text to be dispayed |
Definition at line 70 of file TrackVisualizationTool.cxx.
76 colors.insert(std::make_pair(
color, std::move(box)));
◆ addMarker()
void MuonValR4::TrackVisualizationTool::PlotLegend::addMarker |
( |
const int |
marker, |
|
|
const std::string & |
label |
|
) |
| |
Add new Marker style to the legend entry.
- Parameters
-
marker | TMarkerStyle code to add |
label | Text to be dispayed |
Definition at line 78 of file TrackVisualizationTool.cxx.
83 legend->AddEntry(tMarker.get(),
label.c_str(),
"P");
◆ colors
LegendEntry_t MuonValR4::TrackVisualizationTool::PlotLegend::colors {} |
◆ legend
std::unique_ptr<TLegend> MuonValR4::TrackVisualizationTool::PlotLegend::legend {} |
◆ markers
LegendEntry_t MuonValR4::TrackVisualizationTool::PlotLegend::markers {} |
The documentation for this struct was generated from the following files:
std::unique_ptr< TBox > drawBox(const Amg::Vector3D &boxCenter, const double boxWidth, const double boxHeight, const int color=kGreen+2, const int fillStyle=hollowFilling, const int view=objViewEta)
Creates a box for drawing, e.g strip measurements.