CMS 3D CMS Logo

NavCylinder.h
Go to the documentation of this file.
1 #ifndef NavCylinder_H
2 #define NavCylinder_H
3 
8 
9 #include <vector>
10 class Bounds;
11 
12 class NavCylinder final : public NavSurface {
13 public:
14 
15 /* NavCylinder( const PositionType& pos, const RotationType& rot, Scalar radius) : */
16 /* Surface( pos, rot), Cylinder( pos, rot, radius), NavSurface( pos, rot) {} */
17 
18  NavCylinder( const Cylinder* cylinder) : theSurfaceP(cylinder) {}
19 
20  // FIXME: restore covariant return type when gcc version upgraded
21  //virtual const Cylinder& surface() const {return *theSurfaceP;}
22  const Surface& surface() const override {return *theSurfaceP;}
23 
25  SurfaceOrientation::Side side) const override {
26  return theImpl.nextVolume( point,side);
27  }
28 
30  propagate( const Propagator& prop, const TrajectoryStateOnSurface& startingState) const override;
31 
33  propagateWithPath( const Propagator& prop, const TrajectoryStateOnSurface& startingState) const override;
34 
35  const Bounds* bounds( const NavVolume* vol) override { return theImpl.bounds(vol);}
36 
37  void addVolume( const NavVolume* vol, const Bounds* bounds,
38  SurfaceOrientation::Side side) override {
39  theImpl.addVolume( vol, bounds, side);
40  }
41 
42  std::pair<bool,double>
44 
45 private:
46 
49 
50 };
51 
52 #endif
const Bounds * bounds(const NavVolume *vol) override
Bounds corresponding to a NavVolume if present.
Definition: NavCylinder.h:35
const Surface & surface() const override
Access to actual surface.
Definition: NavCylinder.h:22
LinearSearchNavSurfaceImpl theImpl
Definition: NavCylinder.h:48
std::pair< bool, double > distanceAlongLine(const NavSurface::GlobalPoint &pos, const NavSurface::GlobalVector &dir) const override
Definition: NavCylinder.cc:22
const Bounds * bounds(const NavVolume *vol)
NavSurface::TSOSwithPath propagateWithPath(const Propagator &prop, const TrajectoryStateOnSurface &startingState) const override
hook for double dispatch to avoid propagation to generic surface.
Definition: NavCylinder.cc:15
void addVolume(const NavVolume *vol, const Bounds *bounds, SurfaceOrientation::Side side) override
NavVolumes are supposed to call this method to "register" with the NavSurface.
Definition: NavCylinder.h:37
TrajectoryStateOnSurface propagate(const Propagator &prop, const TrajectoryStateOnSurface &startingState) const override
hook for double dispatch to avoid propagation to generic surface.
Definition: NavCylinder.cc:8
const NavVolume * nextVolume(const NavSurface::LocalPoint &point, SurfaceOrientation::Side side) const override
Definition: NavCylinder.h:24
ConstReferenceCountingPointer< Cylinder > theSurfaceP
Definition: NavCylinder.h:47
const NavVolume * nextVolume(const NavSurface::LocalPoint &point, SurfaceOrientation::Side side) const
Definition: Bounds.h:22
NavCylinder(const Cylinder *cylinder)
Definition: NavCylinder.h:18
dbl *** dir
Definition: mlp_gen.cc:35
std::pair< TrajectoryStateOnSurface, double > TSOSwithPath
Definition: NavSurface.h:26
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
Definition: invegas.h:5
void addVolume(const NavVolume *vol, const Bounds *bounds, SurfaceOrientation::Side side)