group Nucleus/ion functions

Nucleus/ion functions

Functions

Name
boolisNucleus(int pid)
Is this a nucleus PID?
intnuclZ(int pid)
intnuclA(int pid)
intnuclNlambda(int pid)

Functions Documentation

function isNucleus

inline bool isNucleus(
    int pid
)

Is this a nucleus PID?

This implements the 2006 Monte Carlo nuclear code scheme. Ion numbers are +/- 10LZZZAAAI. AAA is A - total baryon number ZZZ is Z - total charge L is the total number of strange quarks. I is the isomer number, with I=0 corresponding to the ground state.

function nuclZ

inline int nuclZ(
    int pid
)

Note: Ion numbers are +/- 10LZZZAAAI.

Get the atomic number (number of protons) in a nucleus/ion

function nuclA

inline int nuclA(
    int pid
)

Note: Ion numbers are +/- 10LZZZAAAI.

Get the atomic weight (number of nucleons) in a nucleus/ion

function nuclNlambda

inline int nuclNlambda(
    int pid
)

Note: Ion numbers are +/- 10LZZZAAAI.

If this is a nucleus (ion), get nLambda


Updated on 2022-08-07 at 20:17:17 +0100