ATLAS Offline Software
Loading...
Searching...
No Matches
TrackInformation.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
8
16
24
26{
27 if (m_barcode != HepMC::INVALID_PARTICLE_BARCODE) return m_barcode;
30 return m_barcode;
31 }
33}
34
36{
37 if (m_uniqueID != HepMC::INVALID_PARTICLE_BARCODE) return m_uniqueID;
40 m_uniqueID = HepMC::uniqueID(particle);
41 return m_uniqueID;
42 }
44}
45
47{
49 return m_currentGenParticle->status();
50 }
51 return 0;
52}
53
60
The generic ISF particle definition,.
Definition ISFParticle.h:42
virtual void SetBaseISFParticle(ISF::ISFParticle *) override
set the pointer to the ISFParticle corresponding to the current G4Track.
virtual int GetParticleStatus() const override
virtual int GetParticleUniqueID() const override
ISF::ISFParticle * m_theBaseISFParticle
HepMC::GenParticlePtr m_currentGenParticle
virtual int GetParticleBarcode() const override
virtual void SetCurrentGenParticle(HepMC::GenParticlePtr) override
set m_currentGenParticle, the pointer to the GenParticle corresponding to the current G4Track.
int barcode(const T *p)
Definition Barcode.h:16
int uniqueID(const T &p)
constexpr int UNDEFINED_ID
constexpr int INVALID_PARTICLE_BARCODE
GenParticle * GenParticlePtr
Definition GenParticle.h:37
const GenParticle * ConstGenParticlePtr
Definition GenParticle.h:38
STL namespace.