ATLAS Offline Software
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 
10 #include <cmath>
11 
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:64
Trk::locX
@ locX
Definition: ParamDefs.h:43
Trk::locY
@ locY
local cartesian
Definition: ParamDefs.h:44
Trk::locR
@ locR
Definition: ParamDefs.h:50
drawFromPickle.cos
cos
Definition: drawFromPickle.py:36
AmgMatrix
#define AmgMatrix(rows, cols)
Definition: EventPrimitives.h:51
Trk::JacobianPolarToCartesian::JacobianPolarToCartesian
JacobianPolarToCartesian(const double r, const double phi)
Definition: JacobianPolarToCartesian.cxx:12
JacobianPolarToCartesian.h
Trk::locPhi
@ locPhi
local polar
Definition: ParamDefs.h:51
Trk::phi
@ phi
Definition: ParamDefs.h:81
drawFromPickle.sin
sin
Definition: drawFromPickle.py:36