TrackingTools
TrajectoryState
src
TrajectoryStateClosestToBeamLine.cc
Go to the documentation of this file.
1
#include "
TrackingTools/TrajectoryState/interface/TrajectoryStateClosestToBeamLine.h
"
2
3
Measurement1D
TrajectoryStateClosestToBeamLine::transverseImpactParameter
()
const
{
4
AlgebraicSymMatrix33
error
=
5
theBeamSpot
.
rotatedCovariance3D
() +
theFTS
.
cartesianError
().
matrix
().Sub<
AlgebraicSymMatrix33
>(0, 0);
6
7
GlobalPoint
impactPoint =
theFTS
.
position
();
8
AlgebraicVector3
transverseFlightPath(
9
impactPoint.x() -
thePointOnBeamLine
.
x
(), impactPoint.y() -
thePointOnBeamLine
.
y
(), 0.);
10
double
length = ROOT::Math::Mag(transverseFlightPath);
11
// Warning: after the transverseFlightPath.Unit() statement, the
12
// transverseFlightPath vector is CHANGED to a UNIT vector.
13
double
ipError =
sqrt
(ROOT::Math::Similarity(transverseFlightPath.Unit(),
error
));
14
return
Measurement1D
(length, ipError);
15
}
TrajectoryStateClosestToBeamLine.h
AlgebraicVector3
ROOT::Math::SVector< double, 3 > AlgebraicVector3
Definition:
AlgebraicROOTObjects.h:12
Measurement1D
Definition:
Measurement1D.h:11
AlgebraicSymMatrix33
ROOT::Math::SMatrix< double, 3, 3, ROOT::Math::MatRepSym< double, 3 > > AlgebraicSymMatrix33
Definition:
AlgebraicROOTObjects.h:21
PV3DBase::x
T x() const
Definition:
PV3DBase.h:59
TrajectoryStateClosestToBeamLine::theFTS
FTS theFTS
Definition:
TrajectoryStateClosestToBeamLine.h:53
reco::BeamSpot::rotatedCovariance3D
Covariance3DMatrix rotatedCovariance3D() const
Definition:
BeamSpot.cc:73
TrajectoryStateClosestToBeamLine::theBeamSpot
reco::BeamSpot theBeamSpot
Definition:
TrajectoryStateClosestToBeamLine.h:55
TrajectoryStateClosestToBeamLine::thePointOnBeamLine
GlobalPoint thePointOnBeamLine
Definition:
TrajectoryStateClosestToBeamLine.h:54
FreeTrajectoryState::position
GlobalPoint position() const
Definition:
FreeTrajectoryState.h:67
relativeConstraints.error
error
Definition:
relativeConstraints.py:53
FreeTrajectoryState::cartesianError
CartesianTrajectoryError cartesianError() const
Definition:
FreeTrajectoryState.h:81
mathSSE::sqrt
T sqrt(T t)
Definition:
SSEVec.h:19
TrajectoryStateClosestToBeamLine::transverseImpactParameter
Measurement1D transverseImpactParameter() const
Definition:
TrajectoryStateClosestToBeamLine.cc:3
Point3DBase< float, GlobalTag >
PV3DBase::y
T y() const
Definition:
PV3DBase.h:60
CartesianTrajectoryError::matrix
const AlgebraicSymMatrix66 & matrix() const
Definition:
CartesianTrajectoryError.h:28
Generated for CMSSW Reference Manual by
1.8.16