test
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,
36  const TrackingRecHit& hit)
37  const {
38  return theHitCompatibility(hit) ? std::make_pair(true,1.) : std::make_pair(false,0.) ;
39  }
40 
41  virtual bool estimate(
42  const TrajectoryStateOnSurface& ts,
43  const BoundPlane& plane
44 ) const {
45  return theDetCompatibility(plane);
46  }
47 
48  GlobalPoint center() { return theDetCompatibility.center(); }
49 
50  virtual OuterEstimator* clone() const {
51  return new OuterEstimator(*this);
52  }
53 
55  const TrajectoryStateOnSurface& ts, const BoundPlane& plane) const {
56  return theDetCompatibility.maximalLocalDisplacement(
57  ts.globalPosition(),plane);
58  }
59 
61  {return theDetCompatibility; }
63  {return theHitCompatibility; }
64 
65 private:
68 
69 };
70 #endif
virtual std::pair< bool, double > estimate(const TrajectoryStateOnSurface &ts, const TrackingRecHit &hit) const
OuterDetCompatibility theDetCompatibility
const OuterHitCompatibility & hitCompatibility() const
virtual MeasurementEstimator::Local2DVector maximalLocalDisplacement(const TrajectoryStateOnSurface &ts, const BoundPlane &plane) 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()
#define dso_internal
virtual OuterEstimator * clone() const
GlobalPoint center()
OuterHitCompatibility theHitCompatibility