CMS 3D CMS Logo

OuterEstimator Class Reference

It is a MeasurementEstimator used by TrackingRegions for finding (OUTER) compatible hits and det units by testing the hit compatibility by OuterHitCompatibility and det compatibility by OuterDetCompatibility. More...

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

Inheritance diagram for OuterEstimator:

MeasurementEstimator

List of all members.

Public Member Functions

GlobalPoint center ()
virtual OuterEstimatorclone () const
const OuterDetCompatibilitydetCompatibility () const
virtual bool estimate (const TrajectoryStateOnSurface &ts, const BoundPlane &plane) const
 Returns true if the TrajectoryStateOnSurface is compatible with the BoundPlane, false otherwise.
virtual std::pair< bool, double > estimate (const TrajectoryStateOnSurface &ts, const TrackingRecHit &hit, const edm::EventSetup &iSetup) const
virtual std::pair< bool, double > estimate (const TrajectoryStateOnSurface &ts, const TransientTrackingRecHit &hit) const
 Returns pair( true, value) if the TrajectoryStateOnSurface is compatible with the RecHit, and pair( false, value) if it is not compatible.
const OuterHitCompatibilityhitCompatibility () const
virtual
MeasurementEstimator::Local2DVector 
maximalLocalDisplacement (const TrajectoryStateOnSurface &ts, const BoundPlane &plane) const
 Returns the size of the compatibility region around the local position of the TrajectoryStateOnSurface along the directions of local x and y axis.
 OuterEstimator (const OuterDetCompatibility &detCompatibility, const OuterHitCompatibility &hitCompatibility, const edm::EventSetup &iSetup)
virtual ~OuterEstimator ()

Private Attributes

OuterDetCompatibility theDetCompatibility
OuterHitCompatibility theHitCompatibility


Detailed Description

It is a MeasurementEstimator used by TrackingRegions for finding (OUTER) compatible hits and det units by testing the hit compatibility by OuterHitCompatibility and det compatibility by OuterDetCompatibility.

Definition at line 19 of file OuterEstimator.h.


Constructor & Destructor Documentation

OuterEstimator::OuterEstimator ( const OuterDetCompatibility detCompatibility,
const OuterHitCompatibility hitCompatibility,
const edm::EventSetup iSetup 
) [inline]

Definition at line 22 of file OuterEstimator.h.

Referenced by clone().

00026    : theDetCompatibility(detCompatibility), 
00027      theHitCompatibility (hitCompatibility) { }

virtual OuterEstimator::~OuterEstimator (  )  [inline, virtual]

Definition at line 28 of file OuterEstimator.h.

00028 {}


Member Function Documentation

GlobalPoint OuterEstimator::center (  )  [inline]

Definition at line 51 of file OuterEstimator.h.

References OuterDetCompatibility::center(), and theDetCompatibility.

Referenced by RectangularEtaPhiTrackingRegion::hits().

00051 { return theDetCompatibility.center(); }

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

Implements MeasurementEstimator.

Definition at line 53 of file OuterEstimator.h.

References OuterEstimator().

00053                                         {
00054     return new OuterEstimator(*this);
00055   }

const OuterDetCompatibility& OuterEstimator::detCompatibility (  )  const [inline]

Definition at line 63 of file OuterEstimator.h.

References theDetCompatibility.

00064     {return theDetCompatibility; }

virtual bool OuterEstimator::estimate ( const TrajectoryStateOnSurface ts,
const BoundPlane plane 
) const [inline, virtual]

Returns true if the TrajectoryStateOnSurface is compatible with the BoundPlane, false otherwise.

The TrajectoryStateOnSurface must be on the plane.

Implements MeasurementEstimator.

Definition at line 44 of file OuterEstimator.h.

References theDetCompatibility.

00047         {
00048     return theDetCompatibility(plane);
00049   }

virtual std::pair<bool,double> OuterEstimator::estimate ( const TrajectoryStateOnSurface ts,
const TrackingRecHit hit,
const edm::EventSetup iSetup 
) const [inline, virtual]

Definition at line 36 of file OuterEstimator.h.

References theHitCompatibility.

00040           {
00041        return theHitCompatibility(&hit,iSetup) ? std::make_pair(true,1.) : std::make_pair(false,0.) ;
00042   }

virtual std::pair<bool,double> OuterEstimator::estimate ( const TrajectoryStateOnSurface ts,
const TransientTrackingRecHit hit 
) const [inline, virtual]

Returns pair( true, value) if the TrajectoryStateOnSurface is compatible with the RecHit, and pair( false, value) if it is not compatible.

The TrajectoryStateOnSurface must be on the same Surface as the RecHit. For an estimator where there is no value computed, e.g. fixed window estimator, only the first(bool) part is of interest.

Implements MeasurementEstimator.

Definition at line 29 of file OuterEstimator.h.

References theHitCompatibility.

00032           {
00033        return theHitCompatibility(&hit) ? std::make_pair(true,1.) : std::make_pair(false,0.) ;
00034   }

const OuterHitCompatibility& OuterEstimator::hitCompatibility (  )  const [inline]

Definition at line 65 of file OuterEstimator.h.

References theHitCompatibility.

Referenced by RectangularEtaPhiTrackingRegion::hits().

00066     {return theHitCompatibility; }

virtual MeasurementEstimator::Local2DVector OuterEstimator::maximalLocalDisplacement ( const TrajectoryStateOnSurface ts,
const BoundPlane plane 
) const [inline, virtual]

Returns the size of the compatibility region around the local position of the TrajectoryStateOnSurface along the directions of local x and y axis.

The TrajectoryStateOnSurface must be on the plane. This method allows to limit the search for compatible detectors or RecHits. The MeasurementEstimator should not return "true" for any RecHit or BoundPlane which is entirely outside of the compatibility region defined by maximalLocalDisplacement().

Reimplemented from MeasurementEstimator.

Definition at line 57 of file OuterEstimator.h.

References TrajectoryStateOnSurface::globalPosition(), OuterDetCompatibility::maximalLocalDisplacement(), and theDetCompatibility.

00058                                                                          {
00059     return theDetCompatibility.maximalLocalDisplacement(
00060         ts.globalPosition(),plane);
00061  }


Member Data Documentation

OuterDetCompatibility OuterEstimator::theDetCompatibility [private]

Definition at line 69 of file OuterEstimator.h.

Referenced by center(), detCompatibility(), estimate(), and maximalLocalDisplacement().

OuterHitCompatibility OuterEstimator::theHitCompatibility [private]

Definition at line 70 of file OuterEstimator.h.

Referenced by estimate(), and hitCompatibility().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:29:25 2009 for CMSSW by  doxygen 1.5.4