ATLAS Offline Software
Public Member Functions | List of all members
P4JacobianPxPyPzM2PxPyPzE Class Reference

#include <P4JacobianPxPyPzM2PxPyPzE.h>

Inheritance diagram for P4JacobianPxPyPzM2PxPyPzE:
Collaboration diagram for P4JacobianPxPyPzM2PxPyPzE:

Public Member Functions

 P4JacobianPxPyPzM2PxPyPzE (double px, double py, double pz, double M)
 

Detailed Description

Definition at line 10 of file P4JacobianPxPyPzM2PxPyPzE.h.

Constructor & Destructor Documentation

◆ P4JacobianPxPyPzM2PxPyPzE()

P4JacobianPxPyPzM2PxPyPzE::P4JacobianPxPyPzM2PxPyPzE ( double  px,
double  py,
double  pz,
double  M 
)

Definition at line 10 of file P4JacobianPxPyPzM2PxPyPzE.cxx.

13  :
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 }

The documentation for this class was generated from the following files:
test_pyathena.px
px
Definition: test_pyathena.py:18
max
#define max(a, b)
Definition: cfImp.cxx:41
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