#include <RecoTracker/TkTrackingRegions/interface/OuterEstimator.h>
Public Member Functions | |
GlobalPoint | center () |
virtual OuterEstimator * | clone () const |
const OuterDetCompatibility & | detCompatibility () 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 OuterHitCompatibility & | hitCompatibility () 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 |
Definition at line 19 of file OuterEstimator.h.
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] |
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 }
Definition at line 69 of file OuterEstimator.h.
Referenced by center(), detCompatibility(), estimate(), and maximalLocalDisplacement().