CMS 3D CMS Logo

List of all members | Public Member Functions
KarimakiAlignmentDerivatives Class Reference

#include <KarimakiAlignmentDerivatives.h>

Public Member Functions

AlgebraicMatrix operator() (const TrajectoryStateOnSurface &tsos) const
 

Detailed Description

Calculates derivatives à la Karimaki (cf. CR-2003/022)

Date
2007/03/02 12:17:09
Revision
1.3

(last update by

Author
fronga

)

Definition at line 16 of file KarimakiAlignmentDerivatives.h.

Member Function Documentation

◆ operator()()

AlgebraicMatrix KarimakiAlignmentDerivatives::operator() ( const TrajectoryStateOnSurface tsos) const

Returns 6x2 jacobian matrix of derivatives of residuals in x and y with respect to rigid body aligment parameters:

/ dr_x/du dr_y/du | | dr_x/dv dr_y/dv | | dr_x/dw dr_y/dw | | dr_x/da dr_y/da | | dr_x/db dr_y/db | \ dr_x/dg dr_y/dg /

Definition at line 11 of file KarimakiAlignmentDerivatives.cc.

11  {
12  // Get track parameters on surface
14 
15  // [0] q/p : charged: charge (+ or - one) divided by magnitude of momentum
16  // neutral : inverse magnitude of momentum
17  // [1] dxdz : direction tangent in local xz-plane
18  // [2] dydz : direction tangent in local yz-plane
19  // [3] x : local x-coordinate
20  // [4] y : local y-coordinate
21 
22  double tanpsi = alivec[1];
23  double tantheta = alivec[2];
24  double ux = alivec[3];
25  double vx = alivec[4];
26 
27  AlgebraicMatrix aliderivs(6, 2);
28 
29  aliderivs[0][0] = -1.0;
30  aliderivs[0][1] = 0.0;
31  aliderivs[1][0] = 0.0;
32  aliderivs[1][1] = -1.0;
33  aliderivs[2][0] = tanpsi;
34  aliderivs[2][1] = tantheta;
35  aliderivs[3][0] = vx * tanpsi;
36  aliderivs[3][1] = vx * tantheta;
37  aliderivs[4][0] = -ux * tanpsi; // New beta sign convention
38  aliderivs[4][1] = -ux * tantheta; // New beta sign convention
39  aliderivs[5][0] = vx;
40  aliderivs[5][1] = -ux;
41 
42  return (aliderivs);
43 }

References TrajectoryStateOnSurface::localParameters(), and LocalTrajectoryParameters::mixedFormatVector().

TrajectoryStateOnSurface::localParameters
const LocalTrajectoryParameters & localParameters() const
Definition: TrajectoryStateOnSurface.h:73
LocalTrajectoryParameters::mixedFormatVector
AlgebraicVector5 mixedFormatVector() const
Definition: LocalTrajectoryParameters.h:135
AlgebraicVector5
ROOT::Math::SVector< double, 5 > AlgebraicVector5
Definition: AlgebraicROOTObjects.h:14
AlgebraicMatrix
CLHEP::HepMatrix AlgebraicMatrix
Definition: AlgebraicObjects.h:14