ATLAS Offline Software
Loading...
Searching...
No Matches
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
15
18#include "xAODEgamma/Electron.h"
19#include "xAODEgamma/Photon.h"
20
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) {
32 }
33 }
34 }
35};
36
37#endif
An STL vector of pointers that by default owns its pointed-to elements.
Derived DataVector<T>.
Definition DataVector.h:795
elec/gamma data class.
Definition egamma.h:58
void calculate(xAOD::Electron &electron)
Photon_v1 Photon
Definition of the current "egamma version".
Electron_v1 Electron
Definition of the current "egamma version".