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
template<typename... Args>
 Chi2MeasurementEstimatorBase (double maxChi2, double nSigma, float maxDisp, Args &&... args)
 
 Chi2MeasurementEstimatorBase (double maxChi2, double nSigma=3., float maxDisp=std::numeric_limits< float >::max())
 
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.

21  theLocalEstimator(aMaxChi2, nSigma),
22  theStripEstimator(aMaxChi2, nSigma) {}

Referenced by clone().

Member Function Documentation

◆ clone()

Chi2Switching1DEstimator* Chi2Switching1DEstimator::clone ( void  ) const
inlineoverridevirtual

Implements MeasurementEstimator.

Definition at line 27 of file Chi2Switching1DEstimator.h.

27 { return new Chi2Switching1DEstimator(*this); }

References Chi2Switching1DEstimator().

◆ 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.

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 }

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

◆ localEstimator()

const Chi2MeasurementEstimator& Chi2Switching1DEstimator::localEstimator ( ) const
inlineprivate

estimator for 2D hits (matched or pixel)

Definition at line 31 of file Chi2Switching1DEstimator.h.

31 { return theLocalEstimator; }

References theLocalEstimator.

◆ stripEstimator()

const Chi2Strip1DEstimator& Chi2Switching1DEstimator::stripEstimator ( ) const
inlineprivate

estimator for 1D hits (non-matched strips)

Definition at line 33 of file Chi2Switching1DEstimator.h.

33 { return theStripEstimator; }

References 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().

Chi2Switching1DEstimator::theStripEstimator
const Chi2Strip1DEstimator theStripEstimator
Definition: Chi2Switching1DEstimator.h:37
GeomDet::type
virtual const GeomDetType & type() const
Definition: GeomDet.cc:69
Chi2Switching1DEstimator::Chi2Switching1DEstimator
Chi2Switching1DEstimator(double aMaxChi2, double nSigma=3.)
Definition: Chi2Switching1DEstimator.h:19
GeomDetType::isTrackerPixel
bool isTrackerPixel() const
Definition: GeomDetType.cc:15
Chi2Strip1DEstimator::estimate
std::pair< bool, double > estimate(const TrajectoryStateOnSurface &, const TrackingRecHit &) const override
Definition: Chi2Strip1DEstimator.cc:8
Chi2Switching1DEstimator::localEstimator
const Chi2MeasurementEstimator & localEstimator() const
estimator for 2D hits (matched or pixel)
Definition: Chi2Switching1DEstimator.h:31
Chi2MeasurementEstimatorBase::Chi2MeasurementEstimatorBase
Chi2MeasurementEstimatorBase(double maxChi2, double nSigma=3., float maxDisp=std::numeric_limits< float >::max())
Definition: Chi2MeasurementEstimatorBase.h:21
Chi2Switching1DEstimator::stripEstimator
const Chi2Strip1DEstimator & stripEstimator() const
estimator for 1D hits (non-matched strips)
Definition: Chi2Switching1DEstimator.h:33
Chi2Switching1DEstimator::theLocalEstimator
const Chi2MeasurementEstimator theLocalEstimator
Definition: Chi2Switching1DEstimator.h:36
TrackingRecHit::detUnit
virtual const GeomDetUnit * detUnit() const
Definition: TrackingRecHit.cc:29
HLTSiStripMonitoring_cff.nSigma
nSigma
Definition: HLTSiStripMonitoring_cff.py:151