ATLAS Offline Software
Loading...
Searching...
No Matches
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
JacobianPolarToCartesian.h
Trk::JacobianPolarToCartesian::JacobianPolarToCartesian
JacobianPolarToCartesian(const double r, const double phi)
Definition
JacobianPolarToCartesian.cxx:12
r
int r
Definition
globals.cxx:22
Trk::AmgMatrix
AmgMatrix(3, 3) NeutralParticleParameterCalculator
Definition
NeutralParticleParameterCalculator.cxx:231
Trk::locY
@ locY
local cartesian
Definition
ParamDefs.h:38
Trk::locX
@ locX
Definition
ParamDefs.h:37
Trk::locR
@ locR
Definition
ParamDefs.h:44
Trk::phi
@ phi
Definition
ParamDefs.h:75
Trk::locPhi
@ locPhi
local polar
Definition
ParamDefs.h:45
Generated on
for ATLAS Offline Software by
1.14.0