CMS 3D CMS Logo

Chi2Switching1DEstimator Class Reference

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

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

Inheritance diagram for Chi2Switching1DEstimator:

Chi2MeasurementEstimatorBase MeasurementEstimator

List of all members.

Public Member Functions

 Chi2Switching1DEstimator (double aMaxChi2, double nSigma=3.)
virtual Chi2Switching1DEstimatorclone () 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 Chi2Strip1DEstimatorstripEstimator () const
 estimator for 1D hits (non-matched strips)

Private Attributes

DeepCopyPointerByClone< const
Chi2MeasurementEstimator
theLocalEstimator
DeepCopyPointerByClone< const
Chi2Strip1DEstimator
theStripEstimator


Detailed Description

A measurement estimator that uses Chi2MeasurementEstimator for pixel and matched strip hits, and Chi2Strip1DEstimator 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 Chi2Switching1DEstimator.h.


Constructor & Destructor Documentation

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

Definition at line 23 of file Chi2Switching1DEstimator.h.

Referenced by clone().


Member Function Documentation

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

Implements MeasurementEstimator.

Definition at line 32 of file Chi2Switching1DEstimator.h.

References Chi2Switching1DEstimator().

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

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

implementation of MeasurementEstimator::estimate

Implements Chi2MeasurementEstimatorBase.

Definition at line 8 of file Chi2Switching1DEstimator.cc.

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

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

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

estimator for 2D hits (matched or pixel)

Definition at line 39 of file Chi2Switching1DEstimator.h.

References theLocalEstimator.

Referenced by estimate().

00039                                                          {
00040     return *theLocalEstimator;
00041   }

const Chi2Strip1DEstimator& Chi2Switching1DEstimator::stripEstimator (  )  const [inline, private]

estimator for 1D hits (non-matched strips)

Definition at line 43 of file Chi2Switching1DEstimator.h.

References theStripEstimator.

Referenced by estimate().

00043                                                      {
00044     return *theStripEstimator;
00045   }


Member Data Documentation

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

Definition at line 48 of file Chi2Switching1DEstimator.h.

Referenced by localEstimator().

DeepCopyPointerByClone<const Chi2Strip1DEstimator> Chi2Switching1DEstimator::theStripEstimator [private]

Definition at line 49 of file Chi2Switching1DEstimator.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