CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
BTLRecHitsErrorEstimatorIM Class Reference

#include <BTLRecHitsErrorEstimatorIM.h>

Public Member Functions

 BTLRecHitsErrorEstimatorIM (const MTDGeomDet *det, const LocalPoint &lp)
 
LocalError localError () const
 

Static Public Member Functions

static float positionError ()
 

Private Attributes

const MTDGeomDetdet_
 
const LocalPointlp_
 

Detailed Description

Definition at line 22 of file BTLRecHitsErrorEstimatorIM.h.

Constructor & Destructor Documentation

◆ BTLRecHitsErrorEstimatorIM()

BTLRecHitsErrorEstimatorIM::BTLRecHitsErrorEstimatorIM ( const MTDGeomDet det,
const LocalPoint lp 
)
inline

Definition at line 24 of file BTLRecHitsErrorEstimatorIM.h.

References Exception, GeomDetEnumerators::isEndcap(), GeomDetType::subDetector(), and GeomDet::type().

24  : 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  }
SubDetector subDetector() const
Definition: GeomDetType.h:21
virtual const GeomDetType & type() const
Definition: GeomDet.cc:69
bool isEndcap(GeomDetEnumerators::SubDetector m)

Member Function Documentation

◆ localError()

LocalError BTLRecHitsErrorEstimatorIM::localError ( ) const
inline

position error, refer to: https://indico.cern.ch/event/825902/contributions/3455359/attachments/1858923/3054344/residual_calculation_0607.pdf

Definition at line 30 of file BTLRecHitsErrorEstimatorIM.h.

References det_, RectangularMTDTopology::localError(), lp_, RectangularMTDTopology::measurementPosition(), positionError(), funct::pow(), ProxyMTDTopology::specificTopology(), GeomDet::topology(), LocalError::xy(), and LocalError::yy().

Referenced by MTDThresholdClusterizer::copy_to_buffer().

30  {
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  }
LocalError localError(const MeasurementPoint &, const MeasurementError &) const override
virtual const Topology & topology() const
Definition: GeomDet.cc:67
virtual const PixelTopology & specificTopology() const
float yy() const
Definition: LocalError.h:24
MeasurementPoint measurementPosition(const LocalPoint &lp) const override
float xy() const
Definition: LocalError.h:23
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29

◆ positionError()

static float BTLRecHitsErrorEstimatorIM::positionError ( )
inlinestatic

Definition at line 42 of file BTLRecHitsErrorEstimatorIM.h.

Referenced by localError(), and BTLUncalibRecHitAlgo::makeRecHit().

42  {
43  constexpr float positionError = 0.6f;
44  return positionError;
45  }

Member Data Documentation

◆ det_

const MTDGeomDet* BTLRecHitsErrorEstimatorIM::det_
private

Definition at line 48 of file BTLRecHitsErrorEstimatorIM.h.

Referenced by localError().

◆ lp_

const LocalPoint& BTLRecHitsErrorEstimatorIM::lp_
private

Definition at line 49 of file BTLRecHitsErrorEstimatorIM.h.

Referenced by localError().