12 Trajectory::DataContainer::const_iterator i_fwd =
14 Trajectory::DataContainer::const_reverse_iterator i_bwd =
16 Trajectory::DataContainer::const_iterator i_end =
18 Trajectory::DataContainer::const_reverse_iterator i_rend =
21 for (; forward ? i_fwd != i_end : i_bwd != i_rend;
22 ++i_fwd, ++i_bwd, ++i_residual) {
37 edm::LogError(
"InvalideState")<<
"the combined state is invalid";
45 auto const & error_including_alignment = dethit_localerr;
49 auto x = (dethit_localpos.
x() - combo_localpos.
x()) /
50 std::sqrt(error_including_alignment.xx());
51 auto y = (dethit_localpos.
y() - combo_localpos.
y()) /
52 std::sqrt(error_including_alignment.yy());
58 auto x = (dethit_localpos.
x() - combo_localpos.
x()) /
59 std::sqrt(error_including_alignment.xx() + combo_localerr.
xx());
60 auto y = (dethit_localpos.
y() - combo_localpos.
y()) /
61 std::sqrt(error_including_alignment.yy() + combo_localerr.
yy());
ConstRecHitPointer const & recHit() const
LocalPoint localPosition() const
void setPullXY(int idx, double pullX, double pullY)
LocalError positionError() const
PropagationDirection const & direction() const
T x() const
Cartesian x coordinate.
DataContainer const & measurements() const
static type combine(const A &_1, const B &_2)
const LocalTrajectoryError & localError() const
TrajectoryStateOnSurface const & forwardPredictedState() const
Access to forward predicted state (from fitter or builder)
void setResidualXY(int idx, double residualX, double residualY)
reco::TrackResiduals trajectoryToResiduals(const Trajectory &trajectory, enum reco::TrackResiduals::ResidualType type)
TrajectoryStateOnSurface const & backwardPredictedState() const
Access to backward predicted state (from smoother)