hi blast'ers
i just checked in a new class TPid, which acts just like an integer
(pid #), but with other methods Mass(), Charge(), SetGeneric(charge).
it also has named particles (kNullPid, kNeutral, kPositive, kNegative,
kElectron, kProton, kNeutron, kDeuteron, kGamma, kPionZero, kPionPos,
kPionNeg).
note that they are globals, and are not prefixed by TPid::
example:
#include "TPid.h"
TPid p=kElectron;
printf("%s: pid=%i q=%i\n",p.Name(),(int)p,p.Charge());
float nu=.6, q2=2*kProton.Mass()*nu; //GeV
--chris
This archive was generated by hypermail 2.1.2 : Mon Feb 24 2014 - 14:07:28 EST