CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions
BoundPlane Class Reference

#include <BoundPlane.h>

Inheritance diagram for BoundPlane:
Plane BoundSurface Surface Surface GloballyPositioned< float > BasicReferenceCounted GloballyPositioned< float > BasicReferenceCounted BoundDisk BoundDiskSector

Public Types

typedef
ReferenceCountingPointer
< BoundPlane
BoundPlanePointer
 
typedef
ConstReferenceCountingPointer
< BoundPlane
ConstBoundPlanePointer
 
- Public Types inherited from Plane
typedef
ConstReferenceCountingPointer
< Plane
ConstPlanePointer
 
typedef
ReferenceCountingPointer
< Plane
PlanePointer
 
- Public Types inherited from Surface
typedef GloballyPositioned< float > Base
 
typedef SurfaceOrientation::Side Side
 
- Public Types inherited from GloballyPositioned< float >
typedef Point3DBase< float,
GlobalTag
GlobalPoint
 
typedef Vector3DBase< float,
GlobalTag
GlobalVector
 
typedef Point3DBase< float,
LocalTag
LocalPoint
 
typedef Vector3DBase< float,
LocalTag
LocalVector
 
typedef Point3DBase< float,
GlobalTag
PositionType
 
typedef TkRotation< float > RotationType
 
typedef float Scalar
 

Public Member Functions

 BoundPlane (const PositionType &pos, const RotationType &rot, const Bounds *bounds)
 
 BoundPlane (const PositionType &pos, const RotationType &rot, const Bounds &bounds)
 
 BoundPlane (const PositionType &pos, const RotationType &rot, const Bounds *bounds, MediumProperties *mp)
 
 BoundPlane (const PositionType &pos, const RotationType &rot, const Bounds &bounds, MediumProperties *mp)
 
 BoundPlane (const PositionType &pos, const RotationType &rot)
 
virtual ~BoundPlane ()
 
- Public Member Functions inherited from Plane
float localZ (const GlobalPoint &gp) const
 Fast access to distance from plane for a point. More...
 
float localZ (const GlobalVector &gv) const
 Fast access to component perpendicular to plane for a vector. More...
 
GlobalVector normalVector () const
 
 Plane (const PositionType &pos, const RotationType &rot)
 
 Plane (const PositionType &pos, const RotationType &rot, MediumProperties *mp)
 
virtual SurfaceOrientation::Side side (const LocalPoint &p, Scalar toler) const
 
virtual SurfaceOrientation::Side side (const GlobalPoint &p, Scalar toler) const
 
virtual
ReferenceCountingPointer
< TangentPlane
tangentPlane (const GlobalPoint &) const
 tangent plane to surface from global point More...
 
virtual
ReferenceCountingPointer
< TangentPlane
tangentPlane (const LocalPoint &) const
 tangent plane to surface from local point More...
 
- Public Member Functions inherited from Surface
const MediumPropertiesmediumProperties () const
 
void setMediumProperties (const MediumProperties &mp)
 
void setMediumProperties (MediumProperties *mp)
 
 Surface (const PositionType &pos, const RotationType &rot)
 
 Surface (const PositionType &pos, const RotationType &rot, MediumProperties *mp)
 
 Surface (const PositionType &pos, const RotationType &rot, MediumProperties mp)
 
 Surface (const Surface &iSurface)
 
GlobalPoint toGlobal (const Point2DBase< Scalar, LocalTag > lp) const
 
virtual ~Surface ()=0
 
- Public Member Functions inherited from GloballyPositioned< float >
float eta () const
 
 GloballyPositioned (const PositionType &pos, const RotationType &rot)
 
void move (const GlobalVector &displacement)
 
float phi () const
 
const PositionTypeposition () const
 
void rotate (const RotationType &rotation)
 
const RotationTyperotation () const
 
GlobalPoint toGlobal (const LocalPoint &lp) const
 
Point3DBase< U, GlobalTagtoGlobal (const Point3DBase< U, LocalTag > &lp) const
 
GlobalVector toGlobal (const LocalVector &lv) const
 
Vector3DBase< U, GlobalTagtoGlobal (const Vector3DBase< U, LocalTag > &lv) const
 
