Skip to content
Snippets Groups Projects
Commit 09b70c0e authored by John Derek Chapman's avatar John Derek Chapman Committed by Frank Winklmeier
Browse files

Migrate Sensitive Detectors to use ID rather than barcode

Migrate Sensitive Detectors to use ID rather than barcode
parent 3fe8c9bf
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