CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HitEtaCheck.h
Go to the documentation of this file.
1 #ifndef HitEtaCheck_H
2 #define HitEtaCheck_H
3 
14 
16 public:
17  HitEtaCheck(bool inbarrel,
19  float cotLeftLine, float cotRightLine)
20  : isBarrel(inbarrel),
21  theRZ(HitRZConstraint(point, cotLeftLine, point, cotRightLine)) { }
22 
23  virtual bool operator() (const float & r, const float & z) const {
24  const PixelRecoLineRZ & lineLeft = theRZ.lineLeft();
25  const PixelRecoLineRZ & lineRight = theRZ.lineRight();
26  float cotHit = (lineLeft.origin().z()-z)/(lineLeft.origin().r()-r);
27  return lineRight.cotLine() < cotHit && cotHit < lineLeft.cotLine();
28  }
29 
30  virtual Range range(const float & rORz) const {
31  return (isBarrel) ?
32  HitZCheck(theRZ).range(rORz) : HitRCheck(theRZ).range(rORz);
33  }
34  virtual HitEtaCheck* clone() const { return new HitEtaCheck(*this); }
35 private:
36  bool isBarrel;
38 };
39 #endif
virtual HitEtaCheck * clone() const
Definition: HitEtaCheck.h:34
virtual Range range(const float &z) const
Definition: HitRCheck.cc:4
LineOrigin origin() const
double double double z
virtual bool operator()(const float &r, const float &z) const
Definition: HitEtaCheck.h:23
float cotLine() const
bool isBarrel
Definition: HitEtaCheck.h:36
HitEtaCheck(bool inbarrel, const PixelRecoLineRZ::LineOrigin &point, float cotLeftLine, float cotRightLine)
Definition: HitEtaCheck.h:17
const PixelRecoLineRZ & lineRight() const
float z() const
float r() const
const PixelRecoLineRZ & lineLeft() const
virtual Range range(const float &rORz) const
Definition: HitEtaCheck.h:30
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
Definition: invegas.h:5
HitRZConstraint theRZ
Definition: HitEtaCheck.h:37
virtual Range range(const float &radius) const
Definition: HitZCheck.cc:5