CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
NavCylinder Class Referencefinal

#include <NavCylinder.h>

Inheritance diagram for NavCylinder:
NavSurface BasicReferenceCounted

Public Member Functions

virtual void addVolume (const NavVolume *vol, const Bounds *bounds, SurfaceOrientation::Side side)
 NavVolumes are supposed to call this method to "register" with the NavSurface. More...
 
virtual const Boundsbounds (const NavVolume *vol)
 Bounds corresponding to a NavVolume if present. More...
 
virtual std::pair< bool, double > distanceAlongLine (const NavSurface::GlobalPoint &pos, const NavSurface::GlobalVector &dir) const
 
 NavCylinder (const Cylinder *cylinder)
 
virtual const NavVolumenextVolume (const NavSurface::LocalPoint &point, SurfaceOrientation::Side side) const
 
virtual TrajectoryStateOnSurface propagate (const Propagator &prop, const TrajectoryStateOnSurface &startingState) const
 hook for double dispatch to avoid propagation to generic surface. More...
 
virtual NavSurface::TSOSwithPath propagateWithPath (const Propagator &prop, const TrajectoryStateOnSurface &startingState) const
 hook for double dispatch to avoid propagation to generic surface. More...
 
virtual const Surfacesurface () const
 Access to actual surface. More...
 
- Public Member Functions inherited from NavSurface
GlobalPoint toGlobal (const LocalPoint &p) const
 
GlobalVector toGlobal (const LocalVector &p) const
 
LocalPoint toLocal (const GlobalPoint &p) const
 Forwarding of part of surface interface for convenience. More...
 
LocalVector toLocal (const GlobalVector &p) const
 
virtual ~NavSurface ()
 
- Public Member Functions inherited from BasicReferenceCounted
void addReference () const
 
 BasicReferenceCounted ()
 
 BasicReferenceCounted (const BasicReferenceCounted &)
 
 BasicReferenceCounted (BasicReferenceCounted &&)=default
 
BasicReferenceCountedoperator= (BasicReferenceCounted &&)=default
 
BasicReferenceCountedoperator= (const BasicReferenceCounted &)
 
unsigned int references () const
 
void removeReference () const
 
virtual ~BasicReferenceCounted ()
 

Private Attributes

LinearSearchNavSurfaceImpl theImpl
 
ConstReferenceCountingPointer
< Cylinder
theSurfaceP
 

Additional Inherited Members

- Public Types inherited from NavSurface
typedef Surface::GlobalPoint GlobalPoint
 
typedef Surface::GlobalVector GlobalVector
 
typedef Surface::LocalPoint LocalPoint
 
typedef Surface::LocalVector LocalVector
 
typedef std::pair
< TrajectoryStateOnSurface,
double > 
TSOSwithPath
 

Detailed Description

Definition at line 12 of file NavCylinder.h.

Constructor & Destructor Documentation

NavCylinder::NavCylinder ( const Cylinder cylinder)
inline

Definition at line 18 of file NavCylinder.h.

18 : theSurfaceP(cylinder) {}
ConstReferenceCountingPointer< Cylinder > theSurfaceP
Definition: NavCylinder.h:47

Member Function Documentation

virtual void NavCylinder::addVolume ( const NavVolume vol,
const Bounds bounds,
SurfaceOrientation::Side  side 
)
inlinevirtual

NavVolumes are supposed to call this method to "register" with the NavSurface.

Implements NavSurface.

Definition at line 37 of file NavCylinder.h.

References LinearSearchNavSurfaceImpl::addVolume(), and theImpl.

38  {
39  theImpl.addVolume( vol, bounds, side);
40  }
LinearSearchNavSurfaceImpl theImpl
Definition: NavCylinder.h:48
void addVolume(const NavVolume *vol, const Bounds *bounds, SurfaceOrientation::Side side)
virtual const Bounds* NavCylinder::bounds ( const NavVolume vol)
inlinevirtual

Bounds corresponding to a NavVolume if present.

