CMS 3D CMS Logo

InsideBoundsMeasurementEstimator Class Reference

#include <FastSimulation/TrajectoryManager/interface/InsideBoundsMeasurementEstimator.h>

Inheritance diagram for InsideBoundsMeasurementEstimator:

MeasurementEstimator

List of all members.

Public Member Functions

virtual MeasurementEstimatorclone () const
std::pair< bool, double > estimate (const TrajectoryStateOnSurface &tsos, const TransientTrackingRecHit &aRecHit) const
 Returns pair( true, value) if the TrajectoryStateOnSurface is compatible with the RecHit, and pair( false, value) if it is not compatible.
virtual bool estimate (const TrajectoryStateOnSurface &ts, const BoundPlane &plane) const
 Returns true if the TrajectoryStateOnSurface is compatible with the BoundPlane, false otherwise.
virtual 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.


Detailed Description

Definition at line 6 of file InsideBoundsMeasurementEstimator.h.


Member Function Documentation

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

Implements MeasurementEstimator.

Definition at line 20 of file InsideBoundsMeasurementEstimator.h.

00020                                               {
00021     return new InsideBoundsMeasurementEstimator( *this);
00022   }

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

00021 {
00022   bool inside = aRecHit.det()->surface().bounds().inside(tsos.localPosition());
00023   return HitReturnType (inside,0);
00024                         
00025 }

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

00007 {
00008   return plane.bounds().inside(ts.localPosition());
00009 }

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.

00014 {
00015   return Local2DVector(0,0);
00016 }


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