test
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 
15 class HitEtaCheck final : public HitRZCompatibility {
16 public:
17 
19 
20  HitEtaCheck(bool inbarrel,
22  float cotLeftLine, float cotRightLine)
24  isBarrel(inbarrel),
25  theRZ(HitRZConstraint(point, cotLeftLine, point, cotRightLine)) { }
26 
27  virtual bool operator() (const float & r, const float & z) const {
28  const auto & lineLeft = theRZ.lineLeft();
29  const auto & lineRight = theRZ.lineRight();
30  float cotHit = (lineLeft.origin().z()-z)/(lineLeft.origin().r()-r);
31  return lineRight.cotLine() < cotHit && cotHit < lineLeft.cotLine();
32  }
33 
34  virtual Range range(const float & rORz) const {
35  return (isBarrel) ?
36  HitZCheck(theRZ).range(rORz) : HitRCheck(theRZ).range(rORz);
37  }
38  virtual HitEtaCheck* clone() const { return new HitEtaCheck(*this); }
39 private:
40  bool isBarrel;
42 };
43 #endif
float cotLine() const
virtual HitEtaCheck * clone() const
Definition: HitEtaCheck.h:38
static Algo me
Definition: HitEtaCheck.h:18
const Line & lineRight() const
Range range(const float &z) const
Definition: HitRCheck.h:36
#define constexpr
virtual bool operator()(const float &r, const float &z) const
Definition: HitEtaCheck.h:27
HitEtaCheck(bool inbarrel, const HitRZConstraint::Point &point, float cotLeftLine, float cotRightLine)
Definition: HitEtaCheck.h:20
bool isBarrel
Definition: HitEtaCheck.h:40
const Line & lineLeft() const
virtual Range range(const float &rORz) const
Definition: HitEtaCheck.h:34
Definition: fakeMenu.h:6
*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:41
Range range(const float &radius) const
Definition: HitZCheck.h:35