File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -495,16 +495,6 @@ void Geant4ParticleHandler::endEvent(const G4Event* event) {
495495 h->end (event);
496496 setVertexEndpointBit ();
497497
498- // GPU-accelerated transport (e.g. AdePT with callUserTrackingAction=false) may produce hits
499- // with trackID=0 (from a dummy HostTrackData). Map such hits to the primary particle so that
500- // particleID(0) returns a valid result rather than printing an error during ROOT output.
501- if (m_equivalentTracks.find (0 ) == m_equivalentTracks.end ()) {
502- auto iprim = m_equivalentTracks.find (1 );
503- if (iprim != m_equivalentTracks.end ()) {
504- m_equivalentTracks[0 ] = iprim->second ;
505- }
506- }
507-
508498 // Now export the data to the final record.
509499 Geant4ParticleMap* part_map = context ()->event ().extension <Geant4ParticleMap>();
510500 part_map->adopt (m_particleMap, m_equivalentTracks);
You can’t perform that action at this time.
0 commit comments