CMS 3D CMS Logo

BoundCylinder Class Reference

A Cylinder with Bounds. More...

#include <DataFormats/GeometrySurface/interface/BoundCylinder.h>

Inheritance diagram for BoundCylinder:

Cylinder BoundSurface Surface Surface GloballyPositioned< float > ReferenceCounted GloballyPositioned< float > ReferenceCounted

List of all members.

Public Types

typedef
ReferenceCountingPointer
< BoundCylinder
BoundCylinderPointer
typedef
ConstReferenceCountingPointer
< BoundCylinder
ConstBoundCylinderPointer

Public Member Functions

 BoundCylinder (const PositionType &pos, const RotationType &rot, const Bounds &bounds)
 Obsolete constructor, radius should be given explicitly.
 BoundCylinder (const PositionType &pos, const RotationType &rot, const Bounds *bounds)
 Obsolete constructor, radius should be given explicitly.
 BoundCylinder (const PositionType &pos, const RotationType &rot, Scalar radius, MediumProperties *mp, const Bounds &bounds)
 Do not use this constructor directly; use the static build method, which returns a ReferenceCountingPointer.
 BoundCylinder (const PositionType &pos, const RotationType &rot, Scalar radius, const Bounds &bounds)
 Do not use this constructor directly; use the static build method, which returns a ReferenceCountingPointer.
virtual ~BoundCylinder ()

Static Public Member Functions

static BoundCylinderPointer build (const PositionType &pos, const RotationType &rot, Scalar radius, const Bounds &bounds, MediumProperties *mp=0)
 Construct a cylinder with origin at pos and with rotation matrix rot, with bounds.
static BoundCylinderPointer build (const PositionType &pos, const RotationType &rot, Scalar radius, const Bounds *bounds, MediumProperties *mp=0)
 Construct a cylinder with origin at pos and with rotation matrix rot, with bounds.

Protected Member Functions

 BoundCylinder (const PositionType &pos, const RotationType &rot, Scalar radius, const Bounds *bounds, MediumProperties *mp=0)


Detailed Description

A Cylinder with Bounds.

Warning:
Surfaces are reference counted, so only ReferenceCountingPointer should be used to point to them. For this reason, they should be using the static build() method. (The normal constructor will become private in the future).
Date
2007/10/06 20:21:23
Revision
1.3

Definition at line 21 of file BoundCylinder.h.


Member Typedef Documentation

typedef ReferenceCountingPointer<BoundCylinder> BoundCylinder::BoundCylinderPointer

Definition at line 24 of file BoundCylinder.h.

typedef ConstReferenceCountingPointer<BoundCylinder> BoundCylinder::ConstBoundCylinderPointer

Definition at line 25 of file BoundCylinder.h.


Constructor & Destructor Documentation

virtual BoundCylinder::~BoundCylinder (  )  [inline, virtual]

Definition at line 48 of file BoundCylinder.h.

00048 {}

BoundCylinder::BoundCylinder ( const PositionType pos,
const RotationType rot,
Scalar  radius,
const Bounds bounds 
) [inline]

Do not use this constructor directly; use the static build method, which returns a ReferenceCountingPointer.

This constructor will soon become private

Definition at line 55 of file BoundCylinder.h.

Referenced by build().

00058                                       :
00059     Surface( pos,rot ),
00060     Cylinder( pos, rot, radius), 
00061     BoundSurface(pos, rot, bounds) 
00062   { }

BoundCylinder::BoundCylinder ( const PositionType pos,
const RotationType rot,
Scalar  radius,
MediumProperties mp,
const Bounds bounds 
) [inline]

Do not use this constructor directly; use the static build method, which returns a ReferenceCountingPointer.

This constructor will soon become private

Definition at line 67 of file BoundCylinder.h.

00071                                       : 
00072     Surface( pos,rot ),
00073     Cylinder( pos, rot, radius, mp ), 
00074     BoundSurface( pos, rot, bounds ) 
00075   { }

BoundCylinder::BoundCylinder ( const PositionType pos,
const RotationType rot,
const Bounds bounds 
)

Obsolete constructor, radius should be given explicitly.

Definition at line 3 of file BoundCylinder.cc.

00005                                                     :
00006     Surface( pos,rot ),
00007     Cylinder( pos, rot, bounds->width()/2. - bounds->thickness()/2.),
00008     BoundSurface( pos, rot, bounds ) 
00009 { }

BoundCylinder::BoundCylinder ( const PositionType pos,
const RotationType rot,
const Bounds bounds 
)

Obsolete constructor, radius should be given explicitly.

Definition at line 11 of file BoundCylinder.cc.

00013                                                     :
00014     Surface( pos,rot ),
00015     Cylinder( pos, rot, bounds.width()/2. - bounds.thickness()/2.),
00016     BoundSurface( pos, rot, bounds )
00017 { }
{ }

BoundCylinder::BoundCylinder ( const PositionType pos,
const RotationType rot,
Scalar  radius,
const Bounds bounds,
MediumProperties mp = 0 
) [inline, protected]

Definition at line 89 of file BoundCylinder.h.

00093                                         : 
00094     Surface( pos,rot ),
00095     Cylinder(pos, rot, radius, mp), 
00096     BoundSurface(pos, rot, bounds, mp)
00097   { }


Member Function Documentation

static BoundCylinderPointer BoundCylinder::build ( const PositionType pos,
const RotationType rot,
Scalar  radius,
const Bounds bounds,
MediumProperties mp = 0 
) [inline, static]

Construct a cylinder with origin at pos and with rotation matrix rot, with bounds.

The bounds you provide are cloned.

Definition at line 40 of file BoundCylinder.h.

References BoundCylinder(), and mp.

00044                                                             {
00045     return BoundCylinderPointer(new BoundCylinder(pos, rot, radius, &bounds, mp));
00046   }

static BoundCylinderPointer BoundCylinder::build ( const PositionType pos,
const RotationType rot,
Scalar  radius,
const Bounds bounds,
MediumProperties mp = 0 
) [inline, static]

Construct a cylinder with origin at pos and with rotation matrix rot, with bounds.

The bounds you provide are cloned.

Definition at line 29 of file BoundCylinder.h.

References BoundCylinder(), and mp.

Referenced by SmartPropagator::initTkVolume().

00033                                                             {
00034     return BoundCylinderPointer(new BoundCylinder(pos, rot, radius, bounds, mp));
00035   }


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:15:02 2009 for CMSSW by  doxygen 1.5.4