ATLAS Offline Software
Loading...
Searching...
No Matches
EigenP4JacobianPxPyPzE2PxPyPzM Class Reference

#include <EigenP4JacobianPxPyPzE2PxPyPzM.h>

Inheritance diagram for EigenP4JacobianPxPyPzE2PxPyPzM:
Collaboration diagram for EigenP4JacobianPxPyPzE2PxPyPzM:

Public Member Functions

 EigenP4JacobianPxPyPzE2PxPyPzM (double px, double py, double pz, double E)
 ~EigenP4JacobianPxPyPzE2PxPyPzM ()

Detailed Description

Definition at line 10 of file EigenP4JacobianPxPyPzE2PxPyPzM.h.

Constructor & Destructor Documentation

◆ EigenP4JacobianPxPyPzE2PxPyPzM()

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

Definition at line 10 of file EigenP4JacobianPxPyPzE2PxPyPzM.cxx.

13 :
14 AmgMatrix(4,4)()
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 this->setZero();
20
21 (*this)(0,0) = 1; // dpx/dpx
22 (*this)(1,1) = 1; // dpy/dpy
23 (*this)(2,2) = 1; // dpz/dpz
24
25 (*this)(3,0) = -px/M; // dM/dpx
26 (*this)(3,1) = -py/M; // dM/dpy
27 (*this)(3,2) = -pz/M; // dM/dpz
28 (*this)(3,3) = E/M; // dM/dE
29}
#define AmgMatrix(rows, cols)

◆ ~EigenP4JacobianPxPyPzE2PxPyPzM()

EigenP4JacobianPxPyPzE2PxPyPzM::~EigenP4JacobianPxPyPzE2PxPyPzM ( )
inline

Definition at line 14 of file EigenP4JacobianPxPyPzE2PxPyPzM.h.

14{}

The documentation for this class was generated from the following files: