CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HitZCheck.h
Go to the documentation of this file.
1 #ifndef HitZCheck_H
2 #define HitZCheck_H
3 
9 
10 
11 class HitZCheck : public HitRZCompatibility {
12 public:
13 
15 
16  HitZCheck() { }
17  HitZCheck(const HitRZConstraint & rz, Margin margin = Margin(0,0))
18  : theRZ(rz), theTolerance(margin) { }
19 
20  virtual bool operator() (const float & r, const float & z) const
21  { return range(r).inside(z); }
22 
23  virtual Range range(const float & radius) const;
24 
25  virtual HitZCheck * clone() const { return new HitZCheck(*this); }
26 
27  void setTolerance(const Margin & tolerance) { theTolerance = tolerance; }
28 
29 private:
32 };
33 #endif
TkTrackingRegionsMargin< float > Margin
Definition: HitZCheck.h:14
double double double z
virtual HitZCheck * clone() const
Definition: HitZCheck.h:25
Margin theTolerance
Definition: HitZCheck.h:31
virtual bool operator()(const float &r, const float &z) const
Definition: HitZCheck.h:20
HitRZConstraint theRZ
Definition: HitZCheck.h:30
PixelRecoRange< float > Range
bool inside(const T &value) const
HitZCheck()
Definition: HitZCheck.h:16
void setTolerance(const Margin &tolerance)
Definition: HitZCheck.h:27
virtual Range range(const float &radius) const
Definition: HitZCheck.cc:5