Skip to content

Commit 51b204e

Browse files
authored
Merge pull request #46835 from ctdax/patch-2
12_4_X Fixed FullModelHadronicProcess.cc energy deposit model
2 parents 334629d + 3ec221f commit 51b204e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

SimG4Core/CustomPhysics/src/FullModelHadronicProcess.cc

+1-4
Original file line numberDiff line numberDiff line change
@@ -354,10 +354,7 @@ G4VParticleChange* FullModelHadronicProcess::PostStepDoIt(const G4Track& aTrack,
354354
G4LorentzVector p_g_cms = gluinoMomentum; //gluino in CMS BEFORE collision
355355
p_g_cms.boost(trafo_full_cms);
356356

357-
double e = cloud_p4_new.e() + gluinoMomentum.e();
358-
if (outgoingRhadron)
359-
e += outgoingRhadron->GetPDGMass();
360-
G4LorentzVector p4_new(cloud_p4_new.v() + gluinoMomentum.v(), e);
357+
G4LorentzVector p4_new(cloud_p4_new.v() + gluinoMomentum.v(), outgoingRhadron->GetPDGMass());
361358
// G4cout<<"P4-diff: "<<(p4_new-cloud_p4_new-gluinoMomentum)/GeV<<", magnitude: "
362359
// <<(p4_new-cloud_p4_new-gluinoMomentum).m()/MeV<<" MeV" <<G4endl;
363360

0 commit comments

Comments
 (0)