CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/TrackingTools/KalmanUpdators/src/Chi2SwitchingEstimator.cc

Go to the documentation of this file.
00001 #include "TrackingTools/KalmanUpdators/interface/Chi2SwitchingEstimator.h"
00002 #include "Geometry/CommonDetUnit/interface/GeomDetType.h"
00003 #include "Geometry/CommonDetUnit/interface/GeomDetUnit.h"
00004 
00005 std::pair<bool,double> 
00006 Chi2SwitchingEstimator::estimate (const TrajectoryStateOnSurface& aTsos,
00007                                   const TransientTrackingRecHit& aHit) const {
00008   if(//aHit.isMatched() || 
00009      aHit.detUnit()->type().isTrackerPixel()) {
00010     return localEstimator().estimate(aTsos, aHit);
00011   } else {
00012     return stripEstimator().estimate(aTsos, aHit);
00013   }    
00014 }