Skip to content
Snippets Groups Projects
Commit a5ae9b13 authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

Merge branch 'SensitiveDetectorsToID_main' into 'main'

Migrate Sensitive Detectors to use ID rather than barcode

See merge request atlas/athena!69657
parents 191251f7 09b70c0e
No related branches found
No related tags found
No related merge requests found
/*
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
*/
#include "MCTruth/TrackHelper.h"
......@@ -47,6 +47,10 @@ int TrackHelper::GetStatus() const
HepMcParticleLink TrackHelper::GetParticleLink()
{
int barcode = this->GetBarcode();
return HepMcParticleLink(barcode, 0, HepMcParticleLink::IS_EVENTNUM, HepMcParticleLink::IS_BARCODE); // FIXME barcode-based syntax
// FIXME update to use HepMcParticleLink::IS_POSITION ATLASSIM-6999
#if defined(HEPMC3)
return HepMcParticleLink(this->GetUniqueID(), 0, HepMcParticleLink::IS_EVENTNUM, HepMcParticleLink::IS_ID);
#else
return HepMcParticleLink(this->GetBarcode(), 0, HepMcParticleLink::IS_EVENTNUM, HepMcParticleLink::IS_BARCODE);
#endif
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment