CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
Chi2Switching1DEstimator Class Referencefinal

#include <Chi2Switching1DEstimator.h>

Inheritance diagram for Chi2Switching1DEstimator:
Chi2MeasurementEstimatorBase MeasurementEstimator

Public Member Functions

 Chi2Switching1DEstimator (double aMaxChi2, double nSigma=3.)
 
Chi2Switching1DEstimatorclone () const override
 
std::pair< bool, double > estimate (const TrajectoryStateOnSurface &aTsos, const TrackingRecHit &aHit) const override
 implementation of MeasurementEstimator::estimate More...
 
- Public Member Functions inherited from Chi2MeasurementEstimatorBase
 Chi2MeasurementEstimatorBase (double maxChi2, double nSigma=3., float maxDisp=std::numeric_limits< float >::max())
 
template<typename... Args>
 Chi2MeasurementEstimatorBase (double maxChi2, double nSigma, float maxDisp, Args &&... args)
 
double chiSquaredCut () const
 
bool estimate (const TrajectoryStateOnSurface &ts, const Plane &plane) const final
 
Local2DVector maximalLocalDisplacement (const TrajectoryStateOnSurface &ts, const Plane &plane) const final
 
double nSigmaCut () const
 
- Public Member Functions inherited from MeasurementEstimator
float maxSagitta () const
 
 MeasurementEstimator ()
 
 MeasurementEstimator (float maxSag, float minToll, float mpt)
 
float minPt2ForHitRecoveryInGluedDet () const
 
float minTolerance2 () const
 
virtual bool preFilter (const TrajectoryStateOnSurface &, OpaquePayload const &) const
 
virtual ~MeasurementEstimator ()
 

Private Member Functions

const Chi2MeasurementEstimatorlocalEstimator () const
 estimator for 2D hits (matched or pixel) More...
 
const Chi2Strip1DEstimatorstripEstimator () const
 estimator for 1D hits (non-matched strips) More...
 

Private Attributes

const Chi2MeasurementEstimator theLocalEstimator
 
const Chi2Strip1DEstimator theStripEstimator
 

Additional Inherited Members

- Public Types inherited from MeasurementEstimator
using HitReturnType = std::pair< bool, double >
 
using Local2DVector = Vector2DBase< float, LocalTag >
 
using SurfaceReturnType = bool
 
- Protected Member Functions inherited from Chi2MeasurementEstimatorBase
std::pair< bool, double > returnIt (double est) const
 

Detailed Description

A measurement estimator that uses Chi2MeasurementEstimator for pixel and matched strip hits, and Chi2Strip1DEstimator for simple strip hits. Ported from ORCA.

Author
todorov, cerati

Definition at line 17 of file Chi2Switching1DEstimator.h.

Constructor & Destructor Documentation

◆ Chi2Switching1DEstimator()

Chi2Switching1DEstimator::Chi2Switching1DEstimator ( double  aMaxChi2,
double  nSigma = 3. 
)
inlineexplicit

Definition at line 19 of file Chi2Switching1DEstimator.h.

Referenced by clone().

21  theLocalEstimator(aMaxChi2, nSigma),
22  theStripEstimator(aMaxChi2, nSigma) {}
Chi2MeasurementEstimatorBase(double maxChi2, double nSigma=3., float maxDisp=std::numeric_limits< float >::max())
const Chi2MeasurementEstimator theLocalEstimator
const Chi2Strip1DEstimator theStripEstimator

Member Function Documentation

◆ clone()

Chi2Switching1DEstimator* Chi2Switching1DEstimator::clone ( void  ) const
inlineoverridevirtual

Implements MeasurementEstimator.

Definition at line 27 of file Chi2Switching1DEstimator.h.

References Chi2Switching1DEstimator().

27 { return new Chi2Switching1DEstimator(*this); }
Chi2Switching1DEstimator(double aMaxChi2, double nSigma=3.)

◆ estimate()

pair< bool, double > Chi2Switching1DEstimator::estimate ( const TrajectoryStateOnSurface aTsos,
const TrackingRecHit aHit 
) const
overridevirtual

implementation of MeasurementEstimator::estimate

Implements Chi2MeasurementEstimatorBase.

Definition at line 7 of file Chi2Switching1DEstimator.cc.

References TrackingRecHit::detUnit(), GeomDetType::isTrackerPixel(), and GeomDet::type().

8  {
9  if ( //aHit.isMatched() ||
10  aHit.detUnit()->type().isTrackerPixel()) {
11  return localEstimator().estimate(aTsos, aHit);
12  } else {
13  return stripEstimator().estimate(aTsos, aHit);
14  }
15 }
const Chi2MeasurementEstimator & localEstimator() const
estimator for 2D hits (matched or pixel)
const Chi2Strip1DEstimator & stripEstimator() const
estimator for 1D hits (non-matched strips)
virtual const GeomDetType & type() const
Definition: GeomDet.cc:69
bool isTrackerPixel() const
Definition: GeomDetType.cc:15
virtual const GeomDetUnit * detUnit() const
std::pair< bool, double > estimate(const TrajectoryStateOnSurface &, const TrackingRecHit &) const override

◆ localEstimator()

const Chi2MeasurementEstimator& Chi2Switching1DEstimator::localEstimator ( ) const
inlineprivate

estimator for 2D hits (matched or pixel)

Definition at line 31 of file Chi2Switching1DEstimator.h.

References theLocalEstimator.

31 { return theLocalEstimator; }
const Chi2MeasurementEstimator theLocalEstimator

◆ stripEstimator()

const Chi2Strip1DEstimator& Chi2Switching1DEstimator::stripEstimator ( ) const
inlineprivate

estimator for 1D hits (non-matched strips)

Definition at line 33 of file Chi2Switching1DEstimator.h.

References theStripEstimator.

33 { return theStripEstimator; }
const Chi2Strip1DEstimator theStripEstimator

Member Data Documentation

◆ theLocalEstimator

const Chi2MeasurementEstimator Chi2Switching1DEstimator::theLocalEstimator
private

Definition at line 36 of file Chi2Switching1DEstimator.h.

Referenced by localEstimator().

◆ theStripEstimator

const Chi2Strip1DEstimator Chi2Switching1DEstimator::theStripEstimator
private

Definition at line 37 of file Chi2Switching1DEstimator.h.

Referenced by stripEstimator().