ATLAS Offline Software
Loading...
Searching...
No Matches
egammaTruthAssociationAlg.cxx File Reference

Go to the source code of this file.

Typedefs

using TruthLink_t = ElementLink<xAOD::TruthParticleContainer>
using ClusterLink_t = ElementLink<xAOD::CaloClusterContainer>
using ElectronLink_t = ElementLink<xAOD::ElectronContainer>
using PhotonLink_t = ElementLink<xAOD::PhotonContainer>

Functions

template<>
egammaTruthAssociationAlg::MCTruthInfo_t egammaTruthAssociationAlg::particleTruthClassifier< xAOD::Electron > (const EventContext &ctx, const xAOD::Electron *electron) const
 Template specialisation for electrons: second pass based on the cluster to find true photons.

Typedef Documentation

◆ ClusterLink_t

◆ ElectronLink_t

◆ PhotonLink_t

◆ TruthLink_t

Function Documentation

◆ egammaTruthAssociationAlg::particleTruthClassifier< xAOD::Electron >()

Template specialisation for electrons: second pass based on the cluster to find true photons.

Definition at line 331 of file egammaTruthAssociationAlg.cxx.

335{
336 MCTruthInfo_t info{};
337 auto ret = m_mcTruthClassifier->particleTruthClassifier_full(electron, ctx);
338 if (std::get<0>(ret) == MCTruthPartClassifier::Unknown &&
340 electron->caloCluster()) {
341 ATH_MSG_DEBUG("Trying cluster-based truth classification for electron");
342 ret = m_mcTruthClassifier->particleTruthClassifier_full(electron->caloCluster(),ctx);
343 }
344 std::tie(info.first, info.second, info.genPart, std::ignore) = ret;
345 return info;
346}
#define ATH_MSG_DEBUG(x)
bool isFwdElectron(const xAOD::Egamma *eg)
is the object a Fwd electron