CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
KarimakiAlignmentDerivatives.cc
Go to the documentation of this file.
1 
8 
10 
11 
14 {
15 
16  // Get track parameters on surface
18 
19  // [0] q/p : charged: charge (+ or - one) divided by magnitude of momentum
20  // neutral : inverse magnitude of momentum
21  // [1] dxdz : direction tangent in local xz-plane
22  // [2] dydz : direction tangent in local yz-plane
23  // [3] x : local x-coordinate
24  // [4] y : local y-coordinate
25 
26  double tanpsi = alivec[1];
27  double tantheta = alivec[2];
28  double ux = alivec[3];
29  double vx = alivec[4];
30 
31  AlgebraicMatrix aliderivs(6,2);
32 
33  aliderivs[0][0]= -1.0;
34  aliderivs[0][1]= 0.0;
35  aliderivs[1][0]= 0.0;
36  aliderivs[1][1]= -1.0;
37  aliderivs[2][0]= tanpsi;
38  aliderivs[2][1]= tantheta;
39  aliderivs[3][0]= vx*tanpsi;
40  aliderivs[3][1]= vx*tantheta;
41  aliderivs[4][0]= -ux*tanpsi; // New beta sign convention
42  aliderivs[4][1]= -ux*tantheta; // New beta sign convention
43  aliderivs[5][0]= vx;
44  aliderivs[5][1]= -ux;
45 
46  return(aliderivs);
47 
48 }
AlgebraicMatrix operator()(const TrajectoryStateOnSurface &tsos) const
const LocalTrajectoryParameters & localParameters() const
CLHEP::HepMatrix AlgebraicMatrix
ROOT::Math::SVector< double, 5 > AlgebraicVector5
AlgebraicVector5 mixedFormatVector() const