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 ( double  aMaxChi2,
double  nSigma = 3. 
)
inlineexplicit

Definition at line 21 of file Chi2Switching1DEstimator.h.

References estimate().

Referenced by clone().

21  :
23  theLocalEstimator(aMaxChi2,nSigma),
24  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

Chi2Switching1DEstimator* Chi2Switching1DEstimator::clone ( void  ) const
inlineoverridevirtual

Implements MeasurementEstimator.

Definition at line 30 of file Chi2Switching1DEstimator.h.

References Chi2Switching1DEstimator().

31  {
32  return new Chi2Switching1DEstimator(*this);
33  }
Chi2Switching1DEstimator(double aMaxChi2, double nSigma=3.)
pair< bool, double > Chi2Switching1DEstimator::estimate ( const TrajectoryStateOnSurface aTsos,
const TrackingRecHit aHit 
) const
overridevirtual

implementation of MeasurementEstimator::estimate

Implements Chi2MeasurementEstimatorBase.

Definition at line 8 of file Chi2Switching1DEstimator.cc.

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

Referenced by Chi2Switching1DEstimator().

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

estimator for 2D hits (matched or pixel)

Definition at line 37 of file Chi2Switching1DEstimator.h.

References theLocalEstimator.

37  {
38  return theLocalEstimator;
39  }
const Chi2MeasurementEstimator theLocalEstimator
const Chi2Strip1DEstimator& Chi2Switching1DEstimator::stripEstimator ( ) const
inlineprivate

estimator for 1D hits (non-matched strips)

Definition at line 41 of file Chi2Switching1DEstimator.h.

References theStripEstimator.

41  {
42  return theStripEstimator;
43  }
const Chi2Strip1DEstimator theStripEstimator

Member Data Documentation

const Chi2MeasurementEstimator Chi2Switching1DEstimator::theLocalEstimator
private

Definition at line 46 of file Chi2Switching1DEstimator.h.

Referenced by localEstimator().

const Chi2Strip1DEstimator Chi2Switching1DEstimator::theStripEstimator
private

Definition at line 47 of file Chi2Switching1DEstimator.h.

Referenced by stripEstimator().