Skip to content

Commit

Permalink
Merge pull request #39468 from cms-sw/revert-39467-revert-39440-Fix2x…
Browse files Browse the repository at this point in the history
…MIPBugInGen_Backporrt124X

[124X] Fix double counting in HepMC to G4 handoff
  • Loading branch information
cmsbuild authored Oct 18, 2022
2 parents a89c6b6 + f31ed89 commit fc7c9a9
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 fc7c9a9

Please sign in to comment.