Skip to content
Snippets Groups Projects

TruthUtils: add baryonNumber3 and baryonNumber helper functions

Merged John Derek Chapman requested to merge jchapman/athena:TruthUtils_baryonNumber into main

The baryon number is defined as:

B = (1/3)*( n_q - n_{qbar} )

where n_q⁠ is the number of quarks, and ⁠n_{qbar} is the number of antiquarks. By convention, squarks have the same quantum numbers as the corresponding quarks (modulo spin and R), so have baryon number 1/3.

The baryonNumber3() helper function returns an integer value (3*B), while baryonNumber() returns a floating point value equal to a third of this (c.f. the existing charge3() and charge() functions).

Tests for these functions will be added in a later MR.

Merge request reports

Pipeline #10062821 passed

Pipeline passed for a7848dc9 on jchapman:TruthUtils_baryonNumber

Approval is optional

Merged by Tadej NovakTadej Novak 1 month ago (Feb 3, 2025 10:24am UTC)

Merge details

  • Changes merged into main with 087df78d (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