ATLAS Offline Software
Loading...
Searching...
No Matches
PrimaryParticleInformation.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
7
11
17
19{
20 if (m_barcode != HepMC::INVALID_PARTICLE_BARCODE) return m_barcode;
21 if (m_theParticle) {
22 m_barcode = HepMC::barcode(m_theParticle);
23 return m_barcode;
24 }
25 return 0;
26}
27
29{
30 if (m_uniqueID != HepMC::INVALID_PARTICLE_BARCODE) return m_uniqueID;
31 if (m_theParticle) {
33 m_uniqueID = HepMC::uniqueID(particle);
34 return m_uniqueID;
35 }
36 return 0;
37}
38
The generic ISF particle definition,.
Definition ISFParticle.h:42
void SetISFParticle(ISF::ISFParticle *isp)
int barcode(const T *p)
Definition Barcode.h:15
int uniqueID(const T &p)
constexpr int INVALID_PARTICLE_BARCODE
HepMC3::GenParticlePtr GenParticlePtr
Definition GenParticle.h:19
HepMC3::ConstGenParticlePtr ConstGenParticlePtr
Definition GenParticle.h:20
STL namespace.