File indexing completed on 2024-04-06 12:31:32
0001 #include "TrackingTools/KalmanUpdators/interface/KFSwitching1DUpdator.h"
0002 #include "TrackingTools/TransientTrackingRecHit/interface/TransientTrackingRecHit.h"
0003 #include "Geometry/CommonDetUnit/interface/GeomDetType.h"
0004 #include "Geometry/CommonDetUnit/interface/GeomDet.h"
0005
0006 TrajectoryStateOnSurface KFSwitching1DUpdator::update(const TSOS& aTsos, const TrackingRecHit& aHit) const {
0007 if (!aHit.detUnit() || aHit.detUnit()->type().isTrackerPixel() ||
0008 (!theDoEndCap && aHit.detUnit()->type().isEndcap())) {
0009 return localUpdator().update(aTsos, aHit);
0010 } else {
0011 return stripUpdator().update(aTsos, aHit);
0012 }
0013 }