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

#include <P4JacobianPxPyPzE2PxPyPzM.h>

Inheritance diagram for P4JacobianPxPyPzE2PxPyPzM:
Collaboration diagram for P4JacobianPxPyPzE2PxPyPzM:

Public Member Functions

 P4JacobianPxPyPzE2PxPyPzM (double px, double py, double pz, double E)
 

Detailed Description

Definition at line 10 of file P4JacobianPxPyPzE2PxPyPzM.h.

Constructor & Destructor Documentation

◆ P4JacobianPxPyPzE2PxPyPzM()

P4JacobianPxPyPzE2PxPyPzM::P4JacobianPxPyPzE2PxPyPzM ( double  px,
double  py,
double  pz,
double  E 
)

Definition at line 10 of file P4JacobianPxPyPzE2PxPyPzM.cxx.

13  :
14  HepMatrix(4,4,0)
15 {
16  double pt2 = px*px + py*py;
17  double p2 = pt2 + pz*pz;
18  double M = std::sqrt( std::max( 0., E*E - 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/M; // dM/dpx
25  (*this)[3][1] = -py/M; // dM/dpy
26  (*this)[3][2] = -pz/M; // dM/dpz
27  (*this)[3][3] = E/M; // 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
Amg::pz
@ pz
Definition: GeoPrimitives.h:40
Amg::py
@ py
Definition: GeoPrimitives.h:39
VP1PartSpect::E
@ E
Definition: VP1PartSpectFlags.h:21