ATLAS Offline Software
Loading...
Searching...
No Matches
EgammaTruthxAODHelpers.h
Go to the documentation of this file.
1// Dear emacs, this is -*- c++ -*-
2
3/*
4 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
5*/
6
7// $Id: EgammaTruthxAODHelpers.h 768706 2016-08-18 23:55:25Z christos $
8#ifndef XAOD_EGAMMATRUTHXAODHELPERS_H
9#define XAOD_EGAMMATRUTHXAODHELPERS_H
10
17
18#include <cstddef>
19#include <set>
20
21namespace xAOD {
22
23 namespace EgammaHelpers{
24
27
29 const xAOD::Photon* getRecoPhoton(const xAOD::TruthParticle* particle);
30
32 bool isTrueConvertedPhoton(const xAOD::Photon* ph, float maxRadius = 800.);
33
35 bool isTrueConvertedPhoton(const xAOD::TruthParticle* truePh, float maxRadius = 800.);
36
48 std::vector<const xAOD::TruthParticle*>
50 const bool allTheWayBack = true);
51
56 const bool allTheWayBack = true);
57
62 const bool allTheWayBack = true);
63
65 std::vector<const xAOD::TruthParticle*>
67 const bool allTheWayBack = true);
68
69 }// EgammaHelpers
70
71} // namespace xAOD
72
73#endif // XAOD_EGAMMAXAODHELPERS_H
std::vector< const xAOD::TruthParticle * > getBkgElectronLineage(const xAOD::TruthParticle *truthel, const bool allTheWayBack=true)
Helper function for getting the truth lineage of an electron that is arising from material interactio...
bool isTrueConvertedPhoton(const xAOD::Photon *ph, float maxRadius=800.)
is the object matched to a true converted photon with R < maxRadius
const xAOD::TruthParticle * getBkgElectronMother(const xAOD::Electron *el, const bool allTheWayBack=true)
Helper wrapper function for calling the function above extracting the truth from a reco electron.
const xAOD::Photon * getRecoPhoton(const xAOD::TruthParticle *particle)
return the reco photon associated to the given TruthParticle (if any)
const xAOD::Electron * getRecoElectron(const xAOD::TruthParticle *)
return the reco electron associated to the given TruthParticle (if any)
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
TruthParticle_v1 TruthParticle
Typedef to implementation.
Photon_v1 Photon
Definition of the current "egamma version".
Electron_v1 Electron
Definition of the current "egamma version".