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

Jacobian to transfrom trk perigee parameters (d0,z0,phi,theta,E) to (px,py,pz,E) More...

#include <P5toP4JacobianPhiThetaEM2PxPyPzE.h>

Inheritance diagram for P5toP4JacobianPhiThetaEM2PxPyPzE:
Collaboration diagram for P5toP4JacobianPhiThetaEM2PxPyPzE:

Public Member Functions

 P5toP4JacobianPhiThetaEM2PxPyPzE (const double phi0, const double theta, const double E, const double mass=105.6583692)
 
 ~P5toP4JacobianPhiThetaEM2PxPyPzE ()
 

Detailed Description

Jacobian to transfrom trk perigee parameters (d0,z0,phi,theta,E) to (px,py,pz,E)

Definition at line 20 of file P5toP4JacobianPhiThetaEM2PxPyPzE.h.

Constructor & Destructor Documentation

◆ P5toP4JacobianPhiThetaEM2PxPyPzE()

P5toP4JacobianPhiThetaEM2PxPyPzE::P5toP4JacobianPhiThetaEM2PxPyPzE ( const double  phi0,
const double  theta,
const double  E,
const double  mass = 105.6583692 
)

Definition at line 8 of file P5toP4JacobianPhiThetaEM2PxPyPzE.cxx.

11  :
12  CLHEP::HepMatrix(4,5,0)
13 {
14  double sinp = sin(phi0);
15  double cosp = cos(phi0);
16  double sint = sin(theta);
17  double cost = cos(theta);
18  double mom = sqrt((E*E)-(mass*mass));
19 
20  // transformation of track parameters
21  double px = mom*cosp*sint;
22  double py = mom*sinp*sint;
23  double pz = mom*cost;
24  double EoverP = E/mom;
25 
26 
27  (*this)[0][2] = -py; // dpx/dphi0
28  (*this)[0][3] = pz*cosp; // dpx/dtheta
29  (*this)[0][4] = EoverP*sint*cosp; // dpx/E
30 
31  (*this)[1][2] = px; // dpy/dphi0
32  (*this)[1][3] = pz*sinp; // dpy/dtheta
33  (*this)[1][4] = EoverP*sint*sinp; // dpy/dE
34 
35  (*this)[2][3] = -sint*mom; // dpz/dtheta
36  (*this)[2][4] = EoverP*cost; // dpz/dE
37 
38  (*this)[3][4] = 1.; // dE/dE
39 
40 }

◆ ~P5toP4JacobianPhiThetaEM2PxPyPzE()

P5toP4JacobianPhiThetaEM2PxPyPzE::~P5toP4JacobianPhiThetaEM2PxPyPzE ( )
inline

Definition at line 23 of file P5toP4JacobianPhiThetaEM2PxPyPzE.h.

23 {}

The documentation for this class was generated from the following files:
cost
int cost(std::vector< std::string > &files, node &n, const std::string &directory="", bool deleteref=false, bool relocate=false)
Definition: hcg.cxx:921
test_pyathena.px
px
Definition: test_pyathena.py:18
InDetAccessor::phi0
@ phi0
Definition: InDetAccessor.h:33
theta
Scalar theta() const
theta method
Definition: AmgMatrixBasePlugin.h:71
drawFromPickle.cos
cos
Definition: drawFromPickle.py:36
dqt_zlumi_pandas.mass
mass
Definition: dqt_zlumi_pandas.py:170
ParticleGun_EoverP_Config.mom
mom
Definition: ParticleGun_EoverP_Config.py:63
PyAlgorithmExample.EoverP
int EoverP
Definition: PyAlgorithmExample.py:122
Amg::pz
@ pz
Definition: GeoPrimitives.h:40
Amg::py
@ py
Definition: GeoPrimitives.h:39
VP1PartSpect::E
@ E
Definition: VP1PartSpectFlags.h:21
drawFromPickle.sin
sin
Definition: drawFromPickle.py:36