CMS 3D CMS Logo

Chi2SwitchingEstimator Class Reference

A measurement estimator that uses Chi2MeasurementEstimator for pixel and matched strip hits, and Chi2StripEstimator for simple strip hits. More...

#include <TrackingTools/KalmanUpdators/interface/Chi2SwitchingEstimator.h>

Inheritance diagram for Chi2SwitchingEstimator:

Chi2MeasurementEstimatorBase MeasurementEstimator

List of all members.

Public Member Functions

 Chi2SwitchingEstimator (double aMaxChi2, double nSigma=3.)
virtual Chi2SwitchingEstimatorclone () const
virtual std::pair< bool, double > estimate (const TrajectoryStateOnSurface &aTsos, const TransientTrackingRecHit &aHit) const
 implementation of MeasurementEstimator::estimate

Private Member Functions

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

Private Attributes

DeepCopyPointerByClone< const
Chi2MeasurementEstimator
theLocalEstimator
DeepCopyPointerByClone< const
Chi2StripEstimator
theStripEstimator


Detailed Description

A measurement estimator that uses Chi2MeasurementEstimator for pixel and matched strip hits, and Chi2StripEstimator for simple strip hits.

Ported from ORCA.

Date
2007/05/09 13:50:25
Revision
1.4
Author:
todorov, cerati

Definition at line 19 of file Chi2SwitchingEstimator.h.


Constructor & Destructor Documentation

Chi2SwitchingEstimator::Chi2SwitchingEstimator ( double  aMaxChi2,
double  nSigma = 3. 
) [inline, explicit]

Definition at line 23 of file Chi2SwitchingEstimator.h.

Referenced by clone().


Member Function Documentation

virtual Chi2SwitchingEstimator* Chi2SwitchingEstimator::clone ( void   )  const [inline, virtual]

Implements MeasurementEstimator.

Definition at line 32 of file Chi2SwitchingEstimator.h.

References Chi2SwitchingEstimator().

00033   {
00034     return new Chi2SwitchingEstimator(*this);
00035   }

std::pair< bool, double > Chi2SwitchingEstimator::estimate ( const TrajectoryStateOnSurface aTsos,
const TransientTrackingRecHit aHit 
) const [virtual]

implementation of MeasurementEstimator::estimate

Implements Chi2MeasurementEstimatorBase.

Definition at line 6 of file Chi2SwitchingEstimator.cc.

References TransientTrackingRecHit::detUnit(), Chi2MeasurementEstimator::estimate(), Chi2StripEstimator::estimate(), GeomDetType::isTrackerPixel(), localEstimator(), stripEstimator(), and GeomDetUnit::type().

00007                                                                              {
00008   if(//aHit.isMatched() || 
00009      aHit.detUnit()->type().isTrackerPixel()) {
00010     return localEstimator().estimate(aTsos, aHit);
00011   } else {
00012     return stripEstimator().estimate(aTsos, aHit);
00013   }    
00014 }

const Chi2MeasurementEstimator& Chi2SwitchingEstimator::localEstimator (  )  const [inline, private]

estimator for 2D hits (matched or pixel)

Definition at line 39 of file Chi2SwitchingEstimator.h.

References theLocalEstimator.

Referenced by estimate().

00039                                                          {
00040     return *theLocalEstimator;
00041   }

const Chi2StripEstimator& Chi2SwitchingEstimator::stripEstimator (  )  const [inline, private]

estimator for 1D hits (non-matched strips)

Definition at line 43 of file Chi2SwitchingEstimator.h.

References theStripEstimator.

Referenced by estimate().

00043                                                    {
00044     return *theStripEstimator;
00045   }


Member Data Documentation

DeepCopyPointerByClone<const Chi2MeasurementEstimator> Chi2SwitchingEstimator::theLocalEstimator [private]

Definition at line 48 of file Chi2SwitchingEstimator.h.

Referenced by localEstimator().

DeepCopyPointerByClone<const Chi2StripEstimator> Chi2SwitchingEstimator::theStripEstimator [private]

Definition at line 49 of file Chi2SwitchingEstimator.h.

Referenced by stripEstimator().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:16:19 2009 for CMSSW by  doxygen 1.5.4