CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/TrackingTools/KalmanUpdators/src/KFSwitchingUpdator.cc

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