#include <Chi2MeasurementEstimatorBase.h>
Public Member Functions | |
Chi2MeasurementEstimatorBase (double maxChi2, double nSigma=3.) | |
double | chiSquaredCut () const |
virtual std::pair< bool, double > | estimate (const TrajectoryStateOnSurface &ts, const TransientTrackingRecHit &) const =0 |
virtual bool | estimate (const TrajectoryStateOnSurface &ts, const Plane &plane) const |
virtual Local2DVector | maximalLocalDisplacement (const TrajectoryStateOnSurface &ts, const Plane &plane) const |
double | nSigmaCut () const |
Public Member Functions inherited from MeasurementEstimator | |
virtual MeasurementEstimator * | clone () const =0 |
virtual | ~MeasurementEstimator () |
Protected Member Functions | |
std::pair< bool, double > | returnIt (double est) const |
Private Attributes | |
double | theMaxChi2 |
double | theNSigma |
Additional Inherited Members | |
Public Types inherited from MeasurementEstimator | |
typedef std::pair< bool, double > | HitReturnType |
typedef Vector2DBase< float, LocalTag > | Local2DVector |
typedef bool | SurfaceReturnType |
A base class for Chi2 – type of Measurement Estimators. Implements common functionality. Ported from ORCA.
Definition at line 16 of file Chi2MeasurementEstimatorBase.h.
|
inlineexplicit |
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 Plane and maximalLocalDisplacement.
Definition at line 24 of file Chi2MeasurementEstimatorBase.h.
|
inline |
Definition at line 37 of file Chi2MeasurementEstimatorBase.h.
References theMaxChi2.
Referenced by returnIt().
|
pure 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 MeasurementEstimator.
Implemented in GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, MuonChi2MeasurementEstimator, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GsfChi2MeasurementEstimator, EtaPhiEstimator, GCC11_FINAL< T, TOPO >, and GCC11_FINAL< T, TOPO >.
Referenced by EtaPhiEstimator::estimate().
|
virtual |
Returns true if the TrajectoryStateOnSurface is compatible with the Plane, false otherwise. The TrajectoryStateOnSurface must be on the plane.
Implements MeasurementEstimator.
Reimplemented in GCC11_FINAL< T, TOPO >.
Definition at line 5 of file Chi2MeasurementEstimatorBase.cc.
References Surface::bounds(), TrajectoryStateOnSurface::hasError(), Bounds::inside(), TrajectoryStateOnSurface::localError(), TrajectoryStateOnSurface::localPosition(), nSigmaCut(), and LocalTrajectoryError::positionError().
|
virtual |
Returns the size of the compatibility region around the local position of the TrajectoryStateOnSurface along the directions of local x and y axis. The TrajectoryStateOnSurface must be on the plane. This method allows to limit the search for compatible detectors or RecHits. The MeasurementEstimator should not return "true" for any RecHit or Plane which is entirely outside of the compatibility region defined by maximalLocalDisplacement().
Reimplemented from MeasurementEstimator.
Reimplemented in GCC11_FINAL< T, TOPO >.
Definition at line 17 of file Chi2MeasurementEstimatorBase.cc.
References TrajectoryStateOnSurface::hasError(), asciidump::le, TrajectoryStateOnSurface::localError(), nSigmaCut(), LocalTrajectoryError::positionError(), mathSSE::sqrt(), LocalError::xx(), and LocalError::yy().
|
inline |
Definition at line 38 of file Chi2MeasurementEstimatorBase.h.
References theNSigma.
Referenced by estimate(), and maximalLocalDisplacement().
|
inlineprotected |
Definition at line 42 of file Chi2MeasurementEstimatorBase.h.
References chiSquaredCut().
Referenced by GsfChi2MeasurementEstimator::estimate().
|
private |
Definition at line 47 of file Chi2MeasurementEstimatorBase.h.
Referenced by chiSquaredCut().
|
private |
Definition at line 48 of file Chi2MeasurementEstimatorBase.h.
Referenced by nSigmaCut().