ATLAS Offline Software
Event
FourMom
src
P4JacobianPxPyPzM2PxPyPzE.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
FourMom/P4JacobianPxPyPzM2PxPyPzE.h
"
6
7
#include <cmath>
8
#include <algorithm>
9
10
P4JacobianPxPyPzM2PxPyPzE::P4JacobianPxPyPzM2PxPyPzE
(
double
px
,
11
double
py
,
12
double
pz
,
13
double
M) :
14
HepMatrix(4,4,0)
15
{
16
double
pt2 =
px
*
px
+
py
*
py
;
17
double
p2
= pt2 +
pz
*
pz
;
18
double
E
= std::sqrt(
std::max
( 0., M*M +
p2
));
19
20
(*this)[0][0] = 1;
// dpx/dpx
21
(*this)[1][1] = 1;
// dpy/dpy
22
(*this)[2][2] = 1;
// dpz/dpz
23
24
(*this)[3][0] =
px
/
E
;
// dM/dpx
25
(*this)[3][1] =
py
/
E
;
// dM/dpy
26
(*this)[3][2] =
pz
/
E
;
// dM/dpz
27
(*this)[3][3] = M/
E
;
// dM/dE
28
}
test_pyathena.px
px
Definition:
test_pyathena.py:18
max
#define max(a, b)
Definition:
cfImp.cxx:41
P4JacobianPxPyPzM2PxPyPzE.h
TRTCalib_cfilter.p2
p2
Definition:
TRTCalib_cfilter.py:131
Amg::pz
@ pz
Definition:
GeoPrimitives.h:40
Amg::py
@ py
Definition:
GeoPrimitives.h:39
VP1PartSpect::E
@ E
Definition:
VP1PartSpectFlags.h:21
P4JacobianPxPyPzM2PxPyPzE::P4JacobianPxPyPzM2PxPyPzE
P4JacobianPxPyPzM2PxPyPzE(double px, double py, double pz, double M)
Definition:
P4JacobianPxPyPzM2PxPyPzE.cxx:10
Generated on Thu Nov 7 2024 21:23:06 for ATLAS Offline Software by
1.8.18