Skip to content
Snippets Groups Projects

Update HepMcParticleLink to handle creation with GenParticle::id() as well as barcodes

Merged John Derek Chapman requested to merge jchapman/athena:HMPL_Barcode2_main into main
3 files
+ 11
8
Compare changes
  • Side-by-side
  • Inline
Files
3
/*
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
*/
///////////////////////////////////////////////////////////////////
@@ -286,7 +286,7 @@ TruthParticleCnvTool::convert( const McEventCollection * mcCollection,
ATH_MSG_ERROR("TruthParticle is not wrapping the GenParticle : "
<< hepMcPart << " !!");
}
HepMcParticleLink mcLink( bc, genEventIndex, EBC_MAINEVCOLL, HepMcParticleLink::IS_POSITION, sg ); // FIXME assuming that we are using the hard-scatter McEventCollection - would need to pass this info as an argument to the convert function.
HepMcParticleLink mcLink( bc, genEventIndex, EBC_MAINEVCOLL, HepMcParticleLink::IS_POSITION, HepMcParticleLink::IS_BARCODE, sg ); // FIXME assuming that we are using the hard-scatter McEventCollection - would need to pass this info as an argument to the convert function. FIXME barcode-based
bcToMcPart[ mcLink.compress() ] = mcPart;
}//> end loop over particles
Loading