Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:27:55

0001 #ifndef HitRZConstraint_H
0002 #define HitRZConstraint_H
0003 
0004 /** r-z constraint is formed by two PixelRecoLineRZ lines. */
0005 
0006 #include "RecoTracker/TkMSParametrization/interface/PixelRecoLineRZ.h"
0007 
0008 class HitRZConstraint {
0009 public:
0010   using Line = SimpleLineRZ;
0011   using Point = SimpleLineRZ::Point;
0012 
0013   HitRZConstraint() {}
0014   HitRZConstraint(const Point& leftPoint, float cotLeftLine, const Point& rightPoint, float cotRightLine)
0015       : theLineLeft(Line(leftPoint, cotLeftLine)), theLineRight(Line(rightPoint, cotRightLine)) {}
0016   HitRZConstraint(const Line& lineLeft, const Line& lineRight) : theLineLeft(lineLeft), theLineRight(lineRight) {}
0017 
0018   const Line& lineLeft() const { return theLineLeft; }
0019   const Line& lineRight() const { return theLineRight; }
0020 
0021 protected:
0022   Line theLineLeft, theLineRight;
0023 };
0024 
0025 #endif