SHARE
TWEET

Untitled

a guest Dec 3rd, 2019 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Int_t BaryonPDG(Int_t N, Int_t Z, Int_t L, Int_t S, Float_t mass){
  2.   Int_t I = 0;
  3.   Int_t A = N + Z + L + S;
  4.   Int_t LS = L + S;
  5.   Int_t PDG = 0;
  6.  
  7.   if      (N == 1 && Z ==  0 && L == 0 && S == 0) PDG = 2112; // neutron
  8.   else if (N == 0 && Z ==  1 && L == 0 && S == 0) PDG = 2212; // proton
  9.   else if (N == 0 && Z ==  0 && L == 1 && S == 0) PDG = 3122; // lambda0
  10.   else PDG = 10*10E7 + LS*10E6 + Z*10E3 + A*10 + I;
  11.   return PDG;
  12. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top