ATLAS Offline Software
Tracking
TrkEvent
TrkEventPrimitives
src
JacobianPolarToCartesian.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// JacobianPolarToCartesian.cxx, (c) ATLAS Detector software
8
9
#include "
TrkEventPrimitives/JacobianPolarToCartesian.h
"
10
#include <cmath>
11
12
Trk::JacobianPolarToCartesian::JacobianPolarToCartesian
(
const
double
r
,
const
double
phi
):
13
AmgMatrix
(5,5)()
14
{
15
// initialize to zero
16
this->setIdentity();
17
18
(*this)(
Trk::locX
,
Trk::locR
) =
std::cos
(
phi
);
19
(*this)(
Trk::locX
,
Trk::locPhi
) = -
r
*
std::sin
(
phi
);
20
(*this)(
Trk::locY
,
Trk::locR
) =
std::sin
(
phi
);
21
(*this)(
Trk::locY
,
Trk::locPhi
) =
r
*
std::cos
(
phi
);
22
}
23
beamspotman.r
def r
Definition:
beamspotman.py:676
phi
Scalar phi() const
phi method
Definition:
AmgMatrixBasePlugin.h:67
Trk::locX
@ locX
Definition:
ParamDefs.h:37
Trk::locY
@ locY
local cartesian
Definition:
ParamDefs.h:38
Trk::locR
@ locR
Definition:
ParamDefs.h:44
drawFromPickle.cos
cos
Definition:
drawFromPickle.py:36
AmgMatrix
#define AmgMatrix(rows, cols)
Definition:
EventPrimitives.h:49
Trk::JacobianPolarToCartesian::JacobianPolarToCartesian
JacobianPolarToCartesian(const double r, const double phi)
Definition:
JacobianPolarToCartesian.cxx:12
JacobianPolarToCartesian.h
Trk::locPhi
@ locPhi
local polar
Definition:
ParamDefs.h:45
Trk::phi
@ phi
Definition:
ParamDefs.h:75
drawFromPickle.sin
sin
Definition:
drawFromPickle.py:36
Generated on Tue Dec 24 2024 21:12:12 for ATLAS Offline Software by
1.8.18