CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

Chi2Switching1DEstimator Class Reference

#include <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]

Member Function Documentation

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

Implements MeasurementEstimator.

Definition at line 32 of file Chi2Switching1DEstimator.h.

References Chi2Switching1DEstimator().

  {
    return new Chi2Switching1DEstimator(*this);
  }
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(), GeomDetType::isTrackerPixel(), and GeomDetUnit::type().

                                                                               {
  if(//aHit.isMatched() || 
     aHit.detUnit()->type().isTrackerPixel()) {
    return localEstimator().estimate(aTsos, aHit);
  } else {
    return stripEstimator().estimate(aTsos, aHit);
  }    
}
const Chi2MeasurementEstimator& Chi2Switching1DEstimator::localEstimator ( ) const [inline, private]

estimator for 2D hits (matched or pixel)

Definition at line 39 of file Chi2Switching1DEstimator.h.

References theLocalEstimator.

                                                         {
    return *theLocalEstimator;
  }
const Chi2Strip1DEstimator& Chi2Switching1DEstimator::stripEstimator ( ) const [inline, private]

estimator for 1D hits (non-matched strips)

Definition at line 43 of file Chi2Switching1DEstimator.h.

References theStripEstimator.

                                                     {
    return *theStripEstimator;
  }

Member Data Documentation

Definition at line 48 of file Chi2Switching1DEstimator.h.

Referenced by localEstimator().

Definition at line 49 of file Chi2Switching1DEstimator.h.

Referenced by stripEstimator().