ATLAS Offline Software
Typedefs | Functions
egammaTruthAssociationAlg.cxx File Reference
#include "egammaTruthAssociationAlg.h"
#include "StoreGate/ReadHandle.h"
#include "StoreGate/WriteDecorHandle.h"
#include "StoreGate/WriteHandle.h"
#include "xAODCaloEvent/CaloClusterContainer.h"
#include "xAODEgamma/ElectronContainer.h"
#include "xAODEgamma/PhotonContainer.h"
#include "xAODEgamma/EgammaxAODHelpers.h"
#include "xAODTruth/xAODTruthHelpers.h"
#include "TruthUtils/HepMCHelpers.h"
#include <memory>

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. More...
 

Typedef Documentation

◆ ClusterLink_t

Definition at line 53 of file egammaTruthAssociationAlg.cxx.

◆ ElectronLink_t

Definition at line 54 of file egammaTruthAssociationAlg.cxx.

◆ PhotonLink_t

Definition at line 55 of file egammaTruthAssociationAlg.cxx.

◆ TruthLink_t

Definition at line 52 of file egammaTruthAssociationAlg.cxx.

Function Documentation

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

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

Definition at line 326 of file egammaTruthAssociationAlg.cxx.

330 {
331  MCTruthInfo_t info{};
332  MCTruthPartClassifier::Info mcinfo(ctx);
333  auto ret = m_mcTruthClassifier->particleTruthClassifier(electron, &mcinfo);
334  if (ret.first == MCTruthPartClassifier::Unknown &&
336  electron->caloCluster()) {
337  ATH_MSG_DEBUG("Trying cluster-based truth classification for electron");
338  ret = m_mcTruthClassifier->particleTruthClassifier(electron->caloCluster(),&mcinfo);
339  }
340  info.genPart = mcinfo.genPart;
341  info.first = ret.first;
342  info.second = ret.second;
343  return info;
344 }
grepfile.info
info
Definition: grepfile.py:38
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
xAOD::EgammaHelpers::isFwdElectron
bool isFwdElectron(const xAOD::Egamma *eg)
is the object a Fwd electron
Definition: EgammaxAODHelpers.cxx:17
xAOD::EgammaParameters::electron
@ electron
Definition: EgammaEnums.h:18
MCTruthPartClassifier::Info
Definition: IMCTruthClassifier.h:49