CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
KFSwitching1DUpdator.cc
Go to the documentation of this file.
5 
7 KFSwitching1DUpdator::update(const TSOS& aTsos, const TransientTrackingRecHit& 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 }
bool isEndcap() const
Definition: GeomDetType.cc:18
virtual TSOS update(const TSOS &aTsos, const TransientTrackingRecHit &aHit) const
const KFUpdator & localUpdator() const
updator for 2D hits (matched or pixel)
const KFStrip1DUpdator & stripUpdator() const
updator for non-matched strip hits
virtual const GeomDetType & type() const =0
bool isTrackerPixel() const
Definition: GeomDetType.cc:30
virtual TSOS update(const TSOS &aTsos, const TransientTrackingRecHit &aHit) const
update with a hit
TrajectoryStateOnSurface update(const TrajectoryStateOnSurface &, const TransientTrackingRecHit &) const
Definition: KFUpdator.cc:10
virtual const GeomDetUnit * detUnit() const