ATLAS Offline Software
Loading...
Searching...
No Matches
xAODTruthHelpers.h
Go to the documentation of this file.
1// Dear emacs, this is -*- c++ -*-
2
3/*
4 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5*/
6
7#ifndef XAODTRUTH_XAODTRUTHHELPERS_H
8#define XAODTRUTH_XAODTRUTHHELPERS_H
9
10// Local include(s):
12
13namespace xAOD {
14
15 // Forward declaration(s):
16 class IParticle;
17
19 namespace TruthHelpers {
20
22 const TruthParticle* getTruthParticle( const xAOD::IParticle& p );
23
25 const TruthParticle* getFinalCopy( const xAOD::TruthParticle& particle );
26
29 int getParticleTruthType( const xAOD::IParticle& p );
30
33 int getParticleTruthOrigin( const xAOD::IParticle& p );
34
35 } // namespace TruthHelpers
36
37} // namespace xAOD
38
39#endif // XAODTRUTH_XAODTRUTHHELPERS_H
Class providing the definition of the 4-vector interface.
Dedicated namespace for the helper functions.
const xAOD::TruthParticle * getFinalCopy(const xAOD::TruthParticle &particle)
Return the final copy of the truth particle (or same particle if no copies done)
const xAOD::TruthParticle * getTruthParticle(const xAOD::IParticle &p)
Return the truthParticle associated to the given IParticle (if any)
int getParticleTruthType(const xAOD::IParticle &p)
Return the particle's truth type (as defined by the MC Truth Classifier)
int getParticleTruthOrigin(const xAOD::IParticle &p)
Return the particle's truth origin (as defined by the MC Truth Classifier)
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
TruthParticle_v1 TruthParticle
Typedef to implementation.