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
17
26
28{
29 if (m_barcode != HepMC::INVALID_PARTICLE_BARCODE) return m_barcode;
32 return m_barcode;
33 }
35}
36
38{
39 if (m_uniqueID != HepMC::INVALID_PARTICLE_BARCODE) return m_uniqueID;
42 m_uniqueID = HepMC::uniqueID(particle);
43 return m_uniqueID;
44 }
46}
47
49{
51 return m_currentGenParticle->status();
52 }
53 return 0;
54}
55
62
67
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.
HepMC::GenParticlePtr m_generationZeroGenParticle
virtual void SetGenerationZeroGenParticle(HepMC::GenParticlePtr) override
set m_generationZeroGenParticle, the pointer to the simulation truth particle before any regeneration...
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:15
int uniqueID(const T &p)
constexpr int UNDEFINED_ID
constexpr int INVALID_PARTICLE_BARCODE
HepMC3::GenParticlePtr GenParticlePtr
Definition GenParticle.h:19
HepMC3::ConstGenParticlePtr ConstGenParticlePtr
Definition GenParticle.h:20
STL namespace.