CMS 3D CMS Logo

Chi2MeasurementEstimatorBase.h
Go to the documentation of this file.
1 #ifndef CommonDet_Chi2MeasurementEstimatorBase_H
2 #define CommonDet_Chi2MeasurementEstimatorBase_H
3 
12 #include <limits>
13 
15 public:
22  double nSigma = 3.,
23  float maxDisp = std::numeric_limits<float>::max())
25 
26  template <typename... Args>
27  Chi2MeasurementEstimatorBase(double maxChi2, double nSigma, float maxDisp, Args&&... args)
29 
30  std::pair<bool, double> estimate(const TrajectoryStateOnSurface& ts, const TrackingRecHit&) const override = 0;
31 
32  bool estimate(const TrajectoryStateOnSurface& ts, const Plane& plane) const final;
33 
34  Local2DVector maximalLocalDisplacement(const TrajectoryStateOnSurface& ts, const Plane& plane) const final;
35 
36  double chiSquaredCut() const { return theMaxChi2; }
37  double nSigmaCut() const { return theNSigma; }
38 
39 protected:
40  std::pair<bool, double> returnIt(double est) const {
41  return est > chiSquaredCut() ? HitReturnType(false, est) : HitReturnType(true, est);
42  }
43 
44 private:
45  const double theMaxChi2;
46  const double theNSigma;
47  const float theMaxDisplacement;
48 };
49 
50 #endif
writedatasetfile.args
args
Definition: writedatasetfile.py:18
MeasurementEstimator
Definition: MeasurementEstimator.h:19
Chi2MeasurementEstimatorBase::nSigmaCut
double nSigmaCut() const
Definition: Chi2MeasurementEstimatorBase.h:37
Chi2MeasurementEstimatorBase::returnIt
std::pair< bool, double > returnIt(double est) const
Definition: Chi2MeasurementEstimatorBase.h:40
Chi2MeasurementEstimatorBase::estimate
std::pair< bool, double > estimate(const TrajectoryStateOnSurface &ts, const TrackingRecHit &) const override=0
beam_dqm_sourceclient-live_cfg.maxChi2
maxChi2
Definition: beam_dqm_sourceclient-live_cfg.py:136
MeasurementEstimator::HitReturnType
std::pair< bool, double > HitReturnType
Definition: MeasurementEstimator.h:34
Chi2MeasurementEstimatorBase::theNSigma
const double theNSigma
Definition: Chi2MeasurementEstimatorBase.h:46
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
Chi2MeasurementEstimatorBase::theMaxDisplacement
const float theMaxDisplacement
Definition: Chi2MeasurementEstimatorBase.h:47
MeasurementEstimator.h
Vector2DBase
Definition: Vector2DBase.h:8
Chi2MeasurementEstimatorBase::Chi2MeasurementEstimatorBase
Chi2MeasurementEstimatorBase(double maxChi2, double nSigma=3., float maxDisp=std::numeric_limits< float >::max())
Definition: Chi2MeasurementEstimatorBase.h:21
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
Chi2MeasurementEstimatorBase
Definition: Chi2MeasurementEstimatorBase.h:14
TrackingRecHit
Definition: TrackingRecHit.h:21
Plane
Definition: Plane.h:16
Chi2MeasurementEstimatorBase::theMaxChi2
const double theMaxChi2
Definition: Chi2MeasurementEstimatorBase.h:45
Chi2MeasurementEstimatorBase::maximalLocalDisplacement
Local2DVector maximalLocalDisplacement(const TrajectoryStateOnSurface &ts, const Plane &plane) const final
Definition: Chi2MeasurementEstimatorBase.cc:12
Chi2MeasurementEstimatorBase::chiSquaredCut
double chiSquaredCut() const
Definition: Chi2MeasurementEstimatorBase.h:36
HLTSiStripMonitoring_cff.nSigma
nSigma
Definition: HLTSiStripMonitoring_cff.py:151
Chi2MeasurementEstimatorBase::Chi2MeasurementEstimatorBase
Chi2MeasurementEstimatorBase(double maxChi2, double nSigma, float maxDisp, Args &&... args)
Definition: Chi2MeasurementEstimatorBase.h:27