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 
14 
15 #include "OuterDetCompatibility.h"
16 #include "OuterHitCompatibility.h"
17 
19 
20 
22 
23 
25 
26 public:
28  const OuterDetCompatibility & detCompatibility,
29  const OuterHitCompatibility & hitCompatibility,
30  const edm::EventSetup& iSetup)
31  : theDetCompatibility(detCompatibility),
32  theHitCompatibility (hitCompatibility) { }
33  virtual ~OuterEstimator(){}
34  virtual std::pair<bool,double> estimate(
35  const TrajectoryStateOnSurface& ts,
37  const {
38  return theHitCompatibility(&hit) ? std::make_pair(true,1.) : std::make_pair(false,0.) ;
39  }
40 
41  virtual std::pair<bool,double> estimate(
42  const TrajectoryStateOnSurface& ts,
43  const TrackingRecHit& hit,
44  const edm::EventSetup& iSetup)
45  const {
46  return theHitCompatibility(&hit,iSetup) ? std::make_pair(true,1.) : std::make_pair(false,0.) ;
47  }
48 
49  virtual bool estimate(
50  const TrajectoryStateOnSurface& ts,
51  const BoundPlane& plane
52 ) const {
53  return theDetCompatibility(plane);
54  }
55 
56  GlobalPoint center() { return theDetCompatibility.center(); }
57 
58  virtual OuterEstimator* clone() const {
59  return new OuterEstimator(*this);
60  }
61 
63  const TrajectoryStateOnSurface& ts, const BoundPlane& plane) const {
64  return theDetCompatibility.maximalLocalDisplacement(
65  ts.globalPosition(),plane);
66  }
67 
69  {return theDetCompatibility; }
71  {return theHitCompatibility; }
72 
73 private:
76 
77 };
78 #endif
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)
#define dso_internal
Definition: Visibility.h:13
virtual ~OuterEstimator()
virtual OuterEstimator * clone() const
GlobalPoint center()
OuterHitCompatibility theHitCompatibility