Skip to content
Snippets Groups Projects
Commit de7e6198 authored by John Chapman's avatar John Chapman
Browse files

FPGATrackSim changes

parent f931d5ea
No related branches found
No related tags found
No related merge requests found
......@@ -174,10 +174,10 @@ StatusCode FPGATrackSimDataPrepAlg::execute()
{
for (const FPGATrackSimTruthTrack& fpgaTruthTrack : truthtracks) // loop over FPGA truth tracks
{
if (fpgaTruthTrack.getBarcode() == static_cast<HepMcParticleLink::barcode_type>(truthParticle->barcode()))
if (fpgaTruthTrack.getBarcode() == static_cast<HepMcParticleLink::barcode_type>(HepMC::uniqueID(truthParticle))) // TODO FIXME need to check FPGATrackSimTruthTrack can handle uniqueIDs...
{
truthLinkVec->push_back(new xAODTruthParticleLink(HepMcParticleLink(truthParticle->barcode(), 0,
HepMcParticleLink::IS_POSITION, HepMcParticleLink::IS_BARCODE), eltp));
truthLinkVec->push_back(new xAODTruthParticleLink(HepMcParticleLink(HepMC::uniqueID(truthParticle), 0,
HepMcParticleLink::IS_POSITION, HepMcParticleLink::IS_ID), eltp));
ATH_MSG_VERBOSE("Truth link added");
break;
}
......
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