TrackingTools
KalmanUpdators
src
Chi2Strip1DEstimator.cc
Go to the documentation of this file.
1
#include "
TrackingTools/KalmanUpdators/interface/Chi2Strip1DEstimator.h
"
2
#include "
Geometry/CommonDetUnit/interface/GeomDetType.h
"
3
#include "
Geometry/CommonTopologies/interface/StripTopology.h
"
4
#include "
Geometry/CommonDetUnit/interface/GeomDet.h
"
5
#include "
TrackingTools/TransientTrackingRecHit/interface/TransientTrackingRecHit.h
"
6
using namespace
std
;
7
8
pair<bool, double>
Chi2Strip1DEstimator::estimate
(
const
TrajectoryStateOnSurface
&
state
,
9
const
TrackingRecHit
&
hit
)
const
{
10
if
(
//hit.isMatched() ||
11
hit
.detUnit()->type().isTrackerPixel())
12
return
HitReturnType
(
false
, 0.);
13
14
const
StripTopology
* topology = dynamic_cast<const StripTopology*>(&(
hit
.detUnit()->topology()));
15
16
double
m
= topology->
measurementPosition
(
hit
.localPosition()).x();
17
18
double
x = topology->
measurementPosition
(
state
.localPosition()).x();
19
20
double
V
= topology->
measurementError
(
hit
.localPosition(),
hit
.localPositionError()).uu();
21
double
C
= topology->
measurementError
(
state
.localPosition(),
state
.localError().positionError()).uu();
22
double
r
=
m
- x;
23
double
R
=
V
+
C
;
24
25
double
est =
r
*
r
/
R
;
26
27
return
returnIt(est);
28
}
Chi2Strip1DEstimator.h
GeomDetType.h
TransientTrackingRecHit.h
StripTopology.h
MeasurementEstimator::HitReturnType
std::pair< bool, double > HitReturnType
Definition:
MeasurementEstimator.h:34
TrajectoryStateOnSurface
Definition:
TrajectoryStateOnSurface.h:16
visualization-live-secondInstance_cfg.m
m
Definition:
visualization-live-secondInstance_cfg.py:79
Chi2Strip1DEstimator::estimate
std::pair< bool, double > estimate(const TrajectoryStateOnSurface &, const TrackingRecHit &) const override
Definition:
Chi2Strip1DEstimator.cc:8
Topology::measurementError
virtual MeasurementError measurementError(const LocalPoint &, const LocalError &) const =0
cms::cuda::V
uint32_t const T *__restrict__ const uint32_t *__restrict__ int32_t int Histo::index_type cudaStream_t V
Definition:
HistoContainer.h:51
Topology::measurementPosition
virtual MeasurementPoint measurementPosition(const LocalPoint &) const =0
TrackingRecHit
Definition:
TrackingRecHit.h:21
alignCSCRings.r
r
Definition:
alignCSCRings.py:93
GeomDet.h
std
Definition:
JetResolutionObject.h:76
RunInfoPI::state
state
Definition:
RunInfoPayloadInspectoHelper.h:16
gen::C
C
Definition:
PomwigHadronizer.cc:78
dttmaxenums::R
Definition:
DTTMax.h:29
StripTopology
Definition:
StripTopology.h:11
hit
Definition:
SiStripHitEffFromCalibTree.cc:88
Generated for CMSSW Reference Manual by
1.8.16