Skip to content
Snippets Groups Projects

TrkGeometry Layers: Remove unneeded virtual methods/ mark methods as final.

8 files
+ 191
145
Compare changes
  • Side-by-side
  • Inline
Files
8
@@ -95,27 +95,35 @@ namespace Trk {
@@ -95,27 +95,35 @@ namespace Trk {
/** getting the MaterialProperties back - for post-update*/
/** getting the MaterialProperties back - for post-update*/
virtual double postUpdateMaterialFactor(const Trk::TrackParameters& par, Trk::PropDirection dir) const override;
virtual double postUpdateMaterialFactor(const Trk::TrackParameters& par, Trk::PropDirection dir) const override;
/** move the Layer */
/** move the Layer */
virtual void moveLayer(Amg::Transform3D& shift) override;
virtual void moveLayer(Amg::Transform3D& shift) override final;
/** move the Layer */
/** move the Layer */
virtual void moveLayer ATLAS_NOT_THREAD_SAFE (Amg::Transform3D& shift) const override{
virtual void moveLayer
const_cast<ConeLayer*>(this)->moveLayer(shift);
ATLAS_NOT_THREAD_SAFE(Amg::Transform3D& shift) const override final
 
{
 
const_cast<ConeLayer*>(this)->moveLayer(shift);
};
};
private:
private:
/** Resize the layer to the tracking volume - not (yet) supported for ConeLayer */
/** Resize the layer to the tracking volume - not (yet) supported for ConeLayer */
void resize(const VolumeBounds&, double) const {}
void resize(const VolumeBounds&, double) const {}
/** Resize the layer to the tracking volume - not supported since this an entry layer method*/
virtual void resizeAndRepositionLayer(const VolumeBounds&, const Amg::Vector3D&, double) override {}
/** Resize the layer to the tracking volume - not supported since this an
/** Resize the layer to the tracking volume - not supported since this an entry layer method*/
* entry layer method*/
virtual void resizeAndRepositionLayer ATLAS_NOT_THREAD_SAFE(const VolumeBounds&,
virtual void resizeAndRepositionLayer(const VolumeBounds&,
const Amg::Vector3D&, double) const override {}
const Amg::Vector3D&,
double) override final
 
{}
 
 
/** Resize the layer to the tracking volume - not supported since this an
 
* entry layer method*/
 
virtual void resizeAndRepositionLayer
 
ATLAS_NOT_THREAD_SAFE(const VolumeBounds&,
 
const Amg::Vector3D&,
 
double) const override final
 
{}
};
};
} // end of namespace
} // end of namespace
Loading