ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
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
}
eta
Scalar eta() const
pseudorapidity method
Definition
AmgMatrixBasePlugin.h:83
phi
Scalar phi() const
phi method
Definition
AmgMatrixBasePlugin.h:67
ErrorMatrixEEtaPhiM.h
ErrorMatrixPxPyPzE.h
res
std::pair< std::vector< unsigned int >, bool > res
Definition
JetGroupProductTest.cxx:11
P4ErrorTransforms.h
P4JacobianEEtaPhiM2PxPyPzE.h
P4JacobianPxPyPzE2EEtaPhiM.h
ErrorMatrixEEtaPhiM
Definition
ErrorMatrixEEtaPhiM.h:12
ErrorMatrixEEtaPhiM::hsm
const CLHEP::HepSymMatrix & hsm() const
Definition
ErrorMatrixBase.h:29
ErrorMatrixPxPyPzE
Definition
ErrorMatrixPxPyPzE.h:12
ErrorMatrixPxPyPzE::hsm
const CLHEP::HepSymMatrix & hsm() const
Definition
ErrorMatrixBase.h:29
P4JacobianEEtaPhiM2PxPyPzE
Definition
P4JacobianEEtaPhiM2PxPyPzE.h:10
P4JacobianPxPyPzE2EEtaPhiM
Definition
P4JacobianPxPyPzE2EEtaPhiM.h:10
P4ErrorTransforms
Definition
P4ErrorTransforms.h:11
P4ErrorTransforms::toPxPyPzE
std::unique_ptr< ErrorMatrixPxPyPzE > toPxPyPzE(const ErrorMatrixEEtaPhiM &em, double E, double eta, double phi, double M)
Definition
P4ErrorTransforms.cxx:22
P4ErrorTransforms::toEEtaPhiM
std::unique_ptr< ErrorMatrixEEtaPhiM > toEEtaPhiM(const ErrorMatrixPxPyPzE &em, double px, double py, double pz, double E)
Definition
P4ErrorTransforms.cxx:13
Generated on
for ATLAS Offline Software by
1.17.0