CMS 3D CMS Logo

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

#include <InsideBoundsMeasurementEstimator.h>

Inheritance diagram for InsideBoundsMeasurementEstimator:
MeasurementEstimator

Public Member Functions

MeasurementEstimatorclone () const override
 
bool estimate (const TrajectoryStateOnSurface &ts, const Plane &plane) const override
 
std::pair< bool, double > estimate (const TrajectoryStateOnSurface &tsos, const TrackingRecHit &aRecHit) const override
 
Local2DVector maximalLocalDisplacement (const TrajectoryStateOnSurface &ts, const Plane &plane) const override
 
- Public Member Functions inherited from MeasurementEstimator
float maxSagitta () const
 
 MeasurementEstimator ()
 
 MeasurementEstimator (float maxSag, float minToll, float mpt)
 
float minPt2ForHitRecoveryInGluedDet () const
 
float minTolerance2 () const
 
virtual bool preFilter (const TrajectoryStateOnSurface &, OpaquePayload const &) const
 
virtual ~MeasurementEstimator ()
 

Additional Inherited Members

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

Detailed Description

Definition at line 6 of file InsideBoundsMeasurementEstimator.h.

Member Function Documentation

MeasurementEstimator* InsideBoundsMeasurementEstimator::clone ( void  ) const
inlineoverridevirtual
bool InsideBoundsMeasurementEstimator::estimate ( const TrajectoryStateOnSurface ts,
const Plane plane 
) const
overridevirtual

Returns true if the TrajectoryStateOnSurface is compatible with the Plane, false otherwise. The TrajectoryStateOnSurface must be on the plane.

Implements MeasurementEstimator.

Definition at line 5 of file InsideBoundsMeasurementEstimator.cc.

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

5  {
6  return plane.bounds().inside(ts.localPosition());
7 }
virtual bool inside(const Local3DPoint &) const =0
Determine if the point is inside the bounds.
const Bounds & bounds() const
Definition: Surface.h:87
std::pair< bool, double > InsideBoundsMeasurementEstimator::estimate ( const TrajectoryStateOnSurface ts,
const TrackingRecHit hit 
) const
overridevirtual

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 14 of file InsideBoundsMeasurementEstimator.cc.

References Surface::bounds(), TrackingRecHit::det(), Bounds::inside(), TrajectoryStateOnSurface::localPosition(), and GeomDet::surface().

15  {
16  bool inside = aRecHit.det()->surface().bounds().inside(tsos.localPosition());
17  return HitReturnType(inside, 0);
18 }
std::pair< bool, double > HitReturnType
MeasurementEstimator::Local2DVector InsideBoundsMeasurementEstimator::maximalLocalDisplacement ( const TrajectoryStateOnSurface ts,
const Plane plane 
) const
overridevirtual

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 Plane which is entirely outside of the compatibility region defined by maximalLocalDisplacement().

Implements MeasurementEstimator.

Definition at line 9 of file InsideBoundsMeasurementEstimator.cc.

10  {
11  return Local2DVector(0, 0);
12 }
Vector2DBase< float, LocalTag > Local2DVector