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

Add Bkg_TruthEvent to the list of known McEventCollection names in HepMcParticleLink.cxx

The pre-mixing jobs rename the output `McEventCollection` to `Bkg_TruthEvent` rather than `TruthEvent`.
`HepMcParticleLink` doesn't know that this is a possible collection name that it should check for so
all links are broken and the attempts to find the `McEventCollection` in the T->P converter methods
always return `nullptr`. This causes the above crash as there is currently no protection against
dereferencing a null `McEventCollection` pointer. Adding `Bkg_TruthEvent` to the list of known
`McEventCollection` names in `HepMcParticleLink.cxx` should fix ATLASSIM-4539.
parent 90fd25cf
No related branches found
No related tags found
Loading
Loading
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