ATLAS Offline Software
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 
18 #include "xAODEgamma/Electron.h"
19 #include "xAODEgamma/Photon.h"
20 
22 {
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