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(),
339  &mcinfo);
340  }
341  info.genPart = mcinfo.genPart;
342  info.first = ret.first;
343  info.second = ret.second;
344  return info;
345 }
grepfile.info
info
Definition: grepfile.py:38
ret
T ret(T t)
Definition: rootspy.cxx:260
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:18
xAOD::EgammaParameters::electron
@ electron
Definition: EgammaEnums.h:18
MCTruthPartClassifier::Info
Definition: IMCTruthClassifier.h:49