test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
Chi2MeasurementEstimator Class Reference

#include <Chi2MeasurementEstimator.h>

Inheritance diagram for Chi2MeasurementEstimator:
Chi2MeasurementEstimatorBase MeasurementEstimator

Public Member Functions

virtual Chi2MeasurementEstimatorclone () const
 
virtual std::pair< bool, double > estimate (const TrajectoryStateOnSurface &, const TrackingRecHit &) const
 
- Public Member Functions inherited from Chi2MeasurementEstimatorBase
 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
 
virtual bool estimate (const TrajectoryStateOnSurface &ts, const Plane &plane) const final
 
virtual Local2DVector maximalLocalDisplacement (const TrajectoryStateOnSurface &ts, const Plane &plane) const final
 
double nSigmaCut () const
 
- Public Member Functions inherited from MeasurementEstimator
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 ()
 

Additional Inherited Members

- Public Types inherited from MeasurementEstimator
using HitReturnType = std::pair< bool, double >
 
using Local2DVector = Vector2DBase< float, LocalTag >
 
using SurfaceReturnType = bool
 
- Protected Member Functions inherited from Chi2MeasurementEstimatorBase
std::pair< bool, double > returnIt (double est) const
 

Detailed Description

A Chi2 Measurement Estimator. Computhes the Chi^2 of a TrajectoryState with a RecHit or a Plane. The TrajectoryState must have errors. Works for any RecHit dimension. Ported from ORCA.

Author
todorov, cerati

Definition at line 15 of file Chi2MeasurementEstimator.h.

Member Function Documentation

virtual Chi2MeasurementEstimator* Chi2MeasurementEstimator::clone ( void  ) const
inlinevirtual

Implements MeasurementEstimator.

Definition at line 23 of file Chi2MeasurementEstimator.h.

23  {
24  return new Chi2MeasurementEstimator(*this);
25  }
std::pair< bool, double > Chi2MeasurementEstimator::estimate ( const TrajectoryStateOnSurface ts,
const TrackingRecHit hit 
) const
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 35 of file Chi2MeasurementEstimator.cc.

References TrackingRecHit::dimension(), Exception, and Chi2MeasurementEstimatorBase::returnIt().

Referenced by GsfChi2MeasurementEstimator::estimate(), MuonChi2MeasurementEstimator::estimate(), CosmicMuonSmoother::fit(), and CosmicMuonSmoother::smooth().

36  {
37  switch (aRecHit.dimension()) {
38  case 1: return returnIt(lestimate<1>(tsos,aRecHit));
39  case 2: return returnIt(lestimate<2>(tsos,aRecHit));
40  case 3: return returnIt(lestimate<3>(tsos,aRecHit));
41  case 4: return returnIt(lestimate<4>(tsos,aRecHit));
42  case 5: return returnIt(lestimate<5>(tsos,aRecHit));
43  }
44  throw cms::Exception("RecHit of invalid size (not 1,2,3,4,5)");
45 }
std::pair< bool, double > returnIt(double est) const