ATLAS Offline Software
TrackParticleTruth.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 /***************************************************************************
6 MC Truth object associated with an TrackParticle object
7 
8 ***************************************************************************
9 
10  ***************************************************************************/
11 #ifndef PARTICLETRUTH_TRACKPARTICLETRUTH_H
12 #define PARTICLETRUTH_TRACKPARTICLETRUTH_H
14 
16 
17  public:
21  TrackParticleTruth & operator=(const TrackParticleTruth& ) = default;
22  virtual ~TrackParticleTruth();
23  const HepMcParticleLink& particleLink() const;
24  float probability() const;
25 
26  private:
28  float m_probability; //probability of being m_barcode the truth information
29 };
30 
32 {
34 }
35 
36 inline float TrackParticleTruth::probability() const
37 {
38  return m_probability;
39 }
40 
41 #endif // PARTICLE_TRACKPARTICLETRUTH_H
42 
TrackParticleTruth::m_particleLink
HepMcParticleLink m_particleLink
Definition: TrackParticleTruth.h:32
TrackParticleTruth::TrackParticleTruth
TrackParticleTruth()
Definition: TrackParticleTruth.cxx:8
TrackParticleTruth::probability
float probability() const
Definition: TrackParticleTruth.h:36
TrackParticleTruth
Definition: TrackParticleTruth.h:15
TrackParticleTruth::operator=
TrackParticleTruth & operator=(const TrackParticleTruth &)=default
TrackParticleTruth::m_probability
float m_probability
Definition: TrackParticleTruth.h:33
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
TrackParticleTruth::particleLink
const HepMcParticleLink & particleLink() const
Definition: TrackParticleTruth.h:31
TrackParticleTruth::~TrackParticleTruth
virtual ~TrackParticleTruth()
Definition: TrackParticleTruth.cxx:21