CMS 3D CMS Logo

List of all members | Public Member Functions
Chi2MeasurementEstimator Class Reference

#include <Chi2MeasurementEstimator.h>

Inheritance diagram for Chi2MeasurementEstimator:
Chi2MeasurementEstimatorBase MeasurementEstimator

Public Member Functions

template<typename... Args>
 Chi2MeasurementEstimatorBase (double maxChi2, double nSigma, float maxDisp, Args &&... args)
 
 Chi2MeasurementEstimatorBase (double maxChi2, double nSigma=3., float maxDisp=std::numeric_limits< float >::max())
 
Chi2MeasurementEstimatorclone () const override
 
std::pair< bool, double > estimate (const TrajectoryStateOnSurface &, const TrackingRecHit &) const override
 
- Public Member Functions inherited from Chi2MeasurementEstimatorBase
template<typename... Args>
 Chi2MeasurementEstimatorBase (double maxChi2, double nSigma, float maxDisp, Args &&... args)
 
 Chi2MeasurementEstimatorBase (double maxChi2, double nSigma=3., float maxDisp=std::numeric_limits< float >::max())
 
double chiSquaredCut () const
 
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
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

◆ Chi2MeasurementEstimatorBase() [1/2]

template<typename... Args>
Chi2MeasurementEstimatorBase::Chi2MeasurementEstimatorBase ( typename...  Args)
inline

◆ Chi2MeasurementEstimatorBase() [2/2]

Chi2MeasurementEstimatorBase::Chi2MeasurementEstimatorBase
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.

◆ clone()

Chi2MeasurementEstimator* Chi2MeasurementEstimator::clone ( void  ) const
inlineoverridevirtual

Implements MeasurementEstimator.

Definition at line 21 of file Chi2MeasurementEstimator.h.

21 { return new Chi2MeasurementEstimator(*this); }

References Chi2MeasurementEstimator_cfi::Chi2MeasurementEstimator.

◆ estimate()

std::pair< bool, double > Chi2MeasurementEstimator::estimate ( const TrajectoryStateOnSurface ts,
const TrackingRecHit hit 
) const
overridevirtual

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 32 of file Chi2MeasurementEstimator.cc.

33  {
34  switch (aRecHit.dimension()) {
35  case 1:
36  return returnIt(lestimate<1>(tsos, aRecHit));
37  case 2:
38  return returnIt(lestimate<2>(tsos, aRecHit));
39  case 3:
40  return returnIt(lestimate<3>(tsos, aRecHit));
41  case 4:
42  return returnIt(lestimate<4>(tsos, aRecHit));
43  case 5:
44  return returnIt(lestimate<5>(tsos, aRecHit));
45  }
46  throw cms::Exception("RecHit of invalid size (not 1,2,3,4,5)");
47 }

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

Referenced by GsfChi2MeasurementEstimator::estimate(), and MuonChi2MeasurementEstimator::estimate().

writedatasetfile.args
args
Definition: writedatasetfile.py:18
Chi2MeasurementEstimatorBase::returnIt
std::pair< bool, double > returnIt(double est) const
Definition: Chi2MeasurementEstimatorBase.h:40
beam_dqm_sourceclient-live_cfg.maxChi2
maxChi2
Definition: beam_dqm_sourceclient-live_cfg.py:144
Chi2MeasurementEstimatorBase::theNSigma
const double theNSigma
Definition: Chi2MeasurementEstimatorBase.h:46
Chi2MeasurementEstimatorBase::theMaxDisplacement
const float theMaxDisplacement
Definition: Chi2MeasurementEstimatorBase.h:47
Chi2MeasurementEstimator_cfi.Chi2MeasurementEstimator
Chi2MeasurementEstimator
Definition: Chi2MeasurementEstimator_cfi.py:5
MeasurementEstimator::MeasurementEstimator
MeasurementEstimator()
Definition: MeasurementEstimator.h:28
Exception
Definition: hltDiff.cc:246
Chi2MeasurementEstimatorBase::theMaxChi2
const double theMaxChi2
Definition: Chi2MeasurementEstimatorBase.h:45
HLTSiStripMonitoring_cff.nSigma
nSigma
Definition: HLTSiStripMonitoring_cff.py:151