CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DiskSectorBounds.h
Go to the documentation of this file.
1 #ifndef RecoTracker_TkDetLayers_DiskSectorBounds_h
2 #define RecoTracker_TkDetLayers_DiskSectorBounds_h
3 
4 
8 #include <algorithm>
9 #include <cmath>
10 #include <cassert>
11 
12 #pragma GCC visibility push(hidden)
14 public:
15 
16  DiskSectorBounds( float rmin, float rmax, float zmin, float zmax, float phiExt) :
17  theRmin(rmin), theRmax(rmax), theZmin(zmin), theZmax(zmax), thePhiExtH(0.5f*phiExt) {
18  assert(thePhiExtH>0);
21  theOffset = theRmin + 0.5f*(theRmax-theRmin);
22  }
23 
24  virtual float length() const { return theRmax-theRmin*std::cos(thePhiExtH);}
25  virtual float width() const { return 2.f*theRmax*std::sin(thePhiExtH);}
26  virtual float thickness() const { return theZmax-theZmin;}
27 
28  virtual bool inside( const Local3DPoint& p) const;
29 
30  virtual bool inside( const Local3DPoint& p, const LocalError& err, float scale) const;
31 
32  virtual bool inside( const Local2DPoint& p, const LocalError& err) const {
33  return Bounds::inside(p,err);
34  }
35 
36  virtual Bounds* clone() const {
37  return new DiskSectorBounds(*this);
38  }
39 
40  float innerRadius() const {return theRmin;}
41  float outerRadius() const {return theRmax;}
42  float phiHalfExtension() const {return thePhiExtH;}
43 
44  private:
45  float theRmin;
46  float theRmax;
47  float theZmin;
48  float theZmax;
49  float thePhiExtH;
50  float theOffset;
51  };
52 
53 #pragma GCC visibility pop
54 #endif
55 
virtual float thickness() const
#define GCC11_FINAL
virtual bool inside(const Local3DPoint &p) const
Determine if the point is inside the bounds.
virtual bool inside(const Local3DPoint &) const =0
Determine if the point is inside the bounds.
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
float innerRadius() const
virtual bool inside(const Local2DPoint &p, const LocalError &err) const
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
virtual Bounds * clone() const
double f[11][100]
float phiHalfExtension() const
virtual float width() const
Definition: Bounds.h:22
virtual float length() const
float outerRadius() const
DiskSectorBounds(float rmin, float rmax, float zmin, float zmax, float phiExt)