Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
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/Plane.h
"
4
5
bool
Chi2MeasurementEstimatorBase::estimate
(
const
TrajectoryStateOnSurface
& ts,
6
const
Plane
& 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
Plane
& 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
}
LocalError::xx
float xx() const
Definition:
LocalError.h:24
MeasurementEstimator::Local2DVector
Vector2DBase< float, LocalTag > Local2DVector
Definition:
MeasurementEstimator.h:23
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:171
Plane.h
Surface::bounds
const Bounds & bounds() const
Definition:
Surface.h:128
TrajectoryStateOnSurface
Definition:
TrajectoryStateOnSurface.h:15
Chi2MeasurementEstimatorBase::nSigmaCut
double nSigmaCut() const
Definition:
Chi2MeasurementEstimatorBase.h:38
LocalTrajectoryError::positionError
LocalError positionError() const
Definition:
LocalTrajectoryError.h:82
Plane
Definition:
Plane.h:17
LocalError::yy
float yy() const
Definition:
LocalError.h:26
Chi2MeasurementEstimatorBase.h
mathSSE::sqrt
T sqrt(T t)
Definition:
SSEVec.h:48
TrajectoryStateOnSurface::localError
const LocalTrajectoryError & localError() const
Definition:
TrajectoryStateOnSurface.h:180
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
asciidump.le
int le
Definition:
asciidump.py:443
Chi2MeasurementEstimatorBase::maximalLocalDisplacement
virtual Local2DVector maximalLocalDisplacement(const TrajectoryStateOnSurface &ts, const Plane &plane) const
Definition:
Chi2MeasurementEstimatorBase.cc:17
TrajectoryStateOnSurface::hasError
bool hasError() const
Definition:
TrajectoryStateOnSurface.h:127
Generated for CMSSW Reference Manual by
1.8.5