ATLAS Offline Software
Tracking
TrkEvent
TrkEventPrimitives
src
JacobianPhiThetaQoverPToPxyz.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
// JacobianPhiThetaQoverPToPxyz.cxx, (c) ATLAS Detector software
8
9
#include "
TrkEventPrimitives/JacobianPhiThetaQoverPToPxyz.h
"
10
#include <cmath>
11
12
Trk::JacobianPhiThetaQoverPToPxyz::JacobianPhiThetaQoverPToPxyz
(
const
double
phi
,
const
double
theta
,
const
double
qOverP
):
13
AmgMatrix
(3,3)()
14
{
15
double
p
= 1/std::fabs(
qOverP
);
16
double
sign
= - std::fabs(
qOverP
)/
qOverP
;
17
(*this)(0,0) = -
std::sin
(
phi
)*
std::sin
(
theta
)/std::fabs(
qOverP
);
18
(*this)(0,1) =
std::cos
(
phi
)*
std::cos
(
theta
)/std::fabs(
qOverP
);
19
(*this)(0,2) =
sign
*
std::pow
(
p
,2)*
std::cos
(
phi
)*
std::sin
(
theta
);
20
(*this)(1,0) =
std::cos
(
phi
)*
std::sin
(
theta
)/std::fabs(
qOverP
);
21
(*this)(1,1) =
std::sin
(
phi
)*
std::cos
(
theta
)/std::fabs(
qOverP
);
22
(*this)(1,2) =
sign
*
std::pow
(
p
,2)*
std::sin
(
phi
)*
std::sin
(
theta
);
23
(*this)(2,0) = 0.;
24
(*this)(2,1) = -
std::sin
(
theta
)/std::fabs(
qOverP
);
25
(*this)(2,2) =
sign
*
std::pow
(
p
,2)*
std::cos
(
theta
);
26
27
}
28
python.PerfMonSerializer.p
def p
Definition:
PerfMonSerializer.py:743
phi
Scalar phi() const
phi method
Definition:
AmgMatrixBasePlugin.h:64
theta
Scalar theta() const
theta method
Definition:
AmgMatrixBasePlugin.h:71
conifer::pow
constexpr int pow(int x)
Definition:
conifer.h:20
drawFromPickle.cos
cos
Definition:
drawFromPickle.py:36
InDetAccessor::qOverP
@ qOverP
perigee
Definition:
InDetAccessor.h:35
AmgMatrix
#define AmgMatrix(rows, cols)
Definition:
EventPrimitives.h:51
Trk::theta
@ theta
Definition:
ParamDefs.h:72
sign
int sign(int a)
Definition:
TRT_StrawNeighbourSvc.h:127
Trk::JacobianPhiThetaQoverPToPxyz::JacobianPhiThetaQoverPToPxyz
JacobianPhiThetaQoverPToPxyz(const double phi, const double theta, const double QoverP)
Definition:
JacobianPhiThetaQoverPToPxyz.cxx:12
JacobianPhiThetaQoverPToPxyz.h
Trk::qOverP
@ qOverP
perigee
Definition:
ParamDefs.h:73
Trk::phi
@ phi
Definition:
ParamDefs.h:81
drawFromPickle.sin
sin
Definition:
drawFromPickle.py:36
Generated on Tue Jul 2 2024 21:18:15 for ATLAS Offline Software by
1.8.18