![]() |
ATLAS Offline Software
|
#include <TrackVisualizationTool.h>
Classes | |
| struct | PlotLegend |
| Helper struct to administer the markers & colors that are added to the legend. More... | |
Public Member Functions | |
| virtual | ~TrackVisualizationTool ()=default |
| Destructor. | |
| virtual StatusCode | initialize () override final |
| virtual void | displaySeeds (const EventContext &ctx, const MuonR4::MsTrackSeedContainer &seeds) const override final |
| Displays all segments on the representative cylinder in the R-Z & X-Y plane and draws the markers of the successfully built seeds & truth segments. | |
| virtual void | displaySeeds (const EventContext &ctx, const MuonR4::MsTrackSeedContainer &seeds, PrimitivesVec_t &&extPrimitives) const override final |
| Displays all segments on the representative cylinder in the R-Z & X-Y plane and draws the markers of the successfully built seeds & truth segments. | |
| virtual void | displayTrackSeedObj (const EventContext &ctx, const MuonR4::MsTrackSeed &seed, const OptBoundPars_t &parsToExt, const std::string &objName="") const override final |
| Visualizes the measurements of the segments on the track seed together with their predicted local line parameters as an obj file. | |
Private Types | |
| enum class | DisplayView { RZ , XY } |
| Enumeration to toggle whether the seeds shall be painted in x-y or R-z view. More... | |
| using | Canvas_t = IRootVisualizationService::ICanvasObject |
| using | Edges = Canvas_t::AxisRanges |
| using | Location = MuonR4::MsTrackSeed::Location |
| Enumeration to toggle whether the segment shall displayed on the barrel/endcap. | |
Private Member Functions | |
| void | displaySeeds (const EventContext &ctx, const DisplayView view, const xAOD::MuonSegmentContainer &segments, const MuonR4::MsTrackSeedContainer &seeds, PrimitivesVec_t &&extPrimitives) const |
| Actual implementation of the display seeds method with the augmentation to define the view. | |
| void | fillTruthSeedPoints (const EventContext &ctx, const DisplayView view, PlotLegend &legend, Canvas_t &canvas) const |
| Add the truth segments to the canvas. | |
| void | displaySeedSegmentsGlobalWithTruth (const EventContext &ctx, const DisplayView view, const MuonR4::MsTrackSeedContainer &seeds) const |
Static Private Member Functions | |
| static Amg::Vector2D | viewVector (const double phi, const Amg::Vector2D &posOnCylinder, const DisplayView view) |
| Transforms the projected vector into the actual view, if it's xy then an external phi is needed to place the marker. | |
Private Attributes | |
| ToolHandle< ActsTrk::IExtrapolationTool > | m_extrapolationTool {this, "ExtrapolationTool" ,"" } |
| Track extrapolation tool. | |
| ServiceHandle< IRootVisualizationService > | m_visualSvc {this, "VisualSvc", "MuonValR4::RootVisualizationService"} |
| Service handle of the visualization service. | |
| ServiceHandle< ActsTrk::ITrackingGeometrySvc > | m_trackingGeometrySvc {this, "TrackingGeometrySvc", "ActsTrackingGeometrySvc"} |
| Service handle to the tracking geometry service. | |
| IRootVisualizationService::ClientToken | m_clientToken {} |
| Token to present to the visualization service such that the display froms this tool are grouped together. | |
| SG::ReadHandleKey< xAOD::MuonSegmentContainer > | m_truthSegKey {this, "TruthSegkey", "MuonTruthSegments"} |
| Key to the truth segment selection to draw the segment parameters. | |
| ToolHandle< MuonR4::ITrackSeedingDiagnosticsTool > | m_seedingTool {this, "SeedingTool", ""} |
| The track seeding tool to construct the seed candidates and to estimate the initial parameters. | |
| SG::ReadHandleKey< xAOD::MuonSegmentContainer > | m_segmentKey {this, "SegmentContainer", "MuonSegmentsFromR4" } |
| Declare the data dependency on the standard Mdt+Rpc+Tgc segment container & on the NSW segment container. | |
| ActsTrk::ContextUtility | m_contextProvider {this} |
| Dependency on the geometry alignment. | |
| Gaudi::Property< unsigned > | m_canvasLimit {this, "CanvasLimit", 5000} |
| Maximum canvases to draw. | |
| Gaudi::Property< bool > | m_saveSinglePDFs {this, "saveSinglePDFs", true} |
| If set to true each canvas is saved into a dedicated pdf file. | |
| Gaudi::Property< bool > | m_saveSummaryPDF {this, "saveSummaryPDF", true} |
| If set to true a summary Canvas is created. | |
| Gaudi::Property< std::string > | m_subDir {this, "outSubDir", ""} |
| Define the subdirectory in which the plots shall be saved. | |
| Gaudi::Property< std::string > | m_canvasPrefix {this, "CanvasPreFix", "MsTrackValid"} |
| Prefix of the individual canvas file names <MANDATORY>. | |
| std::atomic< bool > | m_plotsDone {false} |
| Flag toggling whether all Canvases have been exhausted. | |
| std::atomic< unsigned > | m_objCounter {0} |
| How many obj have been produced. | |
Definition at line 22 of file TrackVisualizationTool.h.
|
private |
Definition at line 44 of file TrackVisualizationTool.h.
|
private |
Definition at line 45 of file TrackVisualizationTool.h.
Enumeration to toggle whether the segment shall displayed on the barrel/endcap.
Definition at line 73 of file TrackVisualizationTool.h.
|
strongprivate |
Enumeration to toggle whether the seeds shall be painted in x-y or R-z view.
| Enumerator | |
|---|---|
| RZ | |
| XY | |
Definition at line 75 of file TrackVisualizationTool.h.
|
virtualdefault |
Destructor.
|
private |
Actual implementation of the display seeds method with the augmentation to define the view.
| ctx | EventContext to access store gate & conditions |
| view | Actual view to display |
| segments | Container of all MS segments in the event |
| seeds | The constructed track seeds from the event |
| extPrimitives | Extra TObjects that should be additionally painted onto the Canvases |
First add the truth points
Draw the sector map
Definition at line 303 of file TrackVisualizationTool.cxx.
|
finaloverridevirtual |
Displays all segments on the representative cylinder in the R-Z & X-Y plane and draws the markers of the successfully built seeds & truth segments.
| ctx | EventContext to access store gate & conditions |
| seeds | The constructed track seeds from the event |
Definition at line 153 of file TrackVisualizationTool.cxx.
|
finaloverridevirtual |
Displays all segments on the representative cylinder in the R-Z & X-Y plane and draws the markers of the successfully built seeds & truth segments.
| ctx | EventContext to access store gate & conditions |
| seeds | The constructed track seeds from the event |
Definition at line 157 of file TrackVisualizationTool.cxx.
|
private |
Definition at line 177 of file TrackVisualizationTool.cxx.
|
finaloverridevirtual |
Visualizes the measurements of the segments on the track seed together with their predicted local line parameters as an obj file.
If parameters to extrapolate are parsed, then they're extrapolated to the end of the world and the trajectory is added to the obj
| ctx | EventContext to fetch the conditions data & the event information |
| seed | MsTrack to visualize |
| parsToExt | Parameters to extrapolate on top |
| objName | Extra token to be added to the file name |
Definition at line 443 of file TrackVisualizationTool.cxx.
|
private |
Add the truth segments to the canvas.
| ctx | EventContext to access store gate |
| view | Actual view to display |
| legend | Reference to the legend object to add the marker / truth legends |
| canvas | Reference to the canvas to which the drawn markers are appended to |
Definition at line 409 of file TrackVisualizationTool.cxx.
|
finaloverridevirtual |
Definition at line 133 of file TrackVisualizationTool.cxx.
|
staticprivate |
Transforms the projected vector into the actual view, if it's xy then an external phi is needed to place the marker.
| phi | Angle for the xy view - taken from the segment direction |
| posOnCylinder | Projection of the segment's position onto the seed cylinder |
| view | Actual view to display |
Definition at line 123 of file TrackVisualizationTool.cxx.
|
private |
Maximum canvases to draw.
Definition at line 129 of file TrackVisualizationTool.h.
|
private |
Prefix of the individual canvas file names <MANDATORY>.
Definition at line 137 of file TrackVisualizationTool.h.
|
private |
Token to present to the visualization service such that the display froms this tool are grouped together.
Definition at line 117 of file TrackVisualizationTool.h.
|
private |
Dependency on the geometry alignment.
Definition at line 127 of file TrackVisualizationTool.h.
|
private |
Track extrapolation tool.
Definition at line 110 of file TrackVisualizationTool.h.
|
mutableprivate |
|
mutableprivate |
Flag toggling whether all Canvases have been exhausted.
Definition at line 139 of file TrackVisualizationTool.h.
|
private |
If set to true each canvas is saved into a dedicated pdf file.
Definition at line 131 of file TrackVisualizationTool.h.
|
private |
If set to true a summary Canvas is created.
Definition at line 133 of file TrackVisualizationTool.h.
|
private |
The track seeding tool to construct the seed candidates and to estimate the initial parameters.
Definition at line 121 of file TrackVisualizationTool.h.
|
private |
Declare the data dependency on the standard Mdt+Rpc+Tgc segment container & on the NSW segment container.
Definition at line 124 of file TrackVisualizationTool.h.
|
private |
Define the subdirectory in which the plots shall be saved.
Definition at line 135 of file TrackVisualizationTool.h.
|
private |
Service handle to the tracking geometry service.
Definition at line 114 of file TrackVisualizationTool.h.
|
private |
Key to the truth segment selection to draw the segment parameters.
Definition at line 119 of file TrackVisualizationTool.h.
|
private |
Service handle of the visualization service.
Definition at line 112 of file TrackVisualizationTool.h.