#include <Chi2Switching1DEstimator.h>
Public Member Functions | |
Chi2Switching1DEstimator (double aMaxChi2, double nSigma=3.) | |
virtual Chi2Switching1DEstimator * | clone () const |
virtual std::pair< bool, double > | estimate (const TrajectoryStateOnSurface &aTsos, const TransientTrackingRecHit &aHit) const |
implementation of MeasurementEstimator::estimate | |
Private Member Functions | |
const Chi2MeasurementEstimator & | localEstimator () const |
estimator for 2D hits (matched or pixel) | |
const Chi2Strip1DEstimator & | stripEstimator () const |
estimator for 1D hits (non-matched strips) | |
Private Attributes | |
DeepCopyPointerByClone< const Chi2MeasurementEstimator > | theLocalEstimator |
DeepCopyPointerByClone< const Chi2Strip1DEstimator > | theStripEstimator |
A measurement estimator that uses Chi2MeasurementEstimator for pixel and matched strip hits, and Chi2Strip1DEstimator for simple strip hits. Ported from ORCA.
Definition at line 19 of file Chi2Switching1DEstimator.h.
Chi2Switching1DEstimator::Chi2Switching1DEstimator | ( | double | aMaxChi2, |
double | nSigma = 3. |
||
) | [inline, explicit] |
Definition at line 23 of file Chi2Switching1DEstimator.h.
Referenced by clone().
: Chi2MeasurementEstimatorBase(aMaxChi2,nSigma), theLocalEstimator(new Chi2MeasurementEstimator(aMaxChi2,nSigma)), theStripEstimator(new Chi2Strip1DEstimator(aMaxChi2,nSigma)) {};
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; }
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().