ATLAS Offline Software
Loading...
Searching...
No Matches
MuonValR4::IFastRecoVisualizationTool Class Referenceabstract

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

#include <IFastRecoVisualizationTool.h>

Inheritance diagram for MuonValR4::IFastRecoVisualizationTool:
Collaboration diagram for MuonValR4::IFastRecoVisualizationTool:

Classes

struct  PatternHitVisualInfo
 Structure to hold visual information about a pattern. More...

Public Types

using PrimitivePtr = std::unique_ptr<TObject>
using PrimitiveVec = std::vector<PrimitivePtr>
using GlobalPatternPtr = Acts::CloneablePtr<MuonR4::GlobalPattern>
using PatternHitVisualInfoVec = std::vector<PatternHitVisualInfo>
using LabeledSegmentSet = std::unordered_set<const xAOD::MuonSegment*>

Public Member Functions

 DeclareInterfaceID (IFastRecoVisualizationTool, 1, 0)
virtual ~IFastRecoVisualizationTool ()=default
virtual void plotPatternBuckets (const EventContext &ctx, const std::string &extraLabel, PatternHitVisualInfoVec &&patternVisual) const =0
 Draws the content of the bucket on a TCanvas and adds the patterns found within the bucket.
virtual void plotPatternBuckets (const EventContext &ctx, const std::string &extraLabel, PatternHitVisualInfoVec &&patternVisual, PrimitiveVec &&extraPaints) const =0
 Draws the content of the bucket on a TCanvas and adds the patterns found within the bucket.
virtual void plotPatternBuckets (const EventContext &ctx, const std::string &extraLabel, PatternHitVisualInfo &&patternVisual) const =0
 Draws the content of the bucket on a TCanvas and adds the patterns found within the bucket.
virtual void plotPatternBuckets (const EventContext &ctx, const std::string &extraLabel, PatternHitVisualInfo &&patternVisual, PrimitiveVec &&extraPaints) const =0
 Draws the content of the bucket on a TCanvas and adds the patterns found within the bucket.
virtual bool isLabeled (const MuonR4::SpacePoint &hit) const =0
 Returns whether the hit has been used on the labeled segments we refer to (e.g.
virtual bool isLabeled (const xAOD::UncalibratedMeasurement &hit) const =0
virtual LabeledSegmentSet getLabeledSegments (const std::vector< const MuonR4::SpacePoint * > &hits) const =0
 Fetches all labeled (e.g.
virtual LabeledSegmentSet getLabeledSegments (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 30 of file IFastRecoVisualizationTool.h.

Member Typedef Documentation

◆ GlobalPatternPtr

◆ LabeledSegmentSet

◆ PatternHitVisualInfoVec

◆ PrimitivePtr

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

Definition at line 34 of file IFastRecoVisualizationTool.h.

◆ PrimitiveVec

Constructor & Destructor Documentation

◆ ~IFastRecoVisualizationTool()

virtual MuonValR4::IFastRecoVisualizationTool::~IFastRecoVisualizationTool ( )
virtualdefault

Member Function Documentation

◆ DeclareInterfaceID()

MuonValR4::IFastRecoVisualizationTool::DeclareInterfaceID ( IFastRecoVisualizationTool ,
1 ,
0  )

◆ getLabeledSegments() [1/2]

virtual LabeledSegmentSet MuonValR4::IFastRecoVisualizationTool::getLabeledSegments ( const std::vector< const MuonR4::SpacePoint * > & hits) const
pure virtual

Fetches all labeled (e.g.

by truth or Zµµ reco) segments containing at least one measurement in the list passed as arg

Parameters
hitsVector of hits to search

◆ getLabeledSegments() [2/2]

virtual LabeledSegmentSet MuonValR4::IFastRecoVisualizationTool::getLabeledSegments ( const std::vector< const xAOD::UncalibratedMeasurement * > & hits) const
pure virtual

◆ isLabeled() [1/2]

virtual bool MuonValR4::IFastRecoVisualizationTool::isLabeled ( const MuonR4::SpacePoint & hit) const
pure virtual

Returns whether the hit has been used on the labeled segments we refer to (e.g.

truth or data Zµµ)

Parameters
hitReference to the hit to check

◆ isLabeled() [2/2]

virtual bool MuonValR4::IFastRecoVisualizationTool::isLabeled ( const xAOD::UncalibratedMeasurement & hit) const
pure virtual

◆ plotPatternBuckets() [1/4]

virtual void MuonValR4::IFastRecoVisualizationTool::plotPatternBuckets ( const EventContext & ctx,
const std::string & extraLabel,
PatternHitVisualInfo && patternVisual ) const
pure virtual

Draws the content of the bucket on a TCanvas and adds the patterns found within the bucket.

Parameters
ctxEventContext to fetch calibration & alignment
extraLabelExtra label for the legend
patternVisualPattern visual information object

◆ plotPatternBuckets() [2/4]

virtual void MuonValR4::IFastRecoVisualizationTool::plotPatternBuckets ( const EventContext & ctx,
const std::string & extraLabel,
PatternHitVisualInfo && patternVisual,
PrimitiveVec && extraPaints ) const
pure virtual

Draws the content of the bucket on a TCanvas and adds the patterns found within the bucket.

Parameters
ctxEventContext to fetch calibration & alignment
extraLabelExtra label for the legend
patternVisualPattern visual information object
extraPaintsOther objects that shall be painted onto the canvas

◆ plotPatternBuckets() [3/4]

virtual void MuonValR4::IFastRecoVisualizationTool::plotPatternBuckets ( const EventContext & ctx,
const std::string & extraLabel,
PatternHitVisualInfoVec && patternVisual ) const
pure virtual

Draws the content of the bucket on a TCanvas and adds the patterns found within the bucket.

Parameters
ctxEventContext to fetch calibration & alignment
extraLabelExtra label for the legend
patternVisualVector of pattern visual information objects

◆ plotPatternBuckets() [4/4]

virtual void MuonValR4::IFastRecoVisualizationTool::plotPatternBuckets ( const EventContext & ctx,
const std::string & extraLabel,
PatternHitVisualInfoVec && patternVisual,
PrimitiveVec && extraPaints ) const
pure virtual

Draws the content of the bucket on a TCanvas and adds the patterns found within the bucket.

Parameters
ctxEventContext to fetch calibration & alignment
extraLabelExtra label for the legend
patternVisualVector of pattern visual information objects
extraPaintsOther objects that shall be painted onto the canvas

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