From cb872d35cbc0932b4d0335a1e09643346cdc7a43 Mon Sep 17 00:00:00 2001 From: Andre Sailer <andre.philippe.sailer@cern.ch> Date: Fri, 4 Dec 2020 09:38:24 +0100 Subject: [PATCH] Gean4InputHandling: createG4Primary: add comment about setting mass --- DDG4/src/Geant4InputHandling.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/DDG4/src/Geant4InputHandling.cpp b/DDG4/src/Geant4InputHandling.cpp index f708b1ec9..43f3782d5 100644 --- a/DDG4/src/Geant4InputHandling.cpp +++ b/DDG4/src/Geant4InputHandling.cpp @@ -351,7 +351,9 @@ static G4PrimaryParticle* createG4Primary(const Geant4ParticleHandle p) { g4 = new G4PrimaryParticle(def, p->psx, p->psy, p->psz, p.energy()); g4->SetCharge(p.charge()); } - g4->SetMass(p->mass); + // The particle is fully defined with the 4-vector set above, setting the mass isn't necessary, not + // using the 4-vector, means the PDG mass is used, and the momentum is scaled if the mass is set here + // g4->SetMass(p->mass); return g4; } -- GitLab