CMS 3D CMS Logo

SimpleCylinderBounds.h
Go to the documentation of this file.
1 #ifndef Geom_SimpleCylinderBounds_H
2 #define Geom_SimpleCylinderBounds_H
3 
16 #include <cmath>
17 #include <algorithm>
18 
19 
20 class SimpleCylinderBounds final : public Bounds {
21 public:
22 
23  SimpleCylinderBounds( float rmin, float rmax, float zmin, float zmax);
24 
26  virtual float length() const { return theZmax - theZmin;}
28  virtual float width() const { return 2*theRmax;}
30  virtual float thickness() const { return theRmax-theRmin;}
31 
32  using Bounds::inside;
33  virtual bool inside( const Local3DPoint& p) const;
34 
35 
36  virtual bool inside( const Local3DPoint& p, const LocalError& err,float scale) const;
37 
38  virtual bool inside( const Local2DPoint& p, const LocalError& err) const;
39 
40 
41  virtual Bounds* clone() const;
42 
43 private:
44  float theRmin;
45  float theRmax;
46  float theZmin;
47  float theZmax;
48 };
49 
50 #endif // Geom_SimpleCylinderBounds_H
virtual float thickness() const
Thikness of the "pipe", i.e. difference between outer and inner radius.
virtual Bounds * clone() const
virtual bool inside(const Local3DPoint &) const =0
Determine if the point is inside the bounds.
virtual float length() const
Lenght of the cylinder.
SimpleCylinderBounds(float rmin, float rmax, float zmin, float zmax)
virtual bool inside(const Local3DPoint &p) const
Determine if the point is inside the bounds.
Definition: Bounds.h:22
virtual float width() const
Outer diameter of the cylinder.