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 69 of file EMFourMomBuilder.cxx.

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

◆ calculate() [3/3]

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

Definition at line 78 of file EMFourMomBuilder.cxx.

78  {
81  setFromTrkCluster(photon);
82  } else {
83  setFromCluster(photon);
84  }
85 }
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:200
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:21
TSU::T
unsigned long long T
Definition: L1TopoDataTypes.h:35