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
}
cms::cuda::V
cudaStream_t T uint32_t const T *__restrict__ const uint32_t *__restrict__ uint32_t int cudaStream_t V
Definition:
HistoContainer.h:99
LocalTrajectoryError::positionError
LocalError positionError() const
Definition:
LocalTrajectoryError.h:81
Chi2Strip1DEstimator.h
GeomDetType.h
TransientTrackingRecHit.h
StripTopology.h
MeasurementEstimator::HitReturnType
std::pair< bool, double > HitReturnType
Definition:
MeasurementEstimator.h:34
TrajectoryStateOnSurface
Definition:
TrajectoryStateOnSurface.h:16
ecaldqm::topology
const CaloTopology * topology(nullptr)
visualization-live-secondInstance_cfg.m
m
Definition:
visualization-live-secondInstance_cfg.py:72
Chi2Strip1DEstimator::estimate
std::pair< bool, double > estimate(const TrajectoryStateOnSurface &, const TrackingRecHit &) const override
Definition:
Chi2Strip1DEstimator.cc:8
TrajectoryStateOnSurface::localPosition
LocalPoint localPosition() const
Definition:
TrajectoryStateOnSurface.h:74
TrackingRecHit
Definition:
TrackingRecHit.h:21
alignCSCRings.r
r
Definition:
alignCSCRings.py:93
GeomDet.h
std
Definition:
JetResolutionObject.h:76
gen::C
C
Definition:
PomwigHadronizer.cc:76
TrajectoryStateOnSurface::localError
const LocalTrajectoryError & localError() const
Definition:
TrajectoryStateOnSurface.h:77
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