#include <DataFormats/GeometrySurface/interface/Cone.h>
Public Types | |
typedef ReferenceCountingPointer< Cone > | ConePointer |
typedef ReferenceCountingPointer< Cone > | ConstConePointer |
Public Member Functions | |
Cone (const PositionType &pos, const RotationType &rot, const PositionType &vert, Geom::Theta< Scalar > angle) | |
Do not use this constructor directly; use the static build method, which returns a ReferenceCountingPointer. | |
Geom::Theta< float > | openingAngle () const |
Angle of the cone. | |
virtual Side | side (const GlobalPoint &p, Scalar tolerance) const |
Returns the side of the surface on which the point is. | |
virtual Side | side (const LocalPoint &p, Scalar tolerance) const |
Returns the side of the surface on which the point is. | |
virtual ReferenceCountingPointer < TangentPlane > | tangentPlane (const LocalPoint &) const |
Tangent plane to surface from global point. | |
virtual ReferenceCountingPointer < TangentPlane > | tangentPlane (const GlobalPoint &) const |
Tangent plane to surface from global point. | |
GlobalPoint | vertex () const |
Global position of the cone vertex. | |
Static Public Member Functions | |
static ConePointer | build (const PositionType &pos, const RotationType &rot, const PositionType &vert, Geom::Theta< Scalar > angle) |
Construct a cone with the specified vertex and opening angle. | |
Protected Member Functions | |
Cone (const PositionType &pos, const RotationType &rot, const PositionType &vert, Geom::Theta< Scalar > angle, MediumProperties *mp) | |
Private Attributes | |
Geom::Theta< Scalar > | theAngle |
GlobalPoint | theVertex |
Definition at line 20 of file Cone.h.
Cone::Cone | ( | const PositionType & | pos, | |
const RotationType & | rot, | |||
const PositionType & | vert, | |||
Geom::Theta< Scalar > | angle | |||
) | [inline] |
Cone::Cone | ( | const PositionType & | pos, | |
const RotationType & | rot, | |||
const PositionType & | vert, | |||
Geom::Theta< Scalar > | angle, | |||
MediumProperties * | mp | |||
) | [inline, protected] |
static ConePointer Cone::build | ( | const PositionType & | pos, | |
const RotationType & | rot, | |||
const PositionType & | vert, | |||
Geom::Theta< Scalar > | angle | |||
) | [inline, static] |
Geom::Theta<float> Cone::openingAngle | ( | ) | const [inline] |
Angle of the cone.
Definition at line 53 of file Cone.h.
References theAngle.
Referenced by SteppingHelixPropagator::refToMagVolume(), and MagGeoBuilderFromDDD::volumeHandle::sameSurface().
00053 {return theAngle;}
virtual Side Cone::side | ( | const GlobalPoint & | p, | |
Scalar | tolerance | |||
) | const [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.
Surface::Side Cone::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 58 of file Cone.h.
References Surface::toGlobal().
virtual ReferenceCountingPointer<TangentPlane> Cone::tangentPlane | ( | const LocalPoint & | ) | const [virtual] |
Tangent plane to surface from global point.
Returns a new plane, tangent to the Surface at a point. The point must be on the surface. The return type is a ReferenceCountingPointer, so the plane will be deleted automatically when no longer needed.
Implements Surface.
ReferenceCountingPointer< TangentPlane > Cone::tangentPlane | ( | const GlobalPoint & | ) | const [virtual] |
Tangent plane to surface from global point.
Returns a new plane, tangent to the Surface at a point. The point must be on the surface. The return type is a ReferenceCountingPointer, so the plane will be deleted automatically when no longer needed.
Implements Surface.
Definition at line 8 of file Cone.cc.
References GenMuonPlsPt100GeV_cfg::cout, and lat::endl().
00008 { 00009 // FIXME: to be implemented... 00010 std::cout << "*** WARNING: Cone::tangentPlane not implemented." <<std::endl; 00011 abort(); 00012 return ReferenceCountingPointer<TangentPlane>(); 00013 }
GlobalPoint Cone::vertex | ( | ) | const [inline] |
Global position of the cone vertex.
Definition at line 50 of file Cone.h.
References theVertex.
Referenced by SteppingHelixPropagator::refToMagVolume(), and MagGeoBuilderFromDDD::volumeHandle::sameSurface().
00050 {return theVertex;}
Geom::Theta<Scalar> Cone::theAngle [private] |
GlobalPoint Cone::theVertex [private] |