9#ifndef TRKSURFACES_CYLINDERSURFACE_H
10#define TRKSURFACES_CYLINDERSURFACE_H
24template<
class SURFACE,
class BOUNDS_CNV>
26template<
class SURFACE,
class BOUNDS_CNV>
31template<
int DIM,
class T,
class S>
128 std::optional<
AmgSymMatrix(5)> cov = std::nullopt)
const override final;
136 std::optional<
AmgSymMatrix(5)> cov = std::nullopt)
const override final;
146 std::optional<
AmgSymMatrix(5)> cov = std::nullopt)
const override final;
154 std::optional<
AmgSymMatrix(5)> cov = std::nullopt)
const override final;
157 template<
int DIM,
class T>
164 std::optional<
AmgSymMatrix(DIM)> cov = std::nullopt)
const;
167 template<
int DIM,
class T>
172 std::optional<
AmgSymMatrix(DIM)> cov = std::nullopt)
const;
210 double tol2 = 0.)
const override;
237 double tol2 = 0.)
const override;
261 bool forceDir = false,
273 bool bound)
const override;
283 template<class SURFACE, class BOUNDS_CNV>
285 template<class SURFACE, class BOUNDS_CNV>
297#include "TrkSurfaces/CylinderSurface.icc"
double charge(const T &p)
#define AmgSymMatrix(dim)
CylinderSurface()
Default Constructor.
The BoundaryCheck class allows to steer the way surface boundaries are used for inside/outside checks...
Bounds for a cylindrical Surface.
virtual NeutralTrackParametersUniquePtr createUniqueNeutralParameters(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 - neutral.
virtual void localToGlobal(const Amg::Vector2D &locp, const Amg::Vector3D &mom, Amg::Vector3D &glob) const override
Specialized for CylinderSurface : LocalToGlobal method without dynamic memory allocation.
CylinderSurface()
Default Constructor.
virtual std::string name() const override
Return properly formatted class name for screen output.
CylinderSurface(CylinderSurface &&csf) noexcept=default
Move constructor.
virtual Amg::Vector3D normal(const Amg::Vector2D &locpo) const override final
Return method for surface normal information at a given local point, overwrites the normal() from bas...
virtual double pathCorrection(const Amg::Vector3D &pos, const Amg::Vector3D &mom) const override
the pathCorrection for derived classes with thickness
std::shared_ptr< const CylinderBounds > m_bounds
The global reference point (== a point on the surface)
virtual const Amg::Vector3D & rotSymmetryAxis() const
Return method for the rotational symmetry axis - the z-Axis of the HepTransform.
virtual bool insideBounds(const Amg::Vector2D &locpos, double tol1=0., double tol2=0.) const override
This method calls the inside method of CylinderBounds.
virtual constexpr SurfaceType type() const override final
Return the surface type.
CylinderSurface & operator=(CylinderSurface &&csf) noexcept=default
Move Assignment operator.
static constexpr SurfaceType staticType
The surface type static constexpr.
CxxUtils::CachedUniquePtr< Amg::Vector3D > m_rotSymmetryAxis
CylinderSurface & operator=(const CylinderSurface &csf)
Assignment operator.
virtual Intersection straightLineIntersection(const Amg::Vector3D &pos, const Amg::Vector3D &dir, bool forceDir=false, Trk::BoundaryCheck bchk=false) const override final
fast straight line intersection schema - provides closest intersection and (signed) path length
friend class ::BoundSurfaceCnv_p1
< data members
virtual CylinderSurface * clone() const override
Implicit Constructor.
virtual ~CylinderSurface()=default
Destructor.
std::unique_ptr< ParametersT< DIM, T, CylinderSurface > > 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 insideBoundsCheck(const Amg::Vector2D &locpos, const BoundaryCheck &bchk) const override final
virtual const Amg::Vector3D & globalReferencePoint() const override final
Returns a global reference point: For the Cylinder this is Where denotes the averagePhi() of the cy...
virtual bool isOnSurface(const Amg::Vector3D &glopo, const BoundaryCheck &bchk=true, double tol1=0., double tol2=0.) const override
This method returns true if the GlobalPosition is on the Surface for both, within or without check of...
virtual Amg::RotationMatrix3D measurementFrame(const Amg::Vector3D &glopos, const Amg::Vector3D &glomom) const override final
Return the measurement frame - this is needed for alignment, in particular for StraightLine and Perig...
virtual DistanceSolution straightLineDistanceEstimate(const Amg::Vector3D &pos, const Amg::Vector3D &dir) const override
fast distance to Surface
friend class ::BoundSurfaceCnv_p2
bounds (shared)
std::unique_ptr< ParametersT< DIM, T, CylinderSurface > > createUniqueParameters(const Amg::Vector3D &position, const Amg::Vector3D &momentum, double charge, std::optional< AmgSymMatrix(DIM)> cov=std::nullopt) const
Use the Surface as a ParametersBase constructor, from global parameters.
virtual bool globalToLocal(const Amg::Vector3D &glob, const Amg::Vector3D &mom, Amg::Vector2D &loc) const override
Specialized for CylinderSurface : GlobalToLocal method without dynamic memory allocation - boolean ch...
virtual const CylinderBounds & bounds() const override final
This method returns the CylinderBounds by reference (NoBounds is not possible for cylinder)
CxxUtils::CachedUniquePtr< Amg::Vector3D > m_referencePoint
The rotational symmetry axis.
virtual bool operator==(const Surface &sf) const override
Equality operator.
virtual Amg::Vector2D localParametersToPosition(const LocalParameters &locpars) const override final
Specialized for CylinderSurface : LocalParameters to Vector2D.
bool operator==(const CylinderSurface &cf) const
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.
Access to distance solutions.
Dummy class used to allow special convertors to be called for surfaces owned by a detector element.
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
Definition of ATLAS Math & Geometry primitives (Amg)
Eigen::Matrix< double, 3, 3 > RotationMatrix3D
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,.