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

Update transient HepMcParticleLink to use unsigned int rather than unsigned...

Update transient HepMcParticleLink to use unsigned int rather than unsigned short to store the eventIndex

This change should allow the HepMcParticleLink to accomodate all allowed values of `GenEvent::event_number`
i.e. up to `INT_MAX` = 21^31 -1 = 2147483647.

A new persistent class is not being added at this time, but existing workarounds allow event numbers larger
than max unsigned short to be correctly recovered for links pointing to the first event in the McEventCollection.
In the standard production workflow, pile-up background event numbers are reset to to numbers in the range
0 to 2^15 -1, which should be OK up to <mu> values of 840 with current settings.

A new persistent version of HepMcParticleLink will be introduced after the migration to HepMC3.
parent 8abe6620
No related branches found
No related tags found
Loading
Showing with 78 additions and 16 deletions
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