![]() |
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::MsTrackSeeder &seederObj, const xAOD::MuonSegmentContainer &segments, 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::MsTrackSeeder &seederObj, const xAOD::MuonSegmentContainer &segments, 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 MuonR4::MsTrackSeeder &seederObj, 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 MuonR4::MsTrackSeeder &seeder, const DisplayView view, PlotLegend &legend, Canvas_t &canvas) const |
| Add the truth segments to the canvas. | |
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. | |
| 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. | |
| SG::ReadHandleKey< ActsTrk::GeometryContext > | m_geoCtxKey {this, "AlignmentKey", "ActsAlignment", "cond handle key"} |
| 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 19 of file TrackVisualizationTool.h.
|
private |
Definition at line 64 of file TrackVisualizationTool.h.
|
private |
Definition at line 65 of file TrackVisualizationTool.h.
Enumeration to toggle whether the segment shall displayed on the barrel/endcap.
Definition at line 93 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 95 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 |
| seederObj | Configured instance of the track seeder which actually constructed the seeds. |
| 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 141 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 |
| seederObj | Configured instance of the track seeder which actually constructed the seeds. |
| segments | Container of all MS segments in the event |
| seeds | The constructed track seeds from the event |
Definition at line 123 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 |
| seederObj | Configured instance of the track seeder which actually constructed the seeds. |
| segments | Container of all MS segments in the event |
| extPrimitives | Extra TObjects that should be additionally painted onto the Canvases |
Definition at line 129 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 296 of file TrackVisualizationTool.cxx.
|
private |
Add the truth segments to the canvas.
| ctx | EventContext to access store gate |
| seederObj | Configured instance of the track seeder which actually constructed the seeds. |
| 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 251 of file TrackVisualizationTool.cxx.
|
finaloverridevirtual |
Definition at line 106 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 96 of file TrackVisualizationTool.cxx.
|
private |
Maximum canvases to draw.
Definition at line 140 of file TrackVisualizationTool.h.
|
private |
Prefix of the individual canvas file names <MANDATORY>
Definition at line 148 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 134 of file TrackVisualizationTool.h.
|
private |
Track extrapolation tool.
Definition at line 129 of file TrackVisualizationTool.h.
|
private |
Dependency on the geometry alignment.
Definition at line 138 of file TrackVisualizationTool.h.
|
mutableprivate |
|
mutableprivate |
Flag toggling whether all Canvases have been exhausted.
Definition at line 150 of file TrackVisualizationTool.h.
|
private |
If set to true each canvas is saved into a dedicated pdf file.
Definition at line 142 of file TrackVisualizationTool.h.
|
private |
If set to true a summary Canvas is created.
Definition at line 144 of file TrackVisualizationTool.h.
|
private |
Define the subdirectory in which the plots shall be saved.
Definition at line 146 of file TrackVisualizationTool.h.
|
private |
Key to the truth segment selection to draw the segment parameters.
Definition at line 136 of file TrackVisualizationTool.h.
|
private |
Service handle of the visualization service.
Definition at line 131 of file TrackVisualizationTool.h.