ATLAS Offline Software
P4ErrorTransforms.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
10 
11 namespace P4ErrorTransforms {
12 
13 std::unique_ptr<ErrorMatrixEEtaPhiM> toEEtaPhiM( const ErrorMatrixPxPyPzE& em,
14  double px, double py, double pz, double E)
15  {
17  CLHEP::HepSymMatrix res(4);
18  res = em.hsm().similarity(J);
19  return std::make_unique<ErrorMatrixEEtaPhiM>(res);
20  }
21 
22 std::unique_ptr<ErrorMatrixPxPyPzE> toPxPyPzE( const ErrorMatrixEEtaPhiM& em,
23  double E, double eta, double phi, double M)
24  {
26  CLHEP::HepSymMatrix res(4);
27  res = em.hsm().similarity(J);
28  return std::make_unique<ErrorMatrixPxPyPzE>(res);
29  }
30 
31 
32 }
test_pyathena.px
px
Definition: test_pyathena.py:18
ErrorMatrixEEtaPhiM
Definition: ErrorMatrixEEtaPhiM.h:12
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:64
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:79
P4ErrorTransforms.h
ErrorMatrixPxPyPzE
Definition: ErrorMatrixPxPyPzE.h:12
ErrorMatrixPxPyPzE.h
res
std::pair< std::vector< unsigned int >, bool > res
Definition: JetGroupProductTest.cxx:14
P4JacobianPxPyPzE2EEtaPhiM.h
Amg::pz
@ pz
Definition: GeoPrimitives.h:40
P4JacobianEEtaPhiM2PxPyPzE
Definition: P4JacobianEEtaPhiM2PxPyPzE.h:10
P4ErrorTransforms
Definition: P4ErrorTransforms.h:11
P4JacobianPxPyPzE2EEtaPhiM
Definition: P4JacobianPxPyPzE2EEtaPhiM.h:10
Amg::py
@ py
Definition: GeoPrimitives.h:39
VP1PartSpect::E
@ E
Definition: VP1PartSpectFlags.h:21
P4ErrorTransforms::toEEtaPhiM
std::unique_ptr< ErrorMatrixEEtaPhiM > toEEtaPhiM(const ErrorMatrixPxPyPzE &em, double px, double py, double pz, double E)
Definition: P4ErrorTransforms.cxx:13
ErrorMatrixEEtaPhiM.h
P4JacobianEEtaPhiM2PxPyPzE.h
ErrorMatrixBase::hsm
const CLHEP::HepSymMatrix & hsm() const
Definition: ErrorMatrixBase.h:29
P4ErrorTransforms::toPxPyPzE
std::unique_ptr< ErrorMatrixPxPyPzE > toPxPyPzE(const ErrorMatrixEEtaPhiM &em, double E, double eta, double phi, double M)
Definition: P4ErrorTransforms.cxx:22