ATLAS Offline Software
Public Member Functions | List of all members
Trk::JacobianCartesianToPolar Class Reference

#include <JacobianCartesianToPolar.h>

Inheritance diagram for Trk::JacobianCartesianToPolar:
Collaboration diagram for Trk::JacobianCartesianToPolar:

Public Member Functions

 JacobianCartesianToPolar (const double lx, const double ly)
 
 ~JacobianCartesianToPolar ()
 

Detailed Description

Jacobian for the transformation of cartesian parametes \((locX,locY,\phi,\theta, q/p)\) to polar parameters \( (locR,locPhi,\phi,\theta, q/p)\):

Author
Andre.nosp@m.as.S.nosp@m.alzbu.nosp@m.rger.nosp@m.@cern.nosp@m..ch

Definition at line 30 of file JacobianCartesianToPolar.h.

Constructor & Destructor Documentation

◆ JacobianCartesianToPolar()

Trk::JacobianCartesianToPolar::JacobianCartesianToPolar ( const double  lx,
const double  ly 
)

Definition at line 12 of file JacobianCartesianToPolar.cxx.

12  :
13  AmgMatrix(5,5)()
14 {
15  // initialize to identify matrix
16  this->setIdentity();
17 
18  if (std::fabs(lx)>10e-6 || std::fabs(ly)>10e-6){
19 
20  double r = std::sqrt(lx*lx+ly*ly);
21 
22  (*this)(Trk::locR,Trk::locX) = lx/r;
23  (*this)(Trk::locR,Trk::locY) = ly/r;
24  (*this)(Trk::locPhi,Trk::locX) = -ly/(r*r);
25  (*this)(Trk::locPhi,Trk::locY) = lx/(r*r);
26  }
27 }

◆ ~JacobianCartesianToPolar()

Trk::JacobianCartesianToPolar::~JacobianCartesianToPolar ( )
inline

Definition at line 33 of file JacobianCartesianToPolar.h.

33 {}

The documentation for this class was generated from the following files:
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
beamspotman.r
def r
Definition: beamspotman.py:676
Trk::AmgMatrix
AmgMatrix(3, 3) NeutralParticleParameterCalculator
Definition: NeutralParticleParameterCalculator.cxx:233
Trk::locX
@ locX
Definition: ParamDefs.h:37
Trk::locY
@ locY
local cartesian
Definition: ParamDefs.h:38
Trk::locR
@ locR
Definition: ParamDefs.h:44
Trk::locPhi
@ locPhi
local polar
Definition: ParamDefs.h:45