CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_4_5_patch3/src/RecoTracker/TkTrackingRegions/interface/HitRZConstraint.h

Go to the documentation of this file.
00001 #ifndef HitRZConstraint_H
00002 #define HitRZConstraint_H
00003 
00006 #include "RecoTracker/TkMSParametrization/interface/PixelRecoRange.h"
00007 #include "RecoTracker/TkTrackingRegions/interface/TkTrackingRegionsMargin.h"
00008 #include "RecoTracker/TkMSParametrization/interface/PixelRecoLineRZ.h"
00009 
00010 class HitRZConstraint {
00011 public:
00012 
00013   typedef TkTrackingRegionsMargin<float> Margin;
00014   typedef PixelRecoRange<float> Range;
00015   typedef PixelRecoLineRZ::LineOrigin LineOrigin;
00016 
00017   HitRZConstraint() { }
00018   HitRZConstraint(
00019       const LineOrigin & leftPoint, float cotLeftLine,
00020       const LineOrigin & rightPoint, float cotRightLine)
00021     : theLineLeft(PixelRecoLineRZ(leftPoint, cotLeftLine)),
00022       theLineRight(PixelRecoLineRZ(rightPoint, cotRightLine)) { }
00023   HitRZConstraint(
00024       const PixelRecoLineRZ & lineLeft, 
00025       const PixelRecoLineRZ & lineRight)
00026     :  theLineLeft(lineLeft), theLineRight(lineRight) { } 
00027 
00028   const PixelRecoLineRZ & lineLeft() const { return theLineLeft; } 
00029   const PixelRecoLineRZ & lineRight() const { return theLineRight; } 
00030 
00031 protected:
00032   PixelRecoLineRZ theLineLeft, theLineRight;
00033 };
00034 
00035 #endif