Skip to content
Snippets Groups Projects

TruthUtils: Improve SUSY::spin helper function. Add SUSY::spin2 helper function.

Merged John Derek Chapman requested to merge jchapman/athena:AtlasPID_spin_main into main
  • Fixed SUSY::spin to return a double rather than a bool.
  • Added SUSY::spin2 function to more easily deal with non-integer spins in testPID. (SUSY::spin now returns 1.0*spin2()/2.0)
  • Updated testPID unit test to check SUSY::spin2 rather than SUSY::spin.
  • Updated SUSY::spin2() to return the correct values (i.e. 2J) for fundamental SM particles, SM Hadrons, SUSY particles and other BSM particles.
  • Kept the output unchanged (i.e. 1) for nuclei - TODO fix this in a follow-up MR.

Currently unused, but, in the future, the primary usage of this function will be in calls to G4ParticleDefinition when defining new particles in Geant4 for SUSY/Exotics simulation. NB Although this function is currently in the SUSY namespace, we plan to simplify the code by dropping this intermediate namespace in a future MR.

Edited by John Derek Chapman

Merge request reports

Pipeline #8475656 passed

Pipeline passed for 016f4ff3 on jchapman:AtlasPID_spin_main

Approval is optional

Merged by Tadej NovakTadej Novak 5 months ago (Nov 8, 2024 5:05pm UTC)

Merge details

  • Changes merged into main with db3ce70e (commits were squashed).
  • Deleted the source branch.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading