ATLAS Offline Software
Reconstruction
egamma
egammaUtils
egammaUtils
EMFourMomBuilder.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef EGAMMAUTILS_EMFOURMOMBUILDER_H
6
#define EGAMMAUTILS_EMFOURMOMBUILDER_H
7
16
#include "
AthContainers/DataVector.h
"
17
#include "
egammaUtils/eg_resolution.h
"
18
#include "
xAODEgamma/Electron.h
"
19
#include "
xAODEgamma/Photon.h
"
20
21
namespace
EMFourMomBuilder
22
{
23
void
calculate
(
xAOD::Electron
&
electron
);
24
void
calculate
(
xAOD::Photon
&
photon
);
25
26
template
<
typename
T>
27
void
calculate
(
DataVector<T>
* egammas)
28
{
29
if
(egammas) {
30
for
(T*
egamma
: *egammas) {
31
calculate
(*
egamma
);
32
}
33
}
34
}
35
};
36
37
#endif
EMFourMomBuilder
Definition:
EMFourMomBuilder.h:22
egamma
Definition:
egamma.h:58
eg_resolution.h
Photon.h
DataVector< T >
EMFourMomBuilder::calculate
void calculate(xAOD::Electron &electron)
Definition:
EMFourMomBuilder.cxx:68
xAOD::Electron_v1
Definition:
Electron_v1.h:34
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
xAOD::photon
@ photon
Definition:
TrackingPrimitives.h:199
xAOD::Photon_v1
Definition:
Photon_v1.h:37
xAOD::EgammaParameters::electron
@ electron
Definition:
EgammaEnums.h:18
Electron.h
Generated on Sun Dec 22 2024 21:10:06 for ATLAS Offline Software by
1.8.18