CMS 3D CMS Logo

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());
36  MeasurementPoint mp = topo.measurementPosition(lp_);
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
ConfigurationDescriptions.h
Point2DBase
Definition: Point2DBase.h:9
GeomDetType::subDetector
SubDetector subDetector() const
Definition: GeomDetType.h:21
LocalError::xy
float xy() const
Definition: LocalError.h:23
GeomDet::type
virtual const GeomDetType & type() const
Definition: GeomDet.cc:69
MTDGeometry.h
TrackerGeomDet
Definition: TrackerGeomDet.h:6
MTDGeomDetUnit.h
ProxyMTDTopology::specificTopology
virtual const PixelTopology & specificTopology() const
Definition: ProxyMTDTopology.h:89
GeomDet::topology
virtual const Topology & topology() const
Definition: GeomDet.cc:67
BTLRecHitsErrorEstimatorIM::det_
const MTDGeomDet * det_
Definition: BTLRecHitsErrorEstimatorIM.h:48
BTLRecHitsErrorEstimatorIM::BTLRecHitsErrorEstimatorIM
BTLRecHitsErrorEstimatorIM(const MTDGeomDet *det, const LocalPoint &lp)
Definition: BTLRecHitsErrorEstimatorIM.h:24
MeasurementError
Definition: MeasurementError.h:8
RectangularMTDTopology.h
Point3DBase< float, LocalTag >
ParameterSetDescription.h
BTLRecHitsErrorEstimatorIM::localError
LocalError localError() const
Definition: BTLRecHitsErrorEstimatorIM.h:30
BTLRecHitsErrorEstimatorIM
Definition: BTLRecHitsErrorEstimatorIM.h:22
LocalError
Definition: LocalError.h:12
MagneticField.h
RectangularMTDTopology
Definition: RectangularMTDTopology.h:39
ProxyMTDTopology
Definition: ProxyMTDTopology.h:28
ProxyMTDTopology.h
BTLRecHitsErrorEstimatorIM::lp_
const LocalPoint & lp_
Definition: BTLRecHitsErrorEstimatorIM.h:49
Exception
Definition: hltDiff.cc:245
Exception.h
GeomDetEnumerators.h
funct::pow
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29
GeomDetEnumerators::isEndcap
bool isEndcap(GeomDetEnumerators::SubDetector m)
Definition: GeomDetEnumerators.cc:62
BTLRecHitsErrorEstimatorIM::positionError
static float positionError()
Definition: BTLRecHitsErrorEstimatorIM.h:42
LocalError::yy
float yy() const
Definition: LocalError.h:24