Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed energy of R-Hadron cloud in energy deposit model #46728

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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