ATLAS Offline Software
Public Types | Public Member Functions | List of all members
MuonValR4::IPatternVisualizationTool Class Referenceabstract

Helper tool to visualize a pattern recogntion incident or a certain stage of the segment fit. More...

#include <IPatternVisualizationTool.h>

Inheritance diagram for MuonValR4::IPatternVisualizationTool:
Collaboration diagram for MuonValR4::IPatternVisualizationTool:

Public Types

using PrimitivePtr = std::unique_ptr< TObject >
 
using PrimitiveVec = std::vector< PrimitivePtr >
 
using MaximumVec = std::vector< MuonR4::ActsPeakFinderForMuon::Maximum >
 
using TruthSegmentSet = std::unordered_set< const xAOD::MuonSegment * >
 

Public Member Functions

 DeclareInterfaceID (IPatternVisualizationTool, 1, 0)
 
virtual ~IPatternVisualizationTool ()=default
 
virtual void visualizeBucket (const EventContext &ctx, const MuonR4::SpacePointBucket &bucket, const std::string &extraLabel) const =0
 Draws the content of the bucket on a TCanvas. More...
 
virtual void visualizeBucket (const EventContext &ctx, const MuonR4::SpacePointBucket &bucket, const std::string &extraLabel, PrimitiveVec &&extraPaints) const =0
 Draws the content of the bucket on a TCanvas. More...
 
virtual void visualizeAccumulator (const EventContext &ctx, const MuonR4::HoughPlane &accumulator, const Acts::HoughTransformUtils::HoughAxisRanges &axisRanges, const MaximumVec &maxima, const std::string &extraLabel) const =0
 Visualize the content of the Hough accumulator in a TH2 histogram. More...
 
virtual void visualizeAccumulator (const EventContext &ctx, const MuonR4::HoughPlane &accumulator, const Acts::HoughTransformUtils::HoughAxisRanges &axisRanges, const MaximumVec &maxima, const std::string &extraLabel, PrimitiveVec &&extraPaints) const =0
 Visualize the content of the Hough accumulator in a TH2 histogram. More...
 
virtual void visualizeSeed (const EventContext &ctx, const MuonR4::SegmentSeed &seed, const std::string &extraLabel) const =0
 Visualize the used space points of the seed together with the seed parameters. More...
 
virtual void visualizeSeed (const EventContext &ctx, const MuonR4::SegmentSeed &seed, const std::string &extraLabel, PrimitiveVec &&extraPaints) const =0
 Visualize the used space points of the seed together with the seed parameters. More...
 
virtual void visualizeSegment (const EventContext &ctx, const MuonR4::Segment &segment, const std::string &extraLabel) const =0
 Visualize the used space points of the segment together with the seed parameters. More...
 
virtual void visualizeSegment (const EventContext &ctx, const MuonR4::Segment &segment, const std::string &extraLabel, PrimitiveVec &&extraPaints) const =0
 Visualize the used space points of the segment together with the seed parameters. More...
 
virtual bool isTruthMatched (const MuonR4::SpacePoint &hit) const =0
 Returns whether the hit has been used in the truth-segment building. More...
 
virtual bool isTruthMatched (const xAOD::UncalibratedMeasurement &hit) const =0
 
virtual TruthSegmentSet fetchTruthSegs (const std::vector< const MuonR4::SpacePoint * > &hits) const =0
 Fetches all truth segments where at least one measurement in the list was used to build them. More...
 
virtual TruthSegmentSet fetchTruthSegs (const std::vector< const xAOD::UncalibratedMeasurement * > &hits) const =0
 

Detailed Description

Helper tool to visualize a pattern recogntion incident or a certain stage of the segment fit.

Definition at line 26 of file IPatternVisualizationTool.h.

Member Typedef Documentation

◆ MaximumVec

using MuonValR4::IPatternVisualizationTool::MaximumVec = std::vector<MuonR4::ActsPeakFinderForMuon::Maximum>

Definition at line 32 of file IPatternVisualizationTool.h.

◆ PrimitivePtr

using MuonValR4::IPatternVisualizationTool::PrimitivePtr = std::unique_ptr<TObject>

Definition at line 30 of file IPatternVisualizationTool.h.

◆ PrimitiveVec

Definition at line 31 of file IPatternVisualizationTool.h.

◆ TruthSegmentSet

Definition at line 116 of file IPatternVisualizationTool.h.

Constructor & Destructor Documentation

◆ ~IPatternVisualizationTool()

virtual MuonValR4::IPatternVisualizationTool::~IPatternVisualizationTool ( )
virtualdefault

Member Function Documentation

◆ DeclareInterfaceID()

MuonValR4::IPatternVisualizationTool::DeclareInterfaceID ( IPatternVisualizationTool  ,
,
 
)

◆ fetchTruthSegs() [1/2]

virtual TruthSegmentSet MuonValR4::IPatternVisualizationTool::fetchTruthSegs ( const std::vector< const MuonR4::SpacePoint * > &  hits) const
pure virtual

Fetches all truth segments where at least one measurement in the list was used to build them.

Parameters
hitsVector of hits to search

◆ fetchTruthSegs() [2/2]

