CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_8_patch3/src/TrackingTools/KalmanUpdators/src/KFSwitching1DUpdator.cc

Go to the documentation of this file.
00001 #include "TrackingTools/KalmanUpdators/interface/KFSwitching1DUpdator.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 KFSwitching1DUpdator::update(const TSOS& aTsos, const TransientTrackingRecHit& aHit) const {
00008   if( !aHit.detUnit() || aHit.detUnit()->type().isTrackerPixel() || (!theDoEndCap && aHit.detUnit()->type().isEndcap())) {
00009     return localUpdator().update(aTsos, aHit);
00010   } else {
00011     return stripUpdator().update(aTsos, aHit);
00012   }
00013 }