Implements NavSurface.

Definition at line 35 of file NavCylinder.h.

References LinearSearchNavSurfaceImpl::bounds(), and theImpl.

35 { return theImpl.bounds(vol);}
LinearSearchNavSurfaceImpl theImpl
Definition: NavCylinder.h:48
const Bounds * bounds(const NavVolume *vol)
std::pair< bool, double > NavCylinder::distanceAlongLine ( const NavSurface::GlobalPoint pos,
const NavSurface::GlobalVector dir 
) const
virtual

Distance to surface from point pos along line dir. If the half-line does not cross the surface the returned value is (false,undefined), otherwise the returned value is (true,distance)

Implements NavSurface.

Definition at line 22 of file NavCylinder.cc.

References StraightLineCylinderCrossing::pathLength(), theSurfaceP, and NavSurface::toLocal().

24 {
26  return pc.pathLength(*theSurfaceP);
27 }
ConstReferenceCountingPointer< Cylinder > theSurfaceP
Definition: NavCylinder.h:47
LocalPoint toLocal(const GlobalPoint &p) const
Forwarding of part of surface interface for convenience.
Definition: NavSurface.h:59
virtual const NavVolume* NavCylinder::nextVolume ( const NavSurface::LocalPoint point,
SurfaceOrientation::Side  side 
) const
inlinevirtual

Implements NavSurface.

Definition at line 24 of file NavCylinder.h.

References LinearSearchNavSurfaceImpl::nextVolume(), and theImpl.

25  {
26  return theImpl.nextVolume( point,side);
27  }
LinearSearchNavSurfaceImpl theImpl
Definition: NavCylinder.h:48
const NavVolume * nextVolume(const NavSurface::LocalPoint &point, SurfaceOrientation::Side side) const
TrajectoryStateOnSurface NavCylinder::propagate ( const Propagator prop,
const TrajectoryStateOnSurface startingState 
) const
virtual

hook for double dispatch to avoid propagation to generic surface.

Implements NavSurface.

Definition at line 8 of file NavCylinder.cc.

References Propagator::propagate(), and theSurfaceP.

10 {
11  return prop.propagate( startingState, *theSurfaceP);
12 }
ConstReferenceCountingPointer< Cylinder > theSurfaceP
Definition: NavCylinder.h:47
TrajectoryStateOnSurface propagate(STA const &state, SUR const &surface) const
Definition: Propagator.h:53
std::pair< TrajectoryStateOnSurface, double > NavCylinder::propagateWithPath ( const Propagator prop,
const TrajectoryStateOnSurface startingState 
) const
virtual

hook for double dispatch to avoid propagation to generic surface.

Implements NavSurface.

Definition at line 15 of file NavCylinder.cc.

References Propagator::propagateWithPath(), and theSurfaceP.

17 {
18  return prop.propagateWithPath( startingState, *theSurfaceP);
19 }
virtual std::pair< TrajectoryStateOnSurface, double > propagateWithPath(const FreeTrajectoryState &, const Surface &) const final
Definition: Propagator.cc:15
ConstReferenceCountingPointer< Cylinder > theSurfaceP
Definition: NavCylinder.h:47
virtual const Surface& NavCylinder::surface ( ) const
inlinevirtual

Access to actual surface.

Implements NavSurface.

Definition at line 22 of file NavCylinder.h.

References theSurfaceP.

22 {return *theSurfaceP;}
ConstReferenceCountingPointer< Cylinder > theSurfaceP
Definition: NavCylinder.h:47

Member Data Documentation

LinearSearchNavSurfaceImpl NavCylinder::theImpl
private

Definition at line 48 of file NavCylinder.h.

Referenced by addVolume(), bounds(), and nextVolume().

ConstReferenceCountingPointer<Cylinder> NavCylinder::theSurfaceP
private

Definition at line 47 of file NavCylinder.h.

Referenced by distanceAlongLine(), propagate(), propagateWithPath(), and surface().