virtual TruthSegmentSet MuonValR4::IPatternVisualizationTool::fetchTruthSegs ( const std::vector< const xAOD::UncalibratedMeasurement * > &  hits) const
pure virtual

◆ isTruthMatched() [1/2]

virtual bool MuonValR4::IPatternVisualizationTool::isTruthMatched ( const MuonR4::SpacePoint hit) const
pure virtual

Returns whether the hit has been used in the truth-segment building.

Parameters
hitReference to the hit to check

◆ isTruthMatched() [2/2]

virtual bool MuonValR4::IPatternVisualizationTool::isTruthMatched ( const xAOD::UncalibratedMeasurement hit) const
pure virtual

◆ visualizeAccumulator() [1/2]

virtual void MuonValR4::IPatternVisualizationTool::visualizeAccumulator ( const EventContext &  ctx,
const MuonR4::HoughPlane accumulator,
const Acts::HoughTransformUtils::HoughAxisRanges &  axisRanges,
const MaximumVec maxima,
const std::string &  extraLabel 
) const
pure virtual

Visualize the content of the Hough accumulator in a TH2 histogram.

Parameters
ctxEventContext to fetch calibration & alignment
accumulatorHough accumulator to visualize
axisRangesCurrent axis ranges to interpret the accumulator bins
maximaExtracted maxima from the accumulator
extraLabelExtra label for the legend

◆ visualizeAccumulator() [2/2]

virtual void MuonValR4::IPatternVisualizationTool::visualizeAccumulator ( const EventContext &  ctx,
const MuonR4::HoughPlane accumulator,
const Acts::HoughTransformUtils::HoughAxisRanges &  axisRanges,
const MaximumVec maxima,
const std::string &  extraLabel,
PrimitiveVec &&  extraPaints 
) const
pure virtual

Visualize the content of the Hough accumulator in a TH2 histogram.

Parameters
ctxEventContext to fetch calibration & alignment
accumulatorHough accumulator to visualize
axisRangesCurrent axis ranges to interpret the accumulator bins
maximaExtracted maxima from the accumulator
extraLabelExtra label for the legend
extraPaintsOther objects that shall be painted onto the canvas

◆ visualizeBucket() [1/2]

virtual void MuonValR4::IPatternVisualizationTool::visualizeBucket ( const EventContext &  ctx,
const MuonR4::SpacePointBucket bucket,
const std::string &  extraLabel 
) const
pure virtual

Draws the content of the bucket on a TCanvas.

Parameters
ctxEventContext to fetch calibration & alignment
bucketSpacepoint bucket to draw
extraLabelExtra label for the legend

◆ visualizeBucket() [2/2]

virtual void MuonValR4::IPatternVisualizationTool::visualizeBucket ( const EventContext &  ctx,
const MuonR4::SpacePointBucket bucket,
const std::string &  extraLabel,
PrimitiveVec &&  extraPaints 
) const
pure virtual

Draws the content of the bucket on a TCanvas.

Parameters
ctxEventContext to fetch calibration & alignment
bucketSpacepoint bucket to draw
extraLabelExtra label for the legend
extraPaintsOther objects that shall be painted onto the canvas

◆ visualizeSeed() [1/2]

virtual void MuonValR4::IPatternVisualizationTool::visualizeSeed ( const EventContext &  ctx,
const MuonR4::SegmentSeed seed,
const std::string &  extraLabel 
) const
pure virtual

Visualize the used space points of the seed together with the seed parameters.

Parameters
ctxEventContext to fetch calibration & alignment
seedReference to the seed to visualize
extraLabelExtra label for the legend

◆ visualizeSeed() [2/2]

virtual void MuonValR4::IPatternVisualizationTool::visualizeSeed ( const EventContext &  ctx,
const MuonR4::SegmentSeed seed,
const std::string &  extraLabel,
PrimitiveVec &&  extraPaints 
) const
pure virtual

Visualize the used space points of the seed together with the seed parameters.

Parameters
ctxEventContext to fetch calibration & alignment
seedReference to the seed to visualize
extraLabelExtra label for the legend
extraPaintsOther objects that shall be painted onto the canvas

◆ visualizeSegment() [1/2]

virtual void MuonValR4::IPatternVisualizationTool::visualizeSegment ( const EventContext &  ctx,
const MuonR4::Segment segment,
const std::string &  extraLabel 
) const
pure virtual

Visualize the used space points of the segment together with the seed parameters.

Parameters
ctxEventContext to fetch calibration & alignment
segmentReference to the segment to visualize
extraLabelExtra label for the legend

◆ visualizeSegment() [2/2]

virtual void MuonValR4::IPatternVisualizationTool::visualizeSegment ( const EventContext &  ctx,
const MuonR4::Segment segment,
const std::string &  extraLabel,
PrimitiveVec &&  extraPaints 
) const
pure virtual

Visualize the used space points of the segment together with the seed parameters.

Parameters
ctxEventContext to fetch calibration & alignment
segmentReference to the segment to visualize
extraLabelExtra label for the legend
extraPaintsOther objects that shall be painted onto the canvas

The documentation for this class was generated from the following file: