CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch1/src/TrackPropagation/NavGeometry/interface/NavCylinder.h

Go to the documentation of this file.
00001 #ifndef NavCylinder_H
00002 #define NavCylinder_H
00003 
00004 #include "DataFormats/GeometrySurface/interface/Cylinder.h"
00005 #include "TrackPropagation/NavGeometry/interface/NavSurface.h"
00006 #include "TrackPropagation/NavGeometry/interface/LinearSearchNavSurfaceImpl.h"
00007 #include "DataFormats/GeometrySurface/interface/ReferenceCounted.h"
00008 
00009 #include <vector>
00010 class Bounds;
00011 
00012 class NavCylinder : public NavSurface {
00013 public:
00014 
00015 /*     NavCylinder( const PositionType& pos, const RotationType& rot, Scalar radius) : */
00016 /*      Surface( pos, rot), Cylinder( pos, rot, radius), NavSurface( pos, rot) {} */
00017 
00018     NavCylinder( const Cylinder* cylinder) : theSurfaceP(cylinder) {}
00019 
00020     // FIXME: restore covariant return type when gcc version upgraded
00021     //virtual const Cylinder& surface() const {return *theSurfaceP;} 
00022     virtual const Surface& surface() const {return *theSurfaceP;} 
00023 
00024     virtual const NavVolume* nextVolume( const NavSurface::LocalPoint& point, 
00025                                          SurfaceOrientation::Side side) const {
00026         return theImpl.nextVolume( point,side);
00027     }
00028 
00029     virtual TrajectoryStateOnSurface 
00030     propagate( const Propagator& prop, const TrajectoryStateOnSurface& startingState) const;
00031 
00032     virtual NavSurface::TSOSwithPath 
00033     propagateWithPath( const Propagator& prop, const TrajectoryStateOnSurface& startingState) const;
00034 
00035     virtual const Bounds* bounds( const NavVolume* vol) { return theImpl.bounds(vol);}
00036 
00037     virtual void addVolume( const NavVolume* vol, const Bounds* bounds, 
00038                             SurfaceOrientation::Side side) {
00039         theImpl.addVolume( vol, bounds, side);
00040     }
00041 
00042     virtual std::pair<bool,double> 
00043     distanceAlongLine( const NavSurface::GlobalPoint& pos, const NavSurface::GlobalVector& dir) const;
00044 
00045 private:
00046 
00047   ConstReferenceCountingPointer<Cylinder> theSurfaceP;
00048   LinearSearchNavSurfaceImpl theImpl;
00049 
00050 };
00051 
00052 #endif