9#ifndef TRKSURFACES_PLANESURFACE_H
10#define TRKSURFACES_PLANESURFACE_H
24template<
class SURFACE,
class BOUNDS_CNV>
26template<
class SURFACE,
class BOUNDS_CNV>
42template<
int DIM,
class T,
class S>
127 std::shared_ptr<const Trk::SurfaceBounds> sbounds);
176 template<
int DIM, class T>
186 template<
int DIM, class T>
200 double tol2 = 0.)
const override;
212 double tol2 = 0.)
const override final;
225 Amg::Vector2D& loc)
const override final;
273 bool Bound)
const override final;
279 template<class SURFACE, class BOUNDS_CNV>
281 template<class SURFACE, class BOUNDS_CNV>
291#include "TrkSurfaces/PlaneSurface.icc"
double charge(const T &p)
PlaneSurface()
Default Constructor - needed for persistency.
Bounds for a annulus-like, planar Surface.
The BoundaryCheck class allows to steer the way surface boundaries are used for inside/outside checks...
simple class that constructs the curvilinear vectors curvU and curvV from a given momentum direction ...
Bounds for a double trapezoidal ("diamond"), planar Surface.
Access to distance solutions.
Class to describe the bounds for a planar EllipseSurface, i.e.
represents the three-dimensional global direction with respect to a planar surface frame.
Bounds object for a boundless surface (...)
Dummy class used to allow special convertors to be called for surfaces owned by a detector element.
void localToGlobalDirection(const Trk::LocalDirection &locdir, Amg::Vector3D &globdir) const
This method transforms a local direction wrt the plane to a global direction.
virtual bool insideBounds(const Amg::Vector2D &locpos, double tol1=0., double tol2=0.) const override
This method calls the inside() method of the Bounds.
PlaneSurface(const PlaneSurface &psf)=default
Copy Constructor.
PlaneSurface & operator=(const PlaneSurface &psf)=default
Assignment operator.
static constexpr SurfaceType staticType
The surface type static constexpr.
bool operator==(const PlaneSurface &cf) const
virtual DistanceSolution straightLineDistanceEstimate(const Amg::Vector3D &pos, const Amg::Vector3D &dir) const override final
fast straight line distance evaluation to Surface
virtual NeutralTrackParametersUniquePtr createUniqueNeutralParameters(double l1, double l2, double phi, double theta, double oop, std::optional< AmgSymMatrix(5)> cov=std::nullopt) const override final
Use the Surface as a ParametersBase constructor, from local parameters - neutral.
std::unique_ptr< ParametersT< DIM, T, PlaneSurface > > createUniqueParameters(double l1, double l2, double phi, double theta, double qop, std::optional< AmgSymMatrix(DIM)> cov=std::nullopt) const
Use the Surface as a ParametersBase constructor, from local parameters.
virtual bool isOnSurface(const Amg::Vector3D &glopo, const BoundaryCheck &bchk=true, double tol1=0., double tol2=0.) const override final
This method returns true if the GlobalPosition is on the Surface for both, within or without check of...
virtual Surface::ChargedTrackParametersUniquePtr createUniqueTrackParameters(double l1, double l2, double phi, double theta, double qop, std::optional< AmgSymMatrix(5)> cov=std::nullopt) const override final
Use the Surface as a ParametersBase constructor, from local parameters - charged.
virtual constexpr SurfaceType type() const override final
Return the surface type.
virtual void localToGlobal(const Amg::Vector2D &locp, const Amg::Vector3D &mom, Amg::Vector3D &glob) const override final
Specified for PlaneSurface: LocalToGlobal method without dynamic memory allocation.
static const NoBounds s_boundless
virtual bool insideBoundsCheck(const Amg::Vector2D &locpos, const BoundaryCheck &bchk) const override final
friend class ::BoundSurfaceCnv_p1
< data members
PlaneSurface()
Default Constructor - needed for persistency.
PlaneSurface & operator=(PlaneSurface &&psf) noexcept=default
Move assignment operator.
virtual ~PlaneSurface()=default
Destructor.
virtual Intersection straightLineIntersection(const Amg::Vector3D &pos, const Amg::Vector3D &dir, bool forceDir, Trk::BoundaryCheck bchk) const override final
fast straight line intersection schema - standard: provides closest intersection and (signed) path le...
virtual bool globalToLocal(const Amg::Vector3D &glob, const Amg::Vector3D &mom, Amg::Vector2D &loc) const override final
Specified for PlaneSurface: GlobalToLocal method without dynamic memory allocation - boolean checks i...
virtual PlaneSurface * clone() const override
Virtual constructor.
virtual bool operator==(const Surface &sf) const override
Equality operator.
void globalToLocalDirection(const Amg::Vector3D &glodir, Trk::LocalDirection &locdir) const
This method transforms the global direction to a local direction wrt the plane.
friend class ::BoundSurfaceCnv_p2
PlaneSurface(PlaneSurface &&psf) noexcept=default
Move Constructor.
std::shared_ptr< const SurfaceBounds > m_bounds
bounds (shared)
virtual const SurfaceBounds & bounds() const override final
This method returns the bounds by reference, static NoBounds in case of no boundaries.
virtual std::string name() const override
Return properly formatted class name for screen output.
Bounds for a rectangular, planar surface.
Bounds for a rotated trapezoidal, planar Surface.
Abstract base class for surface bounds to be specified.
std::unique_ptr< ParametersBase< 5, Trk::Charged > > ChargedTrackParametersUniquePtr
Unique ptr types.
Surface()
Default Constructor for inheriting classes.
std::unique_ptr< ParametersBase< 5, Trk::Neutral > > NeutralTrackParametersUniquePtr
Bounds for a trapezoidal, planar Surface.
Bounds for a triangular, planar surface.
This is the base class for all tracking detector elements with read-out relevant information.
Definition of ATLAS Math & Geometry primitives (Amg)
Eigen::Affine3d Transform3D
Eigen::Matrix< double, 3, 1 > Vector3D
Ensure that the ATLAS eigen extensions are properly loaded.
SurfaceType
This enumerator simplifies the persistency & calculations,.
AmgSymMatrix(5) &GXFTrackState