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

 Chi2MeasurementEstimator (double maxChi2, double nSigma=3.)
 
virtual Chi2MeasurementEstimatorclone () const
 
virtual std::pair< bool, double > estimate (const TrajectoryStateOnSurface &, const TransientTrackingRecHit &) const
 
template<unsigned int D>
std::pair< bool, double > estimate (const TrajectoryStateOnSurface &, const TransientTrackingRecHit &) const
 
- Public Member Functions inherited from Chi2MeasurementEstimatorBase
 Chi2MeasurementEstimatorBase (double maxChi2, double nSigma=3.)
 
double chiSquaredCut () const
 
virtual bool estimate (const TrajectoryStateOnSurface &ts, const BoundPlane &plane) const
 
virtual Local2DVector maximalLocalDisplacement (const TrajectoryStateOnSurface &ts, const BoundPlane &plane) const
 
double nSigmaCut () const
 
- Public Member Functions inherited from MeasurementEstimator
virtual ~MeasurementEstimator ()
 

Additional Inherited Members

- Public Types inherited from MeasurementEstimator
typedef std::pair< bool, double > HitReturnType
 
typedef Vector2DBase< float,
LocalTag
Local2DVector
 
typedef bool SurfaceReturnType
 
- 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 BoundPlane. The TrajectoryState must have errors. Works for any RecHit dimension. Ported from ORCA.

Date:
2007/05/09 13:58:19
Revision:
1.1.2.1
Author
todorov, cerati

Definition at line 17 of file Chi2MeasurementEstimator.h.

Constructor & Destructor Documentation

Chi2MeasurementEstimator::Chi2MeasurementEstimator ( double  maxChi2,
double  nSigma = 3. 
)
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 BoundPlane and maximalLocalDisplacement.

Definition at line 25 of file Chi2MeasurementEstimator.h.

Referenced by clone().

25  :
26  Chi2MeasurementEstimatorBase( maxChi2, nSigma) {}
Chi2MeasurementEstimatorBase(double maxChi2, double nSigma=3.)

Member Function Documentation

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

Implements MeasurementEstimator.

Definition at line 33 of file Chi2MeasurementEstimator.h.

References Chi2MeasurementEstimator().

33  {
34  return new Chi2MeasurementEstimator(*this);
35  }
Chi2MeasurementEstimator(double maxChi2, double nSigma=3.)
std::pair< bool, double > Chi2MeasurementEstimator::estimate ( const TrajectoryStateOnSurface ts,
const TransientTrackingRecHit 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 8 of file Chi2MeasurementEstimator.cc.

References TrackingRecHit::dimension(), and edm::hlt::Exception.

Referenced by CosmicTrajectoryBuilder::AddHit(), CRackTrajectoryBuilder::AddHit(), GsfChi2MeasurementEstimator::estimate(), Chi2SwitchingEstimator::estimate(), MuonChi2MeasurementEstimator::estimate(), CosmicMuonSmoother::fit(), MuonRoadTrajectoryBuilder::GatherHits(), SimpleTrackRefitter::refitTrack(), and CosmicMuonSmoother::smooth().

9  {
10  switch (aRecHit.dimension()) {
11  case 1: return estimate<1>(tsos,aRecHit);
12  case 2: return estimate<2>(tsos,aRecHit);
13  case 3: return estimate<3>(tsos,aRecHit);
14  case 4: return estimate<4>(tsos,aRecHit);
15  case 5: return estimate<5>(tsos,aRecHit);
16  }
17  throw cms::Exception("RecHit of invalid size (not 1,2,3,4,5)");
18 }
template<unsigned int D>
std::pair<bool,double> Chi2MeasurementEstimator::estimate ( const TrajectoryStateOnSurface ts,
const TransientTrackingRecHit 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.