CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
OuterEstimator.h
Go to the documentation of this file.
1 #ifndef OuterEstimator_H
2 #define OuterEstimator_H
3 
17 //#include <utility>
18 
20 
21 public:
25  const edm::EventSetup& iSetup)
26  : theDetCompatibility(detCompatibility),
27  theHitCompatibility (hitCompatibility) { }
28  virtual ~OuterEstimator(){}
29  virtual std::pair<bool,double> estimate(
30  const TrajectoryStateOnSurface& ts,
32  const {
33  return theHitCompatibility(&hit) ? std::make_pair(true,1.) : std::make_pair(false,0.) ;
34  }
35 
36  virtual std::pair<bool,double> estimate(
37  const TrajectoryStateOnSurface& ts,
38  const TrackingRecHit& hit,
39  const edm::EventSetup& iSetup)
40  const {
41  return theHitCompatibility(&hit,iSetup) ? std::make_pair(true,1.) : std::make_pair(false,0.) ;
42  }
43 
44  virtual bool estimate(
45  const TrajectoryStateOnSurface& ts,
46  const BoundPlane& plane
47 ) const {
48  return theDetCompatibility(plane);
49  }
50 
52 
53  virtual OuterEstimator* clone() const {
54  return new OuterEstimator(*this);
55  }
56 
58  const TrajectoryStateOnSurface& ts, const BoundPlane& plane) const {
60  ts.globalPosition(),plane);
61  }
62 
64  {return theDetCompatibility; }
66  {return theHitCompatibility; }
67 
68 private:
71 
72 };
73 #endif
GlobalPoint center() const
MeasurementEstimator::Local2DVector maximalLocalDisplacement(const TrajectoryStateOnSurface &ts, const BoundPlane &plane) const
virtual std::pair< bool, double > estimate(const TrajectoryStateOnSurface &ts, const TransientTrackingRecHit &hit) const
OuterDetCompatibility theDetCompatibility
const OuterHitCompatibility & hitCompatibility() const
virtual MeasurementEstimator::Local2DVector maximalLocalDisplacement(const TrajectoryStateOnSurface &ts, const BoundPlane &plane) const
virtual std::pair< bool, double > estimate(const TrajectoryStateOnSurface &ts, const TrackingRecHit &hit, const edm::EventSetup &iSetup) const
GlobalPoint globalPosition() const
const OuterDetCompatibility & detCompatibility() const
virtual bool estimate(const TrajectoryStateOnSurface &ts, const BoundPlane &plane) const
OuterEstimator(const OuterDetCompatibility &detCompatibility, const OuterHitCompatibility &hitCompatibility, const edm::EventSetup &iSetup)
virtual ~OuterEstimator()
virtual OuterEstimator * clone() const
GlobalPoint center()
OuterHitCompatibility theHitCompatibility