|
ATLAS Offline Software
|
Go to the documentation of this file.
9 #ifndef TRKSURFACES_CYLINDERSURFACE_H
10 #define TRKSURFACES_CYLINDERSURFACE_H
24 template<
class SURFACE,
class BOUNDS_CNV>
26 template<
class SURFACE,
class BOUNDS_CNV>
31 template<
int DIM,
class T,
class S>
129 std::optional<
AmgSymMatrix(5)>
cov = std::nullopt)
const override final;
137 std::optional<
AmgSymMatrix(5)>
cov = std::nullopt)
const override final;
147 std::optional<
AmgSymMatrix(5)>
cov = std::nullopt)
const override final;
155 std::optional<
AmgSymMatrix(5)>
cov = std::nullopt)
const override final;
158 template<
int DIM,
class T>
168 template<
int DIM,
class T>
211 double tol2 = 0.)
const override;
238 double tol2 = 0.)
const override;
262 bool forceDir = false,
274 bool bound)
const override;
284 template<class SURFACE, class BOUNDS_CNV>
286 template<class SURFACE, class BOUNDS_CNV>
298 #include "TrkSurfaces/CylinderSurface.icc"
300 #endif // TRKSURFACES_CYLINDERSURFACE_H
virtual const Amg::Vector3D & rotSymmetryAxis() const
Return method for the rotational symmetry axis - the z-Axis of the HepTransform.
virtual bool operator==(const Surface &sf) const override
Equality operator.
CylinderSurface(CylinderSurface &&csf) noexcept=default
Move constructor.
CachedUniquePtrT< const T > CachedUniquePtr
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.
std::unique_ptr< ParametersBase< 5, Trk::Charged > > ChargedTrackParametersUniquePtr
Unique ptr types.
Eigen::Matrix< double, 2, 1 > Vector2D
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.
static constexpr SurfaceType staticType
The surface type static constexpr.
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
virtual const CylinderBounds & bounds() const override final
This method returns the CylinderBounds by reference (NoBounds is not possible for cylinder)
std::unique_ptr< ParametersBase< 5, Trk::Neutral > > NeutralTrackParametersUniquePtr
virtual std::string name() const override
Return properly formatted class name for screen output.
bool const RAWDATA *ch2 const
CylinderSurface & operator=(CylinderSurface &&csf) noexcept=default
Move Assignment operator.
AmgSymMatrix(5) &GXFTrackState
bool operator==(const CylinderSurface &cf) const
virtual Amg::Vector2D localParametersToPosition(const LocalParameters &locpars) const override final
Specialized for CylinderSurface : LocalParameters to Vector2D.
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 DistanceSolution straightLineDistanceEstimate(const Amg::Vector3D &pos, const Amg::Vector3D &dir) const override
fast distance to Surface
virtual bool insideBoundsCheck(const Amg::Vector2D &locpos, const BoundaryCheck &bchk) const override final
virtual ~CylinderSurface()=default
Destructor.
SharedObject< const CylinderBounds > m_bounds
The global reference point (== a point on the surface)
constexpr virtual SurfaceType type() const override final
Return the surface type.
CylinderSurface()
Default Constructor.
Eigen::Affine3d Transform3D
virtual const Amg::Vector3D & normal() const
Returns the normal vector of the Surface (i.e.
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...
CxxUtils::CachedUniquePtr< Amg::Vector3D > m_referencePoint
The rotational symmetry axis.
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 CylinderSurface * clone() const override
Implicit Constructor.
Ensure that the ATLAS eigen extensions are properly loaded.
Definition of ATLAS Math & Geometry primitives (Amg)
CylinderSurface & operator=(const CylinderSurface &csf)
Assignment operator.
double charge(const T &p)
virtual double pathCorrection(const Amg::Vector3D &pos, const Amg::Vector3D &mom) const override
the pathCorrection for derived classes with thickness
Eigen::Matrix< double, 3, 1 > Vector3D
CxxUtils::CachedUniquePtr< Amg::Vector3D > m_rotSymmetryAxis
std::shared_ptr< T > SharedObject
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...
Eigen::Matrix< double, 3, 3 > RotationMatrix3D
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 bool insideBounds(const Amg::Vector2D &locpos, double tol1=0., double tol2=0.) const override
This method calls the inside method of CylinderBounds.
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...
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.