ATLAS Offline Software
Event
FourMom
src
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
5
#include "
FourMom/P4ErrorTransforms.h
"
6
#include "
FourMom/ErrorMatrixPxPyPzE.h
"
7
#include "
FourMom/ErrorMatrixEEtaPhiM.h
"
8
#include "
FourMom/P4JacobianPxPyPzE2EEtaPhiM.h
"
9
#include "
FourMom/P4JacobianEEtaPhiM2PxPyPzE.h
"
10
11
namespace
P4ErrorTransforms
{
12
13
std::unique_ptr<ErrorMatrixEEtaPhiM>
toEEtaPhiM
(
const
ErrorMatrixPxPyPzE
& em,
14
double
px
,
double
py
,
double
pz
,
double
E
)
15
{
16
P4JacobianPxPyPzE2EEtaPhiM
J(
px
,
py
,
pz
,
E
);
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
{
25
P4JacobianEEtaPhiM2PxPyPzE
J(
E
, eta, phi, M);
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
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
Generated on Fri Jan 10 2025 21:15:32 for ATLAS Offline Software by
1.8.18