LocalPoint toLocal (const GlobalPoint &gp) const
 
Point3DBase< U, LocalTagtoLocal (const Point3DBase< U, GlobalTag > &gp) const
 
LocalVector toLocal (const GlobalVector &gv) const
 
Vector3DBase< U, LocalTagtoLocal (const Vector3DBase< U, GlobalTag > &gv) const
 
virtual ~GloballyPositioned ()
 
- Public Member Functions inherited from BasicReferenceCounted
void addReference () const
 
 BasicReferenceCounted ()
 
 BasicReferenceCounted (const BasicReferenceCounted &iRHS)
 
const BasicReferenceCountedoperator= (const BasicReferenceCounted &)
 
unsigned int references () const
 
void removeReference () const
 
virtual ~BasicReferenceCounted ()
 
- Public Member Functions inherited from BoundSurface
const Boundsbounds () const
 
 BoundSurface (const PositionType &pos, const RotationType &rot, const Bounds *bounds)
 
 BoundSurface (const PositionType &pos, const RotationType &rot, const Bounds &bounds)
 
 BoundSurface (const PositionType &pos, const RotationType &rot, const Bounds *bounds, MediumProperties *mp)
 
 BoundSurface (const PositionType &pos, const RotationType &rot, const Bounds &bounds, MediumProperties *mp)
 
 BoundSurface (const BoundSurface &iToCopy)
 
const BoundSurfaceoperator= (const BoundSurface &iRHS)
 
std::pair< float, float > const & phiSpan () const
 
std::pair< float, float > const & rSpan () const
 
std::pair< float, float > const & zSpan () const
 

Static Public Member Functions

static BoundPlanePointer build (const PositionType &pos, const RotationType &rot, const Bounds *bounds, MediumProperties *mp=0)
 
static BoundPlanePointer build (const PositionType &pos, const RotationType &rot, const Bounds &bounds, MediumProperties *mp=0)
 
- Static Public Member Functions inherited from Plane
static PlanePointer build (const PositionType &pos, const RotationType &rot, MediumProperties *mp=0)
 
- Static Public Member Functions inherited from GloballyPositioned< float >
static float iniEta ()
 
static float iniPhi ()
 

Additional Inherited Members

- Protected Member Functions inherited from BoundSurface
void computeSpan ()
 

Detailed Description

A plane in 3D space, with bounds.

Warning
Surfaces are reference counted, so only ReferenceCountingPointer should be used to point to them. For this reason, they should be using the static build() method. (The normal constructor will become private in the future).

Definition at line 19 of file BoundPlane.h.

Member Typedef Documentation

Definition at line 21 of file BoundPlane.h.

Definition at line 22 of file BoundPlane.h.

Constructor & Destructor Documentation

virtual BoundPlane::~BoundPlane ( )
inlinevirtual

Definition at line 43 of file BoundPlane.h.

43 {}
BoundPlane::BoundPlane ( const PositionType pos,
const RotationType rot,
const Bounds bounds 
)
inline

Do not use this constructor directly; use the static build method, which returns a ReferenceCountingPointer. This constructor will soon become private

Definition at line 50 of file BoundPlane.h.

Referenced by build().

52  :
53  Surface( pos,rot), Plane( pos, rot), BoundSurface(pos, rot, bounds) {}
Plane(const PositionType &pos, const RotationType &rot)
Definition: Plane.h:36
BoundSurface(const PositionType &pos, const RotationType &rot, const Bounds *bounds)
Definition: BoundSurface.h:22
Surface(const PositionType &pos, const RotationType &rot)
Definition: Surface.h:40
BoundPlane::BoundPlane ( const PositionType pos,
const RotationType rot,
const Bounds bounds 
)
inline

Do not use this constructor directly; use the static build method, which returns a ReferenceCountingPointer. This constructor will soon become private

Definition at line 58 of file BoundPlane.h.

60  :
61  Surface( pos,rot), Plane( pos, rot), BoundSurface(pos, rot, bounds) {}
Plane(const PositionType &pos, const RotationType &rot)
Definition: Plane.h:36
BoundSurface(const PositionType &pos, const RotationType &rot, const Bounds *bounds)
Definition: BoundSurface.h:22
Surface(const PositionType &pos, const RotationType &rot)
Definition: Surface.h:40
BoundPlane::BoundPlane ( const PositionType pos,
const RotationType rot,
const Bounds bounds,
MediumProperties mp 
)
inline

