TruthUtils: Improve SUSY::spin helper function. Add SUSY::spin2 helper function.
- 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 returns1.0*spin2()/2.0
) - Updated testPID unit test to check
SUSY::spin2
rather thanSUSY::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.
Merge request reports
Activity
added 1 commit
- db3e08e8 - AtlasPID: Improve SUSY::spin helper function. Add SUSY::spin2 helper function.
added 1 commit
- 7f40eb59 - AtlasPID: Improve SUSY::spin helper function. Add SUSY::spin2 helper function.
added 1 commit
- 016f4ff3 - AtlasPID: Improve SUSY::spin helper function. Add SUSY::spin2 helper function.
mentioned in merge request !75683 (merged)
added Generators analysis-review-required main review-pending-level-1 labels
CI Result SUCCESS (hash 016f4ff3)Athena AthSimulation AthGeneration AnalysisBase AthAnalysis externals cmake make tests Full details available on this CI monitor view. Check the JIRA CI status board for known problems
Athena: number of compilation errors 0, warnings 0
AthSimulation: number of compilation errors 0, warnings 0
AthGeneration: number of compilation errors 0, warnings 0
AnalysisBase: number of compilation errors 0, warnings 0
AthAnalysis: number of compilation errors 0, warnings 0
For experts only: Jenkins output (remote access info)removed review-pending-level-1 label
added review-approved label
removed analysis-review-required label
added analysis-review-approved label
mentioned in commit db3ce70e