CMS 3D CMS Logo

BoundDisk.h
Go to the documentation of this file.
1 #ifndef Geom_BoundDisk_H
2 #define Geom_BoundDisk_H
3 
6 
19 class Disk final : public Plane {
20 public:
21  /*
22  template<typename... Args>
23  Disk(Args&& ... args) :
24  Plane(std::forward<Args>(args)...){}
25  */
26 
28 
30  : Plane(pos, rot, bounds.clone()) {}
31 
36 
37  template <typename... Args>
38  static DiskPointer build(Args&&... args) {
39  return DiskPointer(new Disk(std::forward<Args>(args)...));
40  }
41 
42  ~Disk() override {}
43 
44  // -- DEPRECATED CONSTRUCTORS
45 
46  // -- Extension of the Surface interface for disk
47 
49  float innerRadius() const { return static_cast<const SimpleDiskBounds&>(bounds()).innerRadius(); }
50 
52  float outerRadius() const { return static_cast<const SimpleDiskBounds&>(bounds()).outerRadius(); }
53 };
54 using BoundDisk = Disk;
55 
56 #endif // Geom_BoundDisk_H
writedatasetfile.args
args
Definition: writedatasetfile.py:18
TkRotation< float >
Disk::outerRadius
float outerRadius() const
The outer radius of the disk.
Definition: BoundDisk.h:52
Disk::build
static DiskPointer build(Args &&... args)
Definition: BoundDisk.h:38
pos
Definition: PixelAliasList.h:18
ConstReferenceCountingPointer
Definition: ReferenceCounted.h:67
ReferenceCountingPointer< Disk >
BoundDisk
Disk::Disk
Disk(const PositionType &pos, const RotationType &rot, SimpleDiskBounds *bounds)
Definition: BoundDisk.h:27
SimpleDiskBounds
Definition: SimpleDiskBounds.h:11
Plane.h
clone
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
Definition: eve_macros.cc:135
Surface::bounds
const Bounds & bounds() const
Definition: Surface.h:87
Point3DBase< float, GlobalTag >
Disk::ConstDiskPointer
ConstReferenceCountingPointer< Disk > ConstDiskPointer
Definition: BoundDisk.h:33
Disk::~Disk
~Disk() override
Definition: BoundDisk.h:42
Disk::BoundDiskPointer
ReferenceCountingPointer< Disk > BoundDiskPointer
Definition: BoundDisk.h:34
Disk
Definition: BoundDisk.h:19
Disk::Disk
Disk(const PositionType &pos, const RotationType &rot, SimpleDiskBounds const &bounds)
Definition: BoundDisk.h:29
Plane
Definition: Plane.h:16
makeMuonMisalignmentScenario.rot
rot
Definition: makeMuonMisalignmentScenario.py:322
Disk::DiskPointer
ReferenceCountingPointer< Disk > DiskPointer
Definition: BoundDisk.h:32
SimpleDiskBounds.h
Disk::ConstBoundDiskPointer
ConstReferenceCountingPointer< Disk > ConstBoundDiskPointer
Definition: BoundDisk.h:35
Disk::innerRadius
float innerRadius() const
The inner radius of the disk.
Definition: BoundDisk.h:49