CMS 3D CMS Logo

Public Member Functions | Protected Member Functions | Private Attributes

Chi2MeasurementEstimatorBase Class Reference

#include <Chi2MeasurementEstimatorBase.h>

Inheritance diagram for Chi2MeasurementEstimatorBase:
MeasurementEstimator EtaPhiEstimator GCC11_FINAL< T, TOPO > GCC11_FINAL< T, TOPO > GCC11_FINAL< T, TOPO > GCC11_FINAL< T, TOPO > GCC11_FINAL< T, TOPO > GCC11_FINAL< T, TOPO > GsfChi2MeasurementEstimator MuonChi2MeasurementEstimator

List of all members.

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

Protected Member Functions

std::pair< bool, double > returnIt (double est) const

Private Attributes

double theMaxChi2
double theNSigma

Detailed Description

A base class for Chi2 -- type of Measurement Estimators. Implements common functionality. Ported from ORCA.

Date:
2013/01/10 12:12:18
Revision:
1.6
Author:
todorov, cerati

Definition at line 16 of file Chi2MeasurementEstimatorBase.h.


Constructor & Destructor Documentation

Chi2MeasurementEstimatorBase::Chi2MeasurementEstimatorBase ( 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 Plane and maximalLocalDisplacement.

Definition at line 24 of file Chi2MeasurementEstimatorBase.h.

                                                                            : 
    theMaxChi2(maxChi2), theNSigma(nSigma) {}

Member Function Documentation

double Chi2MeasurementEstimatorBase::chiSquaredCut ( ) const [inline]

Definition at line 37 of file Chi2MeasurementEstimatorBase.h.

References theMaxChi2.

Referenced by returnIt().

{return theMaxChi2;}
virtual std::pair<bool, double> Chi2MeasurementEstimatorBase::estimate ( const TrajectoryStateOnSurface ts,
const TransientTrackingRecHit hit 
) const [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 EtaPhiEstimator, MuonChi2MeasurementEstimator, GsfChi2MeasurementEstimator, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, and GCC11_FINAL< T, TOPO >.

Referenced by EtaPhiEstimator::estimate().

bool Chi2MeasurementEstimatorBase::estimate ( const TrajectoryStateOnSurface ts,
const Plane plane 
) const [virtual]
MeasurementEstimator::Local2DVector Chi2MeasurementEstimatorBase::maximalLocalDisplacement ( const TrajectoryStateOnSurface ts,
const Plane plane 
) const [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().

{
  if ( ts.hasError()) {
    LocalError le = ts.localError().positionError();
    return Local2DVector( sqrt(le.xx())*nSigmaCut(), sqrt(le.yy())*nSigmaCut());
  }
  else return Local2DVector(0,0);
}
double Chi2MeasurementEstimatorBase::nSigmaCut ( ) const [inline]

Definition at line 38 of file Chi2MeasurementEstimatorBase.h.

References theNSigma.

Referenced by estimate(), and maximalLocalDisplacement().

{return theNSigma;}
std::pair<bool,double> Chi2MeasurementEstimatorBase::returnIt ( double  est) const [inline, protected]

Definition at line 42 of file Chi2MeasurementEstimatorBase.h.

References chiSquaredCut().

Referenced by GsfChi2MeasurementEstimator::estimate().

                                                   {
    return est > chiSquaredCut() ? HitReturnType(false,est) : HitReturnType(true,est);
  }

Member Data Documentation

Definition at line 47 of file Chi2MeasurementEstimatorBase.h.

Referenced by chiSquaredCut().

Definition at line 48 of file Chi2MeasurementEstimatorBase.h.

Referenced by nSigmaCut().