#include <Chi2MeasurementEstimatorBase.h>
Public Member Functions | |
Chi2MeasurementEstimatorBase (double maxChi2, double nSigma=3., float maxDisp=std::numeric_limits< float >::max()) | |
template<typename... Args> | |
Chi2MeasurementEstimatorBase (double maxChi2, double nSigma, float maxDisp, Args &&...args) | |
double | chiSquaredCut () const |
std::pair< bool, double > | estimate (const TrajectoryStateOnSurface &ts, const TrackingRecHit &) const override=0 |
bool | estimate (const TrajectoryStateOnSurface &ts, const Plane &plane) const final |
Local2DVector | maximalLocalDisplacement (const TrajectoryStateOnSurface &ts, const Plane &plane) const final |
double | nSigmaCut () const |
Public Member Functions inherited from MeasurementEstimator | |
virtual MeasurementEstimator * | clone () const =0 |
float | maxSagitta () const |
MeasurementEstimator () | |
MeasurementEstimator (float maxSag, float minToll, float mpt) | |
float | minPt2ForHitRecoveryInGluedDet () const |
float | minTolerance2 () const |
virtual bool | preFilter (const TrajectoryStateOnSurface &, OpaquePayload const &) const |
virtual | ~MeasurementEstimator () |
Protected Member Functions | |
std::pair< bool, double > | returnIt (double est) const |
Private Attributes | |
const double | theMaxChi2 |
const float | theMaxDisplacement |
const double | theNSigma |
Additional Inherited Members | |
Public Types inherited from MeasurementEstimator | |
using | HitReturnType = std::pair< bool, double > |
using | Local2DVector = Vector2DBase< float, LocalTag > |
using | SurfaceReturnType = bool |
A base class for Chi2 – type of Measurement Estimators. Implements common functionality. Ported from ORCA.
Definition at line 14 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 21 of file Chi2MeasurementEstimatorBase.h.
|
inline |
Definition at line 27 of file Chi2MeasurementEstimatorBase.h.
References estimate(), and maximalLocalDisplacement().
|
inline |
Definition at line 36 of file Chi2MeasurementEstimatorBase.h.
References theMaxChi2.
Referenced by returnIt().
|
overridepure 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 Chi2Switching1DEstimator, MuonChi2MeasurementEstimator, EtaPhiEstimator, GsfChi2MeasurementEstimator, MRHChi2MeasurementEstimator, Chi2MeasurementEstimator, MRHChi2MeasurementEstimator, and Chi2Strip1DEstimator.
Referenced by Chi2MeasurementEstimatorBase(), and EtaPhiEstimator::estimate().
|
finalvirtual |
Returns true if the TrajectoryStateOnSurface is compatible with the Plane, false otherwise. The TrajectoryStateOnSurface must be on the plane.
Implements MeasurementEstimator.
Definition at line 5 of file Chi2MeasurementEstimatorBase.cc.
References Surface::bounds(), TrajectoryStateOnSurface::hasError(), Bounds::inside(), TrajectoryStateOnSurface::localError(), TrajectoryStateOnSurface::localPosition(), nSigmaCut(), and LocalTrajectoryError::positionError().
|
finalvirtual |
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().
Implements MeasurementEstimator.
Definition at line 12 of file Chi2MeasurementEstimatorBase.cc.
References TrajectoryStateOnSurface::hasError(), TrajectoryStateOnSurface::localError(), min(), nSigmaCut(), LocalTrajectoryError::positionError(), mathSSE::sqrt(), theMaxDisplacement, LocalError::xx(), and LocalError::yy().
Referenced by Chi2MeasurementEstimatorBase().
|
inline |
Definition at line 37 of file Chi2MeasurementEstimatorBase.h.
References theNSigma.
Referenced by estimate(), and maximalLocalDisplacement().
|
inlineprotected |
Definition at line 40 of file Chi2MeasurementEstimatorBase.h.
References chiSquaredCut().
Referenced by Chi2MeasurementEstimator::estimate(), MRHChi2MeasurementEstimator::estimate(), and GsfChi2MeasurementEstimator::estimate().
|
private |
Definition at line 45 of file Chi2MeasurementEstimatorBase.h.
Referenced by chiSquaredCut().
|
private |
Definition at line 47 of file Chi2MeasurementEstimatorBase.h.
Referenced by maximalLocalDisplacement().
|
private |
Definition at line 46 of file Chi2MeasurementEstimatorBase.h.
Referenced by nSigmaCut().