CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
OuterEstimator Class Reference

#include <OuterEstimator.h>

Inheritance diagram for OuterEstimator:
MeasurementEstimator

Public Member Functions

GlobalPoint center ()
 
virtual OuterEstimatorclone () const
 
const OuterDetCompatibilitydetCompatibility () const
 
virtual std::pair< bool, double > estimate (const TrajectoryStateOnSurface &ts, const TransientTrackingRecHit &hit) const
 
virtual std::pair< bool, double > estimate (const TrajectoryStateOnSurface &ts, const TrackingRecHit &hit, const edm::EventSetup &iSetup) const
 
virtual bool estimate (const TrajectoryStateOnSurface &ts, const BoundPlane &plane) const
 
const OuterHitCompatibilityhitCompatibility () const
 
virtual
MeasurementEstimator::Local2DVector 
maximalLocalDisplacement (const TrajectoryStateOnSurface &ts, const BoundPlane &plane) const
 
 OuterEstimator (const OuterDetCompatibility &detCompatibility, const OuterHitCompatibility &hitCompatibility, const edm::EventSetup &iSetup)
 
virtual ~OuterEstimator ()
 
- Public Member Functions inherited from MeasurementEstimator
virtual ~MeasurementEstimator ()
 

Private Attributes

OuterDetCompatibility theDetCompatibility
 
OuterHitCompatibility theHitCompatibility
 

Additional Inherited Members

- Public Types inherited from MeasurementEstimator
typedef std::pair< bool, double > HitReturnType
 
typedef Vector2DBase< float,
LocalTag
Local2DVector
 
typedef bool SurfaceReturnType
 

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().

26  : theDetCompatibility(detCompatibility),
27  theHitCompatibility (hitCompatibility) { }
OuterDetCompatibility theDetCompatibility
OuterHitCompatibility theHitCompatibility
virtual OuterEstimator::~OuterEstimator ( )
inlinevirtual

Definition at line 28 of file OuterEstimator.h.

28 {}

Member Function Documentation

GlobalPoint OuterEstimator::center ( )
inline

Definition at line 51 of file OuterEstimator.h.

References OuterDetCompatibility::center(), and theDetCompatibility.

51 { return theDetCompatibility.center(); }
GlobalPoint center() const
OuterDetCompatibility theDetCompatibility
virtual OuterEstimator* OuterEstimator::clone ( void  ) const
inlinevirtual

Implements MeasurementEstimator.

Definition at line 53 of file OuterEstimator.h.

References OuterEstimator().

53  {
54  return new OuterEstimator(*this);
55  }
OuterEstimator(const OuterDetCompatibility &detCompatibility, const OuterHitCompatibility &hitCompatibility, const edm::EventSetup &iSetup)
const OuterDetCompatibility& OuterEstimator::detCompatibility ( ) const
inline

Definition at line 63 of file OuterEstimator.h.

References theDetCompatibility.

64  {return theDetCompatibility; }
OuterDetCompatibility theDetCompatibility
virtual std::pair<bool,double> OuterEstimator::estimate ( const TrajectoryStateOnSurface ts,
const TransientTrackingRecHit hit 
) const
inlinevirtual

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.

32  {
33  return theHitCompatibility(&hit) ? std::make_pair(true,1.) : std::make_pair(false,0.) ;
34  }
OuterHitCompatibility theHitCompatibility
virtual std::pair<bool,double> OuterEstimator::estimate ( const TrajectoryStateOnSurface ts,
const TrackingRecHit hit,
const edm::EventSetup iSetup 
) const
inlinevirtual

Definition at line 36 of file OuterEstimator.h.

References theHitCompatibility.

40  {
41  return theHitCompatibility(&hit,iSetup) ? std::make_pair(true,1.) : std::make_pair(false,0.) ;
42  }
OuterHitCompatibility theHitCompatibility
virtual bool OuterEstimator::estimate ( const TrajectoryStateOnSurface ts,
const BoundPlane plane 
) const
inlinevirtual

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.

47  {
48  return theDetCompatibility(plane);
49  }
OuterDetCompatibility theDetCompatibility
const OuterHitCompatibility& OuterEstimator::hitCompatibility ( ) const
inline

Definition at line 65 of file OuterEstimator.h.

References theHitCompatibility.

Referenced by RectangularEtaPhiTrackingRegion::hits().

66  {return theHitCompatibility; }
OuterHitCompatibility theHitCompatibility
virtual MeasurementEstimator::Local2DVector OuterEstimator::maximalLocalDisplacement ( const TrajectoryStateOnSurface ts,
const BoundPlane plane 
) const
inlinevirtual

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.

58  {
60  ts.globalPosition(),plane);
61  }
MeasurementEstimator::Local2DVector maximalLocalDisplacement(const TrajectoryStateOnSurface &ts, const BoundPlane &plane) const
OuterDetCompatibility theDetCompatibility
GlobalPoint globalPosition() const

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().