Skip to content
Snippets Groups Projects
Commit cecc75cb authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

Merge branch 'MeasurementBaseType_add_final' into 'master'

add final to MeasurementBaseType checking methods

See merge request atlas/athena!34326
parents e2f68418 04189b2b
No related branches found
No related tags found
No related merge requests found
...@@ -107,7 +107,8 @@ public: ...@@ -107,7 +107,8 @@ public:
virtual void setLocalParametersAndErrorMatrix(); virtual void setLocalParametersAndErrorMatrix();
/** Extended method checking the type*/ /** Extended method checking the type*/
virtual bool type(MeasurementBaseType::Type type) const override{ virtual bool type(MeasurementBaseType::Type type) const override final
{
return (type==MeasurementBaseType::CompetingRIOsOnTrack); return (type==MeasurementBaseType::CompetingRIOsOnTrack);
} }
......
...@@ -98,7 +98,8 @@ class FitQuality; ...@@ -98,7 +98,8 @@ class FitQuality;
virtual Segment* clone() const override = 0; virtual Segment* clone() const override = 0;
/** Extended method checking the type*/ /** Extended method checking the type*/
virtual bool type(MeasurementBaseType::Type type) const override { virtual bool type(MeasurementBaseType::Type type) const override final
{
return (type==MeasurementBaseType::Segment); return (type==MeasurementBaseType::Segment);
} }
......
...@@ -69,16 +69,17 @@ namespace Trk{ ...@@ -69,16 +69,17 @@ namespace Trk{
double phi() const ; double phi() const ;
/**Interface method to get the associated Surface*/ /**Interface method to get the associated Surface*/
virtual const Surface& associatedSurface() const override; virtual const Surface& associatedSurface() const override final;
/**Interface method to get the global Position*/ /**Interface method to get the global Position*/
virtual const Amg::Vector3D& globalPosition() const override; virtual const Amg::Vector3D& globalPosition() const override final;
/** Clone */ /** Clone */
virtual SpacePoint* clone() const override = 0; virtual SpacePoint* clone() const override = 0;
/** Extended method checking the type*/ /** Extended method checking the type*/
virtual bool type(MeasurementBaseType::Type type) const override { virtual bool type(MeasurementBaseType::Type type) const override final
{
return (type==MeasurementBaseType::SpacePoint); return (type==MeasurementBaseType::SpacePoint);
} }
......
...@@ -69,18 +69,18 @@ namespace Trk{ ...@@ -69,18 +69,18 @@ namespace Trk{
/** returns the surface for the local to global transformation /** returns the surface for the local to global transformation
- interface from MeasurementBase */ - interface from MeasurementBase */
virtual const PerigeeSurface& associatedSurface() const override; virtual const PerigeeSurface& associatedSurface() const override final;
/**Interface method to get the global Position /**Interface method to get the global Position
- interface from MeasurementBase */ - interface from MeasurementBase */
virtual const Amg::Vector3D& globalPosition() const override; virtual const Amg::Vector3D& globalPosition() const override final;
/** Extended method checking the type*/ /** Extended method checking the type*/
virtual bool type(MeasurementBaseType::Type type) const override { virtual bool type(MeasurementBaseType::Type type) const override final
{
return (type==MeasurementBaseType::VertexOnTrack); return (type==MeasurementBaseType::VertexOnTrack);
} }
/**returns the some information about this VertexOnTrack. */ /**returns the some information about this VertexOnTrack. */
virtual MsgStream& dump( MsgStream& out ) const override; virtual MsgStream& dump( MsgStream& out ) const override;
/**returns the some information about this VertexOnTrack. */ /**returns the some information about this VertexOnTrack. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment