The sim::ParticleList class maintains a set of integers that holds the trackIDs of all the primary particles in an event. When sim::ParticleList::clear() is called, the other class members are cleared, but the set of primary particles is not: