Skip to content

Commit

Permalink
Fixed FullModelHadronicProcess.cc energy deposit model
Browse files Browse the repository at this point in the history
A 2015 commit to FullModelHadronicProcess.cc (0f7fe9f#diff-d97c0182cf0b0204534930064c29ace096341c2b2a33ede9d1f1aac75be22d91) introduced a bug to the energy deposit model. This bug incorrectly deposited energy values close to the BSM particles mass into the simulated detector.
  • Loading branch information
ctdax authored Nov 8, 2024
1 parent 1bd97a6 commit 0ade249
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions SimG4Core/CustomPhysics/src/FullModelHadronicProcess.cc
Original file line number Diff line number Diff line change
Expand Up @@ -354,10 +354,7 @@ G4VParticleChange* FullModelHadronicProcess::PostStepDoIt(const G4Track& aTrack,
G4LorentzVector p_g_cms = gluinoMomentum; //gluino in CMS BEFORE collision
p_g_cms.boost(trafo_full_cms);

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

Expand Down

0 comments on commit 0ade249

Please sign in to comment.