#include <TrackingTools/KalmanUpdators/interface/Chi2MeasurementEstimator.h>
Public Member Functions | |
Chi2MeasurementEstimator (double maxChi2, double nSigma=3.) | |
Construct with cuts on chi2 and nSigma. | |
virtual Chi2MeasurementEstimator * | clone () const |
template<unsigned int D> | |
std::pair< bool, double > | estimate (const TrajectoryStateOnSurface &, const TransientTrackingRecHit &) const |
Returns pair( true, value) if the TrajectoryStateOnSurface is compatible with the RecHit, and pair( false, value) if it is not compatible. | |
virtual std::pair< bool, double > | estimate (const TrajectoryStateOnSurface &, const TransientTrackingRecHit &) const |
Returns pair( true, value) if the TrajectoryStateOnSurface is compatible with the RecHit, and pair( false, value) if it is not compatible. |
Computhes the Chi^2 of a TrajectoryState with a RecHit or a BoundPlane. The TrajectoryState must have errors. Works for any RecHit dimension. Ported from ORCA.
Definition at line 17 of file Chi2MeasurementEstimator.h.
Chi2MeasurementEstimator::Chi2MeasurementEstimator | ( | double | maxChi2, | |
double | nSigma = 3. | |||
) | [inline, explicit] |
Construct with cuts on chi2 and nSigma.
The cut on Chi2 is used to define the acceptance of RecHits. The errors of the trajectory state are multiplied by nSigma to define acceptance of BoundPlane and maximalLocalDisplacement.
Definition at line 25 of file Chi2MeasurementEstimator.h.
Referenced by clone().
00025 : 00026 Chi2MeasurementEstimatorBase( maxChi2, nSigma) {}
virtual Chi2MeasurementEstimator* Chi2MeasurementEstimator::clone | ( | void | ) | const [inline, virtual] |
Implements MeasurementEstimator.
Definition at line 33 of file Chi2MeasurementEstimator.h.
References Chi2MeasurementEstimator().
00033 { 00034 return new Chi2MeasurementEstimator(*this); 00035 }
std::pair<bool,double> Chi2MeasurementEstimator::estimate | ( | const TrajectoryStateOnSurface & | ts, | |
const TransientTrackingRecHit & | hit | |||
) | const [inline, virtual] |
Returns pair( true, value) if the TrajectoryStateOnSurface is compatible with the RecHit, and pair( false, value) if it is not compatible.
The TrajectoryStateOnSurface must be on the same Surface as the RecHit. For an estimator where there is no value computed, e.g. fixed window estimator, only the first(bool) part is of interest.
Implements Chi2MeasurementEstimatorBase.
std::pair< bool, double > Chi2MeasurementEstimator::estimate | ( | const TrajectoryStateOnSurface & | ts, | |
const TransientTrackingRecHit & | hit | |||
) | const [inline, virtual] |
Returns pair( true, value) if the TrajectoryStateOnSurface is compatible with the RecHit, and pair( false, value) if it is not compatible.
The TrajectoryStateOnSurface must be on the same Surface as the RecHit. For an estimator where there is no value computed, e.g. fixed window estimator, only the first(bool) part is of interest.
Implements Chi2MeasurementEstimatorBase.
Definition at line 7 of file Chi2MeasurementEstimator.cc.
References TrackingRecHit::dimension(), and Exception.
Referenced by MuonChi2MeasurementEstimator::estimate(), Chi2Switching1DEstimator::estimate(), GsfChi2MeasurementEstimator::estimate(), Chi2SwitchingEstimator::estimate(), CosmicMuonSmoother::fit(), MuonRoadTrajectoryBuilder::GatherHits(), SimpleTrackRefitter::refitTrack(), and CosmicMuonSmoother::smooth().
00008 { 00009 switch (aRecHit.dimension()) { 00010 case 1: return estimate<1>(tsos,aRecHit); 00011 case 2: return estimate<2>(tsos,aRecHit); 00012 case 3: return estimate<3>(tsos,aRecHit); 00013 case 4: return estimate<4>(tsos,aRecHit); 00014 case 5: return estimate<5>(tsos,aRecHit); 00015 } 00016 throw cms::Exception("RecHit of invalid size (not 1,2,3,4,5)"); 00017 }