The following are quick instructions on using decparser.py.
The script can be downloaded here. It will operate from any directory.
You need to get Python 2.4, and you need to pick up the hep.pdt package. Your default environment variables will probably not provide these. Ensure the following:
PATH
(c3python
will be located there for the 20050417_FULL
release or later);PYTHONPATH
includes /nfs/cor/user/ponyisi/pydir/lib/python2.4/site-packages/
. If you do not have PYTHONPATH
set up, just set it to that directory.
If you can execute the following:
% c3python Python 2.4 (#2, Mar 21 2005, 19:41:04) [GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from hep.pdt import default as particle_data >>>
and get no errors, you are set to go. (To get out of python, type Ctrl-D.)
A session might go like this:
% c3python decparser.py Hi! Welcome to the DECAY.DEC parser program. Blame ponyisi@lepp if any problems arise. (Cmd) readfile fixin 0.00014 gamma chi_b2(3P) HELAMP 2.4494897 0. 1.7320508 0. 1. 0. fixin 0.001365 Xu+ e- anti-nu_e PHOTOS VUB 4.8 1.29 0.22 20 ... [gunk snipped. DECAY.DEC is read in from $C3_DATA by default] ... (Cmd) dump D_s+ ------------- D_s+ ------------- 0.02 phi nu_e e+ 0.026 eta nu_e e+ 0.0089 eta' nu_e e+ 0.0027 anti-K0 nu_e e+ 0.001 anti-K*0 nu_e e+ ... [many more decay modes of D_s+ snipped. These are the decay modes listed in DECAY.DEC for this particle] ... (Cmd) final D_s+ 0.0650357298 K+ K- pi+ pi0 0.054394453 pi+ pi0 gamma gamma 0.050677 K+ K- pi+ 0.04482173832 pi+ pi+ pi- pi0 gamma ... [many many more final states of D_s+ decay snipped. Many photons since we decay the eta and eta'.] ... (Cmd) termpart ['pi0', 'K_S0'] (Cmd) termpart add eta (Cmd) final D_s+ 0.131 eta pi+ pi0 0.0650357298 K+ K- pi+ pi0 0.054188 eta pi- pi+ pi+ pi0 0.050677 K+ K- pi+ ... [more final states snipped. As you see we now stop at the eta instead of decaying it.] ... (Cmd) termpart del eta (Cmd) explain Parent particle? D_s+ Final state? K+ K- pi+ 0.0219681 Chain: D_s+ -> K+ anti-K*0 anti-K*0 -> K- pi+ 0.017676 Chain: D_s+ -> phi pi+ phi -> K+ K- 0.009 Chain: D_s+ -> K+ K- pi+ 0.00198 Chain: D_s+ -> f_0 pi+ f_0 -> K+ K- 5.29e-05 Chain: D_s+ -> f_2 pi+ f_2 -> K+ K- (Cmd) exit
Unfortunately the online help is not so useful at the moment.
readfile [decayfile]
dump particle
termpart [(add|del) particle]
pi0
) and K0S (K_0S
). The command "termpart" by itself responds with the current list. "termpart add particle" adds a particle to the list, and "termpart del particle" deletes it.final particle
explain