Do not use this constructor directly; use the static build method, which returns a ReferenceCountingPointer. This constructor will soon become private

Definition at line 66 of file BoundPlane.h.

69  :
70  Surface( pos,rot,mp), Plane( pos, rot, mp), BoundSurface(pos, rot, bounds, mp) {}
Plane(const PositionType &pos, const RotationType &rot)
Definition: Plane.h:36
BoundSurface(const PositionType &pos, const RotationType &rot, const Bounds *bounds)
Definition: BoundSurface.h:22
Surface(const PositionType &pos, const RotationType &rot)
Definition: Surface.h:40
BoundPlane::BoundPlane ( const PositionType pos,
const RotationType rot,
const Bounds bounds,
MediumProperties mp 
)
inline

Do not use this constructor directly; use the static build method, which returns a ReferenceCountingPointer. This constructor will soon become private

Definition at line 75 of file BoundPlane.h.

78  :
79  Surface( pos,rot,mp), Plane( pos, rot, mp), BoundSurface(pos, rot, bounds, mp) {}
Plane(const PositionType &pos, const RotationType &rot)
Definition: Plane.h:36
BoundSurface(const PositionType &pos, const RotationType &rot, const Bounds *bounds)
Definition: BoundSurface.h:22
Surface(const PositionType &pos, const RotationType &rot)
Definition: Surface.h:40
BoundPlane::BoundPlane ( const PositionType pos,
const RotationType rot 
)

Bound Plane with unlimited bounds Do not use this constructor directly; use the static build method, with OpenBounds(), or use a simple Plane instead. This constructor will soon become private

Definition at line 4 of file BoundPlane.cc.

5  :
6  Surface( pos,rot ),
7  Plane( pos, rot ),
8  BoundSurface( pos, rot, OpenBounds() )
9 { }
Plane(const PositionType &pos, const RotationType &rot)
Definition: Plane.h:36
BoundSurface(const PositionType &pos, const RotationType &rot, const Bounds *bounds)
Definition: BoundSurface.h:22
Unlimited (trivial) bounds.
Definition: OpenBounds.h:10
Surface(const PositionType &pos, const RotationType &rot)
Definition: Surface.h:40

Member Function Documentation

static BoundPlanePointer BoundPlane::build ( const PositionType pos,
const RotationType rot,
const Bounds bounds,
MediumProperties mp = 0 
)
inlinestatic

Construct a Plane with origin at pos and with rotation matrix rot, with bounds. The bounds you provide are cloned.

Definition at line 26 of file BoundPlane.h.

References BoundPlane().

Referenced by CtfSpecialSeedGenerator::beginRun(), CSCGeometryBuilder::buildChamber(), AlignableSiStripDet::consistifyAlignments(), ReferenceTrajectory::construct(), TrajectoryExtrapolatorToLine::extrapolate(), PlaneBuilderForGluedDet::plane(), and TrackKinematicStatePropagator::planeCrossing().

29  {
30  return BoundPlanePointer(new BoundPlane(pos, rot, bounds, mp));
31  }
BoundPlane(const PositionType &pos, const RotationType &rot, const Bounds *bounds)
Definition: BoundPlane.h:50
ReferenceCountingPointer< BoundPlane > BoundPlanePointer
Definition: BoundPlane.h:21
static BoundPlanePointer BoundPlane::build ( const PositionType pos,
const RotationType rot,
const Bounds bounds,
MediumProperties mp = 0 
)
inlinestatic

Construct a Plane with origin at pos and with rotation matrix rot, with bounds. The bounds you provide are cloned.

Definition at line 36 of file BoundPlane.h.

References BoundPlane().

39  {
40  return BoundPlanePointer(new BoundPlane(pos, rot, bounds, mp));
41  }
BoundPlane(const PositionType &pos, const RotationType &rot, const Bounds *bounds)
Definition: BoundPlane.h:50
ReferenceCountingPointer< BoundPlane > BoundPlanePointer
Definition: BoundPlane.h:21