![]() |
ATLAS Offline Software
|
#include <TrackHelper.h>
Public Member Functions | |
| TrackHelper (const G4Track *t) | |
| bool | IsPrimary () const |
| bool | IsRegeneratedPrimary () const |
| bool | IsRegisteredSecondary () const |
| bool | IsSecondary () const |
| int | GetBarcode () const |
| Return the truth barcode/id/status used for detector output. | |
| int | GetUniqueID () const |
| int | GetStatus () const |
| HepMC::GenParticlePtr | GetPrimaryGenParticle () |
| Return the primary truth particle associated with this track. | |
| HepMC::ConstGenParticlePtr | GetPrimaryGenParticle () const |
| TrackInformation * | GetTrackInformation () |
| Return concrete TrackInformation when callers need fields that are not part of the VTrackInformation interface. | |
| HepMcParticleLink | GenerateParticleLink () |
| Generates a new HepMcParticleLink object on the stack based on the generation-zero unique id, assuming that the link should point at the first GenEvent in the McEventCollection. | |
| HepMcParticleLink | GenerateParticleLink (IProxyDict *) |
Private Member Functions | |
| std::tuple< int, HepMcParticleLink::UniqueIDFlag > | particleIdentifierAndFlag () const |
Private Attributes | |
| VTrackInformation * | m_trackInfo {} |
Definition at line 20 of file TrackHelper.h.
| TrackHelper::TrackHelper | ( | const G4Track * | t | ) |
Definition at line 27 of file TrackHelper.cxx.
|
inline |
Generates a new HepMcParticleLink object on the stack based on the generation-zero unique id, assuming that the link should point at the first GenEvent in the McEventCollection.
Definition at line 75 of file TrackHelper.h.
|
inline |
Definition at line 84 of file TrackHelper.h.
| int TrackHelper::GetBarcode | ( | ) | const |
Return the truth barcode/id/status used for detector output.
TrackInformation can keep both the generation-zero particle and the current regenerated particle. Detector hit links and track records use the generation-zero particle to preserve legacy output attribution, falling back to the current particle for older TrackInformation objects. Barcode-only track info keeps using its stored barcode/id/status values.
Definition at line 57 of file TrackHelper.cxx.
| HepMC::GenParticlePtr TrackHelper::GetPrimaryGenParticle | ( | ) |
Return the primary truth particle associated with this track.
This is the primary-ancestor attribution stored on VTrackInformation. It may differ from the generation-zero/current particle used by the output-link helpers above, and is null when no track information or no primary attribution is attached.
Definition at line 84 of file TrackHelper.cxx.
| HepMC::ConstGenParticlePtr TrackHelper::GetPrimaryGenParticle | ( | ) | const |
Definition at line 89 of file TrackHelper.cxx.
| int TrackHelper::GetStatus | ( | ) | const |
Definition at line 75 of file TrackHelper.cxx.
| TrackInformation * TrackHelper::GetTrackInformation | ( | ) |
Return concrete TrackInformation when callers need fields that are not part of the VTrackInformation interface.
Definition at line 33 of file TrackHelper.cxx.
| int TrackHelper::GetUniqueID | ( | ) | const |
Definition at line 66 of file TrackHelper.cxx.
| bool TrackHelper::IsPrimary | ( | ) | const |
Definition at line 37 of file TrackHelper.cxx.
| bool TrackHelper::IsRegeneratedPrimary | ( | ) | const |
Definition at line 42 of file TrackHelper.cxx.
| bool TrackHelper::IsRegisteredSecondary | ( | ) | const |
Definition at line 47 of file TrackHelper.cxx.
| bool TrackHelper::IsSecondary | ( | ) | const |
Definition at line 52 of file TrackHelper.cxx.
|
inlineprivate |
Definition at line 70 of file TrackHelper.h.
|
private |
Definition at line 66 of file TrackHelper.h.