Alignment
CommonAlignmentParametrization
src
BeamSpotAlignmentDerivatives.cc
Go to the documentation of this file.
1
8
#include "
DataFormats/GeometrySurface/interface/Surface.h
"
9
10
#include "
TrackingTools/PatternTools/interface/TwoTrackMinimumDistance.h
"
11
12
#include "
TrackingTools/TrajectoryState/interface/PerigeeConversions.h
"
13
#include "
TrackingTools/TrajectoryState/interface/TrajectoryStateOnSurface.h
"
14
15
#include "
Alignment/CommonAlignmentParametrization/interface/BeamSpotAlignmentDerivatives.h
"
16
17
AlgebraicMatrix
BeamSpotAlignmentDerivatives::operator()
(
const
TrajectoryStateOnSurface
&tsos)
const
{
18
AlgebraicMatrix
aliderivs(4, 2);
19
20
if
(!tsos.
isValid
())
21
return
aliderivs;
22
23
// lp.x = transverse impact parameter
24
// lp.y = longitudinal impact parameter
25
LocalPoint
lp = tsos.
localPosition
();
26
double
phi
= tsos.
globalMomentum
().
phi
();
27
double
dz
= lp.
y
();
28
double
sinphi =
sin
(
phi
);
29
double
cosphi =
cos
(
phi
);
30
31
aliderivs[0][0] = sinphi;
32
aliderivs[0][1] = 0.0;
33
aliderivs[1][0] = -cosphi;
34
aliderivs[1][1] = 0.0;
35
aliderivs[2][0] = sinphi *
dz
;
36
aliderivs[2][1] = 0.0;
37
aliderivs[3][0] = -cosphi *
dz
;
38
aliderivs[3][1] = 0.0;
39
40
return
(aliderivs);
41
}
TrajectoryStateOnSurface.h
TwoTrackMinimumDistance.h
funct::sin
Sin< T >::type sin(const T &t)
Definition:
Sin.h:22
BeamSpotAlignmentDerivatives::operator()
AlgebraicMatrix operator()(const TrajectoryStateOnSurface &tsos) const
Returns 4x2 jacobian matrix.
Definition:
BeamSpotAlignmentDerivatives.cc:17
TrajectoryStateOnSurface
Definition:
TrajectoryStateOnSurface.h:16
funct::cos
Cos< T >::type cos(const T &t)
Definition:
Cos.h:22
Surface.h
PerigeeConversions.h
Point3DBase< float, LocalTag >
TrajectoryStateOnSurface::localPosition
LocalPoint localPosition() const
Definition:
TrajectoryStateOnSurface.h:74
PV3DBase::y
T y() const
Definition:
PV3DBase.h:60
DDAxes::phi
TrajectoryStateOnSurface::globalMomentum
GlobalVector globalMomentum() const
Definition:
TrajectoryStateOnSurface.h:66
AlgebraicMatrix
CLHEP::HepMatrix AlgebraicMatrix
Definition:
AlgebraicObjects.h:14
BeamSpotAlignmentDerivatives.h
PVValHelper::dz
Definition:
PVValidationHelpers.h:50
PV3DBase::phi
Geom::Phi< T > phi() const
Definition:
PV3DBase.h:66
TrajectoryStateOnSurface::isValid
bool isValid() const
Definition:
TrajectoryStateOnSurface.h:54
Generated for CMSSW Reference Manual by
1.8.16