CMS 3D CMS Logo

Cone.h
Go to the documentation of this file.
1 #ifndef Geom_Cone_H
2 #define Geom_Cone_H
3 
16 
17 class Cone final : public Surface {
18 public:
19  template <typename... Args>
20  Cone(const PositionType& vert, Geom::Theta<Scalar> angle, Args&&... args)
21  : Surface(std::forward<Args>(args)...), theVertex(vert), theAngle(angle) {}
22 
25 
30  const RotationType& rot,
31  const PositionType& vert,
33  return ConePointer(new Cone(vert, angle, pos, rot));
34  }
35 
36  // -- DEPRECATED CONSTRUCTOR
37 
42  : Surface(pos, rot), theVertex(vert), theAngle(angle) {}
43 
44  // -- Extension of Surface interface for cone
45 
47  GlobalPoint vertex() const { return theVertex; }
48 
51 
52  // -- Implementation of Surface interface
53 
54  Side side(const LocalPoint& p, Scalar tolerance) const override { return side(toGlobal(p), tolerance); }
55  Side side(const GlobalPoint& p, Scalar tolerance) const override;
56 
57  // Tangent plane to surface from global point
59  // Tangent plane to surface from local point
61 
62 private:
65 };
66 
67 #endif
Cone::openingAngle
Geom::Theta< float > openingAngle() const
Angle of the cone.
Definition: Cone.h:50
writedatasetfile.args
args
Definition: writedatasetfile.py:18
TkRotation< float >
Surface::Side
SurfaceOrientation::Side Side
Definition: Surface.h:38
Geom::Theta< Scalar >
pos
Definition: PixelAliasList.h:18
ConstReferenceCountingPointer
Definition: ReferenceCounted.h:67
Surface
Definition: Surface.h:36
Cone::vertex
GlobalPoint vertex() const
Global position of the cone vertex.
Definition: Cone.h:47
Cone::ConePointer
ReferenceCountingPointer< Cone > ConePointer
Definition: Cone.h:23
ReferenceCountingPointer
Definition: ReferenceCounted.h:60
Cone::build
static ConePointer build(const PositionType &pos, const RotationType &rot, const PositionType &vert, Geom::Theta< Scalar > angle)
Definition: Cone.h:29
Surface.h
Cone::tangentPlane
ConstReferenceCountingPointer< TangentPlane > tangentPlane(const GlobalPoint &) const override
Definition: Cone.cc:8
Surface::toGlobal
GlobalPoint toGlobal(const Point2DBase< Scalar, LocalTag > lp) const
Definition: Surface.h:79
Point3DBase< float, GlobalTag >
Cone
Definition: Cone.h:17
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
tolerance
const double tolerance
Definition: HGCalGeomParameters.cc:29
Cone::side
Side side(const LocalPoint &p, Scalar tolerance) const override
Definition: Cone.h:54
Cone::Cone
Cone(const PositionType &pos, const RotationType &rot, const PositionType &vert, Geom::Theta< Scalar > angle)
Definition: Cone.h:41
Cone::theVertex
GlobalPoint theVertex
Definition: Cone.h:63
SurfaceOrientation::Side
Side
Definition: Surface.h:18
Cone::ConstConePointer
ReferenceCountingPointer< Cone > ConstConePointer
Definition: Cone.h:24
Cone::theAngle
Geom::Theta< Scalar > theAngle
Definition: Cone.h:64
std
Definition: JetResolutionObject.h:76
makeMuonMisalignmentScenario.rot
rot
Definition: makeMuonMisalignmentScenario.py:322
angle
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11
GloballyPositioned< float >::Scalar
float Scalar
Definition: GloballyPositioned.h:20
Cone::Cone
Cone(const PositionType &vert, Geom::Theta< Scalar > angle, Args &&... args)
Definition: Cone.h:20