Skip to content

Commit

Permalink
Revert "Geant4InputHandling: collectPrimaries: use the mask to place …
Browse files Browse the repository at this point in the history
…the daughter vertices rather than size of the map"

This reverts commit 424f39c.
  • Loading branch information
andresailer committed Dec 15, 2023
1 parent 424f39c commit 9f77cc4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DDG4/src/Geant4InputHandling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,14 @@ static void collectPrimaries(Geant4PrimaryMap* pm,

if ( dau ) {
Geant4Vertex* dv = new Geant4Vertex(*particle_origine);
int vid = int(interaction->vertices.size());
PropertyMask reason(p->reason);
reason.set(G4PARTICLE_HAS_SECONDARIES);

dv->mask = mask;
dv->in.insert(p->id);

interaction->vertices[mask].emplace_back(dv) ;
interaction->vertices[vid].emplace_back(dv) ;

for(; dau; dau = dau->GetNext())
collectPrimaries(pm, interaction, dv, dau);
Expand Down

0 comments on commit 9f77cc4

Please sign in to comment.