CMS 3D CMS Logo

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