CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
BTLRecHitsErrorEstimatorIM.h
Go to the documentation of this file.
1 #ifndef RecoLocalFastTime_FTLClusterizer_BTLRecHitsErrorEstimatorIM_H
2 #define RecoLocalFastTime_FTLClusterizer_BTLRecHitsErrorEstimatorIM_H 1
3 
4 //-----------------------------------------------------------------------------
5 // \class BTLRecHitsErrorEstimatorIM
6 // Used to improve the local error of recHits and TrackingrecHits in BTL
7 //-----------------------------------------------------------------------------
8 
12 
14 
16 
21 
23 public:
24  BTLRecHitsErrorEstimatorIM(const MTDGeomDet* det, const LocalPoint& lp) : det_(det), lp_(lp) {
26  throw cms::Exception("BTLRecHitsErrorEstimatorIM")
27  << "This is an object from Endcap. Only use it for the Barrel!" << std::endl;
28  }
29  }
33  const float positionError2 = std::pow(positionError(), 2);
34  const ProxyMTDTopology& topoproxy = static_cast<const ProxyMTDTopology&>(det_->topology());
35  const RectangularMTDTopology& topo = static_cast<const RectangularMTDTopology&>(topoproxy.specificTopology());
37  MeasurementError simpleRect(1. / 12., 0, 1. / 12.);
38  LocalError error_before = topo.localError(mp, simpleRect);
39  LocalError error_modified(positionError2, error_before.xy(), error_before.yy());
40  return error_modified;
41  }
42  static float positionError() {
43  constexpr float positionError = 0.6f;
44  return positionError;
45  }
46 
47 private:
48  const MTDGeomDet* det_;
49  const LocalPoint& lp_;
50 };
51 
52 #endif
virtual const GeomDetType & type() const
Definition: GeomDet.cc:69
LocalError localError(const MeasurementPoint &, const MeasurementError &) const override
virtual const Topology & topology() const
Definition: GeomDet.cc:67
BTLRecHitsErrorEstimatorIM(const MTDGeomDet *det, const LocalPoint &lp)
float xy() const
Definition: LocalError.h:23
float yy() const
Definition: LocalError.h:24
MeasurementPoint measurementPosition(const LocalPoint &lp) const override
virtual const PixelTopology & specificTopology() const
bool isEndcap(GeomDetEnumerators::SubDetector m)
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29
SubDetector subDetector() const
Definition: GeomDetType.h:21