Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
TrackingTools
KalmanUpdators
src
Chi2MeasurementEstimatorBase.cc
Go to the documentation of this file.
1
#include "
TrackingTools/KalmanUpdators/interface/Chi2MeasurementEstimatorBase.h
"
2
#include "
TrackingTools/TrajectoryState/interface/TrajectoryStateOnSurface.h
"
3
#include "
DataFormats/GeometrySurface/interface/BoundPlane.h
"
4
5
bool
Chi2MeasurementEstimatorBase::estimate
(
const
TrajectoryStateOnSurface
& ts,
6
const
BoundPlane
& plane)
const
7
{
8
if
( ts.
hasError
()) {
9
return
plane.
bounds
().
inside
( ts.
localPosition
(),
10
ts.
localError
().
positionError
(),
11
nSigmaCut
());
12
}
13
else
return
plane.
bounds
().
inside
(ts.
localPosition
());
14
}
15
16
MeasurementEstimator::Local2DVector
17
Chi2MeasurementEstimatorBase::maximalLocalDisplacement
(
const
TrajectoryStateOnSurface
& ts,
18
const
BoundPlane
& plane)
const
19
{
20
if
( ts.
hasError
()) {
21
LocalError
le
= ts.
localError
().
positionError
();
22
return
Local2DVector
(
sqrt
(le.
xx
())*
nSigmaCut
(),
sqrt
(le.
yy
())*
nSigmaCut
());
23
}
24
else
return
Local2DVector
(0,0);
25
}
BoundPlane
Definition:
BoundPlane.h:19
LocalError::xx
float xx() const
Definition:
LocalError.h:24
MeasurementEstimator::Local2DVector
Vector2DBase< float, LocalTag > Local2DVector
Definition:
MeasurementEstimator.h:24
Bounds::inside
virtual bool inside(const Local3DPoint &) const =0
Determine if the point is inside the bounds.
TrajectoryStateOnSurface::localPosition
LocalPoint localPosition() const
Definition:
TrajectoryStateOnSurface.h:170
TrajectoryStateOnSurface
Definition:
TrajectoryStateOnSurface.h:15
Chi2MeasurementEstimatorBase::nSigmaCut
double nSigmaCut() const
Definition:
Chi2MeasurementEstimatorBase.h:37
LocalTrajectoryError::positionError
LocalError positionError() const
Definition:
LocalTrajectoryError.h:82
LocalError::yy
float yy() const
Definition:
LocalError.h:26
Chi2MeasurementEstimatorBase::maximalLocalDisplacement
virtual Local2DVector maximalLocalDisplacement(const TrajectoryStateOnSurface &ts, const BoundPlane &plane) const
Definition:
Chi2MeasurementEstimatorBase.cc:17
Chi2MeasurementEstimatorBase.h
mathSSE::sqrt
T sqrt(T t)
Definition:
SSEVec.h:46
BoundPlane.h
TrajectoryStateOnSurface::localError
const LocalTrajectoryError & localError() const
Definition:
TrajectoryStateOnSurface.h:179
BoundSurface::bounds
const Bounds & bounds() const
Definition:
BoundSurface.h:89
LocalError
Definition:
LocalError.h:12
Vector2DBase
Definition:
Vector2DBase.h:9
Chi2MeasurementEstimatorBase::estimate
virtual std::pair< bool, double > estimate(const TrajectoryStateOnSurface &ts, const TransientTrackingRecHit &) const =0
TrajectoryStateOnSurface.h
TrajectoryStateOnSurface::hasError
bool hasError() const
Definition:
TrajectoryStateOnSurface.h:126
vdt::le
unsigned long long le
Definition:
VDTMath.h:202
Generated for CMSSW Reference Manual by
1.8.5