#include <Plane.h>
Public Types | |
typedef ConstReferenceCountingPointer < Plane > | ConstPlanePointer |
typedef ReferenceCountingPointer < Plane > | PlanePointer |
Public Member Functions | |
float | localZ (const GlobalPoint &gp) const |
Fast access to distance from plane for a point. | |
float | localZ (const GlobalVector &gv) const |
Fast access to component perpendicular to plane for a vector. | |
GlobalVector | normalVector () const |
Plane (const PositionType &pos, const RotationType &rot, MediumProperties *mp) | |
Plane (const PositionType &pos, const RotationType &rot) | |
virtual SurfaceOrientation::Side | side (const GlobalPoint &p, Scalar toler) const GCC11_FINAL |
virtual SurfaceOrientation::Side | side (const LocalPoint &p, Scalar toler) const GCC11_FINAL |
virtual ReferenceCountingPointer < TangentPlane > | tangentPlane (const LocalPoint &) const GCC11_FINAL |
tangent plane to surface from local point | |
virtual ReferenceCountingPointer < TangentPlane > | tangentPlane (const GlobalPoint &) const GCC11_FINAL |
tangent plane to surface from global point | |
~Plane () | |
Static Public Member Functions | |
static PlanePointer | build (const PositionType &pos, const RotationType &rot, MediumProperties *mp=0) |
A plane in 3D space.
Reimplemented in GCC11_FINAL< T >.
Plane::Plane | ( | const PositionType & | pos, |
const RotationType & | rot | ||
) | [inline] |
Plane::Plane | ( | const PositionType & | pos, |
const RotationType & | rot, | ||
MediumProperties * | mp | ||
) | [inline] |
static PlanePointer Plane::build | ( | const PositionType & | pos, |
const RotationType & | rot, | ||
MediumProperties * | mp = 0 |
||
) | [inline, static] |
Construct a Plane. The reference frame is defined by pos and rot; the plane is orthogonal to the local Z axis.
Definition at line 25 of file Plane.h.
References Plane().
Referenced by TrackExtrapolator::propagateTrackToVolume().
{ return PlanePointer(new Plane(pos, rot, mp)); }
float Plane::localZ | ( | const GlobalVector & | gv | ) | const [inline] |
Fast access to component perpendicular to plane for a vector.
Definition at line 59 of file Plane.h.
References Vector3DBase< T, FrameTag >::dot(), and normalVector().
{ return normalVector().dot(gv); }
float Plane::localZ | ( | const GlobalPoint & | gp | ) | const [inline] |
Fast access to distance from plane for a point.
Definition at line 54 of file Plane.h.
References Vector3DBase< T, FrameTag >::dot(), normalVector(), and GloballyPositioned< float >::position().
Referenced by RPCSeedPattern::extropolateStep(), fastProp(), TrackingRecHitProjector< ResultingHit >::project(), GSRecHitMatcher::projectOnly(), side(), and SETSeedFinder::sortByLayer().
{ return normalVector().dot(gp-position()); }
GlobalVector Plane::normalVector | ( | ) | const [inline] |
Definition at line 49 of file Plane.h.
References GloballyPositioned< float >::rotation().
Referenced by GlobalTrackerMuonAlignment::analyzeTrackTrack(), GlobalTrackerMuonAlignment::analyzeTrackTrajectory(), DeDxEstimatorProducerPixelTripplet::beginRun(), ThreePlaneCrossing::crossing(), localZ(), OuterDetCompatibility::maximalLocalDisplacement(), StraightLinePlaneCrossing::pathLength(), TrackingRecHitProjector< ResultingHit >::project(), GSRecHitMatcher::projectOnly(), MagGeoBuilderFromDDD::volumeHandle::sameSurface(), and MagGeoBuilderFromDDD::volumeHandle::setSurface().
{ return GlobalVector( rotation().zx(), rotation().zy(), rotation().zz()); }
virtual SurfaceOrientation::Side Plane::side | ( | const LocalPoint & | p, |
Scalar | tolerance | ||
) | const [inline, virtual] |
Returns the side of the surface on which the point is. Not defined for 1-sided surfaces (Moebius leaf etc.) For normal 2-sided surfaces the meaning of side is surface type dependent.
Implements Surface.
Definition at line 65 of file Plane.h.
References abs, SurfaceOrientation::negativeSide, SurfaceOrientation::onSurface, AlCaHLTBitMon_ParallelJobs::p, and SurfaceOrientation::positiveSide.
{ return (std::abs(p.z())<toler) ? SurfaceOrientation::onSurface : (p.z()>0 ? SurfaceOrientation::positiveSide : SurfaceOrientation::negativeSide); }
virtual SurfaceOrientation::Side Plane::side | ( | const GlobalPoint & | p, |
Scalar | toler | ||
) | const [inline, virtual] |
Reimplemented from Surface.
Definition at line 70 of file Plane.h.
References abs, localZ(), SurfaceOrientation::negativeSide, SurfaceOrientation::onSurface, AlCaHLTBitMon_ParallelJobs::p, and SurfaceOrientation::positiveSide.
{ Scalar lz = localZ(p); return (std::abs(lz)<toler ? SurfaceOrientation::onSurface : (lz>0 ? SurfaceOrientation::positiveSide : SurfaceOrientation::negativeSide)); }
ReferenceCountingPointer< TangentPlane > Plane::tangentPlane | ( | const LocalPoint & | ) | const [virtual] |
tangent plane to surface from local point
Implements Surface.
Definition at line 17 of file Plane.cc.
References GloballyPositioned< float >::position(), and GloballyPositioned< float >::rotation().
{ return ReferenceCountingPointer<TangentPlane>(new TangentPlane(position(), rotation(), this)); }
ReferenceCountingPointer< TangentPlane > Plane::tangentPlane | ( | const GlobalPoint & | ) | const [virtual] |
tangent plane to surface from global point
Implements Surface.
Definition at line 9 of file Plane.cc.
References GloballyPositioned< float >::position(), and GloballyPositioned< float >::rotation().
{ return ReferenceCountingPointer<TangentPlane>(new TangentPlane(position(), rotation(), this)); }