ATLAS Offline Software
Functions
EMFourMomBuilder Namespace Reference

Functions

void calculate (xAOD::Electron &electron)
 
void calculate (xAOD::Photon &photon)
 
template<typename T >
void calculate (DataVector< T > *egammas)
 

Function Documentation

◆ calculate() [1/3]

template<typename T >
void EMFourMomBuilder::calculate ( DataVector< T > *  egammas)

Definition at line 27 of file EMFourMomBuilder.h.

28  {
29  if (egammas) {
30  for (T* egamma : *egammas) {
31  calculate(*egamma);
32  }
33  }
34  }

◆ calculate() [2/3]

void EMFourMomBuilder::calculate ( xAOD::Electron electron)

Definition at line 68 of file EMFourMomBuilder.cxx.

68  {
69  if (electron.trackParticle()) {
70  return setFromTrkCluster(electron);
71  } else {
72  setFromCluster(electron);
73  }
74 }

◆ calculate() [3/3]

void EMFourMomBuilder::calculate ( xAOD::Photon photon)

Definition at line 77 of file EMFourMomBuilder.cxx.

77  {
80  setFromTrkCluster(photon);
81  } else {
82  setFromCluster(photon);
83  }
84 }
egamma
Definition: egamma.h:58
EMFourMomBuilder::calculate
void calculate(DataVector< T > *egammas)
Definition: EMFourMomBuilder.h:27
xAOD::EgammaParameters::doubleSi
@ doubleSi
two tracks, both with Si hits
Definition: EgammaEnums.h:279
xAOD::photon
@ photon
Definition: TrackingPrimitives.h:199
xAOD::EgammaParameters::electron
@ electron
Definition: EgammaEnums.h:18
xAOD::EgammaHelpers::conversionType
xAOD::EgammaParameters::ConversionType conversionType(const xAOD::Photon *ph)
return the photon conversion type (see EgammaEnums)
Definition: PhotonxAODHelpers.cxx:26
TSU::T
unsigned long long T
Definition: L1TopoDataTypes.h:35