CMS 3D CMS Logo

KFSwitching1DUpdator.cc
Go to the documentation of this file.
5 
7 KFSwitching1DUpdator::update(const TSOS& aTsos, const TrackingRecHit& aHit) const {
8  if( !aHit.detUnit() || aHit.detUnit()->type().isTrackerPixel() || (!theDoEndCap && aHit.detUnit()->type().isEndcap())) {
9  return localUpdator().update(aTsos, aHit);
10  } else {
11  return stripUpdator().update(aTsos, aHit);
12  }
13 }
virtual const GeomDetType & type() const
Definition: GeomDet.cc:85
bool isEndcap() const
Definition: GeomDetType.cc:18
const KFUpdator & localUpdator() const
updator for 2D hits (matched or pixel)
TSOS update(const TSOS &aTsos, const TrackingRecHit &aHit) const override
const KFStrip1DUpdator & stripUpdator() const
updator for non-matched strip hits
TrajectoryStateOnSurface update(const TrajectoryStateOnSurface &, const TrackingRecHit &) const override
Definition: KFUpdator.cc:169
TSOS update(const TSOS &aTsos, const TrackingRecHit &aHit) const override
update with a hit
bool isTrackerPixel() const
Definition: GeomDetType.cc:29
virtual const GeomDetUnit * detUnit() const