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