CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GeomDetCompatibilityChecker.cc
Go to the documentation of this file.
3 
4 
5 std::pair<bool, TrajectoryStateOnSurface>
7  const TrajectoryStateOnSurface& tsos,
8  const Propagator& prop,
9  const MeasurementEstimator& est) {
10  TrajectoryStateOnSurface && propSt = prop.propagate( tsos, theDet->specificSurface());
11  if unlikely ( !propSt.isValid()) return std::make_pair( false, std::move(propSt));
12  auto es = est.estimate( propSt, theDet->specificSurface());
13  return std::make_pair( es, std::move(propSt));
14 
15 }
16 
virtual FreeTrajectoryState propagate(const FreeTrajectoryState &ftsStart, const GlobalPoint &pDest) const final
Definition: Propagator.h:119
#define unlikely(x)
static std::pair< bool, TrajectoryStateOnSurface > isCompatible(const GeomDet *theDet, const TrajectoryStateOnSurface &ts, const Propagator &prop, const MeasurementEstimator &est)
virtual HitReturnType estimate(const TrajectoryStateOnSurface &ts, const TrackingRecHit &hit) const =0
const Plane & specificSurface() const
Same as surface(), kept for backward compatibility.
Definition: GeomDet.h:38