CMS 3D CMS Logo

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

#include <InsideBoundsMeasurementEstimator.h>

Inheritance diagram for InsideBoundsMeasurementEstimator:
MeasurementEstimator

Public Member Functions

virtual MeasurementEstimatorclone () const
 
virtual bool estimate (const TrajectoryStateOnSurface &ts, const BoundPlane &plane) const
 
std::pair< bool, double > estimate (const TrajectoryStateOnSurface &tsos, const TransientTrackingRecHit &aRecHit) const
 
virtual Local2DVector maximalLocalDisplacement (const TrajectoryStateOnSurface &ts, const BoundPlane &plane) const
 
- Public Member Functions inherited from MeasurementEstimator
virtual ~MeasurementEstimator ()
 

Additional Inherited Members

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

Detailed Description

Definition at line 6 of file InsideBoundsMeasurementEstimator.h.

Member Function Documentation

virtual MeasurementEstimator* InsideBoundsMeasurementEstimator::clone ( void  ) const
inlinevirtual
bool InsideBoundsMeasurementEstimator::estimate ( const TrajectoryStateOnSurface ts,
const BoundPlane plane 
) const
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 5 of file InsideBoundsMeasurementEstimator.cc.

References BoundSurface::bounds(), Bounds::inside(), and TrajectoryStateOnSurface::localPosition().

7 {
8  return plane.bounds().inside(ts.localPosition());
9 }
virtual bool inside(const Local3DPoint &) const =0
Determine if the point is inside the bounds.
const Bounds & bounds() const
Definition: BoundSurface.h:89
std::pair< bool, double > InsideBoundsMeasurementEstimator::estimate ( const TrajectoryStateOnSurface ts,
const TransientTrackingRecHit hit 
) const
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 19 of file InsideBoundsMeasurementEstimator.cc.

References BoundSurface::bounds(), TransientTrackingRecHit::det(), Bounds::inside(), TrajectoryStateOnSurface::localPosition(), and GeomDet::surface().

21 {
22  bool inside = aRecHit.det()->surface().bounds().inside(tsos.localPosition());
23  return HitReturnType (inside,0);
24 
25 }
std::pair< bool, double > HitReturnType
MeasurementEstimator::Local2DVector InsideBoundsMeasurementEstimator::maximalLocalDisplacement ( const TrajectoryStateOnSurface ts,
const BoundPlane plane 
) const
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 12 of file InsideBoundsMeasurementEstimator.cc.

14 {
15  return Local2DVector(0,0);
16 }
Vector2DBase< float, LocalTag > Local2DVector