Skip to content

Commit

Permalink
Merge pull request #39439 from tvami/Fix2xMIPBugInGen_Backporrt125X
Browse files Browse the repository at this point in the history
[125X] Fix double counting in HepMC to G4 handoff
  • Loading branch information
cmsbuild authored Oct 18, 2022
2 parents 6562b15 + 4eb9a14 commit 434dad1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions SimG4Core/Generators/src/Generator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,7 @@ void Generator::particleAssignDaughters(G4PrimaryParticle *g4p, HepMC::GenPartic
if (verbose > 2)
LogDebug("SimG4CoreGenerator") << "Assigning a " << (*vpdec)->pdg_id() << " as daughter of a " << vp->pdg_id();

if (((*vpdec)->status() == 2 || ((*vpdec)->status() == 23 && std::abs(vp->pdg_id()) == 1000015)) &&
(*vpdec)->end_vertex() != nullptr) {
if (((*vpdec)->status() == 2 || (*vpdec)->status() > 3) && (*vpdec)->end_vertex() != nullptr) {
double x2 = (*vpdec)->end_vertex()->position().x();
double y2 = (*vpdec)->end_vertex()->position().y();
double z2 = (*vpdec)->end_vertex()->position().z();
Expand Down

0 comments on commit 434dad1

Please sign in to comment.