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