ATLAS Offline Software
Functions
P4ErrorTransforms Namespace Reference

Functions

std::unique_ptr< ErrorMatrixEEtaPhiMtoEEtaPhiM (const ErrorMatrixPxPyPzE &em, double px, double py, double pz, double E)
 
std::unique_ptr< ErrorMatrixPxPyPzEtoPxPyPzE (const ErrorMatrixEEtaPhiM &em, double E, double eta, double phi, double M)
 

Function Documentation

◆ toEEtaPhiM()

std::unique_ptr< ErrorMatrixEEtaPhiM > P4ErrorTransforms::toEEtaPhiM ( const ErrorMatrixPxPyPzE em,
double  px,
double  py,
double  pz,
double  E 
)

Definition at line 13 of file P4ErrorTransforms.cxx.

15  {
17  CLHEP::HepSymMatrix res(4);
18  res = em.hsm().similarity(J);
19  return std::make_unique<ErrorMatrixEEtaPhiM>(res);
20  }

◆ toPxPyPzE()

std::unique_ptr< ErrorMatrixPxPyPzE > P4ErrorTransforms::toPxPyPzE ( const ErrorMatrixEEtaPhiM em,
double  E,
double  eta,
double  phi,
double  M 
)

Definition at line 22 of file P4ErrorTransforms.cxx.

24  {
26  CLHEP::HepSymMatrix res(4);
27  res = em.hsm().similarity(J);
28  return std::make_unique<ErrorMatrixPxPyPzE>(res);
29  }
test_pyathena.px
px
Definition: test_pyathena.py:18
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:67
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:83
res
std::pair< std::vector< unsigned int >, bool > res
Definition: JetGroupProductTest.cxx:14
Amg::pz
@ pz
Definition: GeoPrimitives.h:40
P4JacobianEEtaPhiM2PxPyPzE
Definition: P4JacobianEEtaPhiM2PxPyPzE.h:10
P4JacobianPxPyPzE2EEtaPhiM
Definition: P4JacobianPxPyPzE2EEtaPhiM.h:10
Amg::py
@ py
Definition: GeoPrimitives.h:39
VP1PartSpect::E
@ E
Definition: VP1PartSpectFlags.h:21
ErrorMatrixBase::hsm
const CLHEP::HepSymMatrix & hsm() const
Definition: ErrorMatrixBase.h:29