CMS 3D CMS Logo

HitZCheck Class Reference

provides allowed range of Z coordinate from HitRZConstraint at a given radius R More...

#include <RecoTracker/TkTrackingRegions/interface/HitZCheck.h>

Inheritance diagram for HitZCheck:

HitRZCompatibility

List of all members.

Public Types

typedef
TkTrackingRegionsMargin< float > 
Margin

Public Member Functions

virtual HitZCheckclone () const
 HitZCheck (const HitRZConstraint &rz, Margin margin=Margin(0, 0))
 HitZCheck ()
virtual bool operator() (const float &r, const float &z) const
virtual Range range (const float &radius) const
void setTolerance (const Margin &tolerance)

Private Attributes

HitRZConstraint theRZ
Margin theTolerance


Detailed Description

provides allowed range of Z coordinate from HitRZConstraint at a given radius R

Definition at line 11 of file HitZCheck.h.


Member Typedef Documentation

typedef TkTrackingRegionsMargin<float> HitZCheck::Margin

Definition at line 14 of file HitZCheck.h.


Constructor & Destructor Documentation

HitZCheck::HitZCheck (  )  [inline]

Definition at line 16 of file HitZCheck.h.

Referenced by clone().

00016 { }

HitZCheck::HitZCheck ( const HitRZConstraint rz,
Margin  margin = Margin(0,0) 
) [inline]

Definition at line 17 of file HitZCheck.h.

00018     : theRZ(rz), theTolerance(margin) { }


Member Function Documentation

virtual HitZCheck* HitZCheck::clone ( void   )  const [inline, virtual]

Implements HitRZCompatibility.

Definition at line 25 of file HitZCheck.h.

References HitZCheck().

00025 { return new HitZCheck(*this); }

virtual bool HitZCheck::operator() ( const float &  r,
const float &  z 
) const [inline, virtual]

Implements HitRZCompatibility.

Definition at line 20 of file HitZCheck.h.

References PixelRecoRange< T >::inside(), and range().

00021     { return range(r).inside(z); }

HitZCheck::Range HitZCheck::range ( const float &  radius  )  const [virtual]

Implements HitRZCompatibility.

Definition at line 5 of file HitZCheck.cc.

References TkTrackingRegionsMargin< T >::left(), HitRZConstraint::lineLeft(), HitRZConstraint::lineRight(), TkTrackingRegionsMargin< T >::right(), theRZ, theTolerance, and PixelRecoLineRZ::zAtR().

Referenced by RectangularEtaPhiTrackingRegion::estimator(), and operator()().

00006 {
00007   return Range( theRZ.lineLeft().zAtR(radius) - theTolerance.left(), 
00008                 theRZ.lineRight().zAtR(radius) + theTolerance.right());
00009 }

void HitZCheck::setTolerance ( const Margin tolerance  )  [inline]

Definition at line 27 of file HitZCheck.h.

References theTolerance.

Referenced by RectangularEtaPhiTrackingRegion::estimator().

00027 { theTolerance = tolerance; }


Member Data Documentation

HitRZConstraint HitZCheck::theRZ [private]

Definition at line 30 of file HitZCheck.h.

Referenced by range().

Margin HitZCheck::theTolerance [private]

Definition at line 31 of file HitZCheck.h.

Referenced by range(), and setTolerance().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:24:20 2009 for CMSSW by  doxygen 1.5.4