CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/FastSimulation/TrajectoryManager/src/InsideBoundsMeasurementEstimator.cc

Go to the documentation of this file.
00001 #include "FastSimulation/TrajectoryManager/interface/InsideBoundsMeasurementEstimator.h"
00002 #include "TrackingTools/TrajectoryState/interface/TrajectoryStateOnSurface.h"
00003 #include "DataFormats/GeometrySurface/interface/BoundPlane.h"
00004 
00005 bool InsideBoundsMeasurementEstimator::estimate( const TrajectoryStateOnSurface& ts, 
00006                                              const BoundPlane& plane) const
00007 {
00008   return plane.bounds().inside(ts.localPosition());
00009 }
00010 
00011 MeasurementEstimator::Local2DVector 
00012 InsideBoundsMeasurementEstimator::maximalLocalDisplacement( const TrajectoryStateOnSurface& ts,
00013                                                         const BoundPlane& plane) const
00014 {
00015   return Local2DVector(0,0);
00016 }
00017 
00018 std::pair<bool,double> 
00019 InsideBoundsMeasurementEstimator::estimate(const TrajectoryStateOnSurface& tsos,
00020                                            const TransientTrackingRecHit& aRecHit) const 
00021 {
00022   bool inside = aRecHit.det()->surface().bounds().inside(tsos.localPosition());
00023   return HitReturnType (inside,0);
00024                         
00025 }