pdg 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE ADDED
@@ -0,0 +1,5 @@
1
+ Copyright (c) 2012, Alex Pearce <alex@alexpearce.me>
2
+
3
+ Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
4
+
5
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,105 @@
1
+ PDG - A Particle Properties Database in Ruby
2
+ ============================================
3
+
4
+ Essentially a port of [PyPDT](http://pypi.python.org/pypi/PyPDT), PDG is a Ruby gem for accessing particle properties, as defined by the [Particle Data Group](http://pdg.lbl.gov/).
5
+
6
+ The units are millimetres (mm) for distance, picoseconds (ps) for time, and gigaelectronvolts (GeV) for energy.
7
+
8
+ An example usage:
9
+
10
+ ```ruby
11
+ > require "pdg"
12
+ > PDG[4122]
13
+ => Lambda(c): ID=4122, m=2.28646 GeV, q=1.0, width=3.3e-12 GeV
14
+ # Or alternatively
15
+ > particles = PDG.particles
16
+ > lc = particles[4122]
17
+ => Lambda(c): ID=4122, m=2.28646 GeV, q=1.0, width=3.3e-12 GeV
18
+ > lc.mass
19
+ => 2.28646
20
+ > lc.width
21
+ => 3.3e-12
22
+ > lc.mean_distance(20)
23
+ => 0.5196155433341929
24
+ > puts particles.pretty_print(4122)
25
+ +------+------+-------------+--------+-------+----------+
26
+ | id | name | mass | charge | width | lifetime |
27
+ +------+------+-------------+--------+-------+----------+
28
+ | 2212 | p | 0.938272046 | 1.0 | 0.0 | 0.0 |
29
+ +------+------+-------------+--------+-------+----------+
30
+ > puts particles.pretty_print(1..100)
31
+ +----+-------+----------------+---------------------+---------------+------------------------+
32
+ | id | name | mass | charge | width | lifetime |
33
+ +----+-------+----------------+---------------------+---------------+------------------------+
34
+ | 1 | d | 0.0048 | -0.3333333333333333 | 0.0 | 0.0 |
35
+ | 2 | u | 0.0023 | 0.6666666666666666 | 0.0 | 0.0 |
36
+ | 3 | s | 0.095 | -0.3333333333333333 | 0.0 | 0.0 |
37
+ | 4 | c | 1.275 | 0.6666666666666666 | 0.0 | 0.0 |
38
+ | 5 | b | 4.18 | -0.3333333333333333 | 0.0 | 0.0 |
39
+ | 6 | t | 173.5 | 0.6666666666666666 | 2.0 | 3.29105965e-13 |
40
+ | 11 | e | 0.000510998928 | -1.0 | 0.0 | 0.0 |
41
+ | 13 | mu | 0.105658372 | -1.0 | 2.9959848e-19 | 2196980.2049730024 |
42
+ | 15 | tau | 1.77682 | -1.0 | 2.265e-12 | 0.290601293598234 |
43
+ | 21 | g | 0.0 | 0.0 | 0.0 | 0.0 |
44
+ | 22 | gamma | 0.0 | 0.0 | 0.0 | 0.0 |
45
+ | 23 | Z | 91.1876 | 0.0 | 2.4952 | 2.6379125120230843e-13 |
46
+ | 24 | W | 80.385 | 1.0 | 2.085 | 3.1568917505995203e-13 |
47
+ +----+-------+----------------+---------------------+---------------+------------------------+
48
+ ```
49
+
50
+ All available particle properties are given as instance methods in the [`Particle` class](https://github.com/alexpearce/pdg/blob/master/lib/pdg/particle.rb).
51
+
52
+ The `ParticleTable` class, which is returned by `PDG.particles`, inherits from `Hash` and so has all of its parent's methods, including an ability to select objects with a `Range`.
53
+
54
+ ```ruby
55
+ > particles = PDG.particles
56
+ > particles[1..100].length
57
+ => 13
58
+ ```
59
+
60
+ Alternative Data Sources
61
+ ------------------------
62
+
63
+ Note that not all particles are included by default. This is due to them not being present in the PDG-provided [source data](http://pdg.lbl.gov/2012/mcdata/mass_width_2012.mcd) (the PDG have been contacted about this).
64
+ There is an [older version](http://pdg.lbl.gov/rpp/mcdata/mass_width_02.mc) available with more particles but outdated properties. This can be used as an alternative source file.
65
+
66
+ ```
67
+ $ irb
68
+
69
+ > require "pdg"
70
+ > PDG[12]
71
+ => nil
72
+ > exit
73
+
74
+ $ wget http://pdg.lbl.gov/rpp/mcdata/mass_width_02.mc
75
+ $ irb
76
+
77
+ > require "pdg"
78
+ > particles = PDG.particles("mass_width_02.mc")
79
+ > PDG[12]
80
+ =>
81
+ ```
82
+
83
+ Testing
84
+ -------
85
+
86
+ You can run the tests on the gem source.
87
+
88
+ ```bash
89
+ $ git clone git://github.com/alexpearce/pdg.git
90
+ $ cd pdg
91
+ $ bundle install --path=vendor/bundle
92
+ $ rake
93
+ ```
94
+
95
+ Contributions
96
+ -------------
97
+
98
+ This gem is very much in its infancy. If there are features you would like to see, or incorrect implementations that need fixing, do [submit an issue](https://github.com/alexpearce/pdg/issues) or email me.
99
+
100
+ Other
101
+ -----
102
+
103
+ [ISC licensed](https://github.com/alexpearce/pdg/blob/master/LICENSE).
104
+
105
+ [![Build Status](https://secure.travis-ci.org/alexpearce/pdg.png?branch=master)](https://travis-ci.org/alexpearce/pdg)
data/lib/pdg.rb ADDED
@@ -0,0 +1,42 @@
1
+ require "pdg/particle_table"
2
+ require "pdg/particle"
3
+
4
+ require "hirb"
5
+
6
+ module PDG
7
+ # Reduced Planck's constant in GeV ps
8
+ HBAR = 6.5821193E-13
9
+ # Speed of light in mm ps^-1
10
+ # "C" is a little short for a variable name...
11
+ SPEED_OF_LIGHT = 2.9979246E-01
12
+ # Path to PDG MC table
13
+ DEFAULT_DATA = File.expand_path "../pdg/mass_width_2012.mcd", __FILE__
14
+
15
+ class << self
16
+ # Returns a ParticleTable object
17
+ def particles(path = DEFAULT_DATA)
18
+ @@particles ||= ParticleTable.new path
19
+ end
20
+
21
+ # Convenience method
22
+ # Returns the particle with `id`
23
+ def [](id)
24
+ particles[id]
25
+ end
26
+
27
+ def pretty_print(objs, properties)
28
+ Hirb::Helpers::AutoTable.render objs, {:fields => properties}
29
+ end
30
+
31
+ # Ruby 1.8:
32
+ # "Hello"[0] => 72
33
+ # Ruby 1.9:
34
+ # "Hello"[0] => "H"
35
+ # assuming non-multibyte strings.
36
+ # This functions returns the ASCII representation of the `idx`th byte of the string
37
+ def single_character(str, idx = 0)
38
+ substr = str[idx]
39
+ substr.class == Fixnum ? substr.chr : substr
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,3 @@
1
+ module PDG
2
+ class LorentzViolation < StandardError; end
3
+ end
@@ -0,0 +1,417 @@
1
+ * MASSES, WIDTHS, AND MC ID NUMBERS FROM 2012 EDITION OF RPP
2
+ *
3
+ * The following values were generated on 26-Jun-2012 by the Berkeley Particle
4
+ * Data Group from the Review of Particle Physics database and are intended
5
+ * for use in Monte Carlo programs.
6
+ *
7
+ * For questions regarding distribution or content of this file, contact
8
+ * the Particle Data Group at pdg@lbl.gov.
9
+ *
10
+ * To process the images in this file:
11
+ * 1) ignore documentation lines that begin with an asterisk
12
+ * 2) in a FORTRAN program, process data lines with
13
+ * FORMAT (BN, A1, 4I8, 1X, E15.0, 2(1X, E8.0), 1X, A21)
14
+ * 3) column 1 contains either "M" or "W" indicating mass or width
15
+ * 2 - 9 \ Monte Carlo particle numbers as described in the "Review of
16
+ * 10 - 17 | Particle Physics". Charge states appear, as appropriate,
17
+ * 18 - 25 | from left-to-right in the order -, 0, +, ++.
18
+ * 26 - 33 /
19
+ * 34 blank
20
+ * 35 - 49 central value of the mass or width (double precision)
21
+ * 50 blank
22
+ * 51 - 58 positive error
23
+ * 59 blank
24
+ * 60 - 67 negative error
25
+ * 68 blank
26
+ * 69 - 89 particle name left-justified in the field and
27
+ * charge states right-justified in the field.
28
+ * This field is for ease of visual examination of the file and
29
+ * should not be taken as a standardized presentation of
30
+ * particle names.
31
+ *
32
+ * Particle ID(s) Value (GeV) Errors (GeV) Name Charges
33
+ M 21 0.E+00 +0.0E+00 -0.0E+00 g 0
34
+ W 21 0.E+00 +0.0E+00 -0.0E+00 g 0
35
+ M 22 0.E+00 +0.0E+00 -0.0E+00 gamma 0
36
+ W 22 0.E+00 +0.0E+00 -0.0E+00 gamma 0
37
+ M 24 8.0385E+01 +1.5E-02 -1.5E-02 W +
38
+ W 24 2.085E+00 +4.2E-02 -4.2E-02 W +
39
+ M 23 9.11876E+01 +2.1E-03 -2.1E-03 Z 0
40
+ W 23 2.4952E+00 +2.3E-03 -2.3E-03 Z 0
41
+ W 11 0.E+00 +0.0E+00 -0.0E+00 e -
42
+ M 11 5.10998928E-04 +1.1E-11 -1.1E-11 e -
43
+ M 13 1.05658372E-01 +3.5E-09 -3.5E-09 mu -
44
+ W 13 2.9959848E-19 +3.0E-25 -3.0E-25 mu -
45
+ M 15 1.77682E+00 +1.6E-04 -1.6E-04 tau -
46
+ W 15 2.265E-12 +8.0E-15 -8.0E-15 tau -
47
+ M 2 2.3E-03 +0.7E-03 -0.5E-03 u +2/3
48
+ M 1 4.8E-03 +0.7E-03 -0.3E-03 d -1/3
49
+ M 3 9.5E-02 +5.0E-03 -5.0E-03 s -1/3
50
+ M 4 1.275E+00 +2.5E-02 -2.5E-02 c +2/3
51
+ M 5 4.18E+00 +3.0E-02 -3.0E-02 b -1/3
52
+ M 6 1.735E+02 +1.0E+00 -1.0E+00 t +2/3
53
+ W 6 2.0E+00 +7.0E-01 -6.0E-01 t +2/3
54
+ M 211 1.3957018E-01 +3.5E-07 -3.5E-07 pi +
55
+ W 211 2.5284E-17 +5.0E-21 -5.0E-21 pi +
56
+ M 111 1.349766E-01 +6.0E-07 -6.0E-07 pi 0
57
+ W 111 7.73E-09 +1.7E-10 -1.7E-10 pi 0
58
+ M 221 5.47853E-01 +2.4E-05 -2.4E-05 eta 0
59
+ W 221 1.30E-06 +7.0E-08 -7.0E-08 eta 0
60
+ M 9000221 4.75E-01 +7.5E-02 -7.5E-02 f(0)(500) 0
61
+ W 9000221 5.50E-01 +1.5E-01 -1.5E-01 f(0)(500) 0
62
+ M 113 213 7.7549E-01 +3.4E-04 -3.4E-04 rho(770) 0,+
63
+ W 113 213 1.491E-01 +8.0E-04 -8.0E-04 rho(770) 0,+
64
+ M 223 7.8265E-01 +1.2E-04 -1.2E-04 omega(782) 0
65
+ W 223 8.49E-03 +8.0E-05 -8.0E-05 omega(782) 0
66
+ M 331 9.5778E-01 +6.0E-05 -6.0E-05 eta'(958) 0
67
+ W 331 1.99E-04 +9.0E-06 -9.0E-06 eta'(958) 0
68
+ M 9010221 9.90E-01 +2.0E-02 -2.0E-02 f(0)(980) 0
69
+ W 9010221 7.0E-02 +3.0E-02 -3.0E-02 f(0)(980) 0
70
+ M 9000111 9000211 9.80E-01 +2.0E-02 -2.0E-02 a(0)(980) 0,+
71
+ W 9000111 9000211 7.5E-02 +2.5E-02 -2.5E-02 a(0)(980) 0,+
72
+ M 333 1.019455E+00 +2.0E-05 -2.0E-05 phi(1020) 0
73
+ W 333 4.26E-03 +4.0E-05 -4.0E-05 phi(1020) 0
74
+ M 10223 1.170E+00 +2.0E-02 -2.0E-02 h(1)(1170) 0
75
+ W 10223 3.6E-01 +4.0E-02 -4.0E-02 h(1)(1170) 0
76
+ M 10113 10213 1.2295E+00 +3.2E-03 -3.2E-03 b(1)(1235) 0,+
77
+ W 10113 10213 1.42E-01 +9.0E-03 -9.0E-03 b(1)(1235) 0,+
78
+ M 20113 20213 1.23E+00 +4.0E-02 -4.0E-02 a(1)(1260) 0,+
79
+ W 20113 20213 4.2E-01 +1.8E-01 -1.8E-01 a(1)(1260) 0,+
80
+ M 225 1.2751E+00 +1.2E-03 -1.2E-03 f(2)(1270) 0
81
+ W 225 1.851E-01 +2.9E-03 -2.4E-03 f(2)(1270) 0
82
+ M 20223 1.2821E+00 +6.0E-04 -6.0E-04 f(1)(1285) 0
83
+ W 20223 2.42E-02 +1.1E-03 -1.1E-03 f(1)(1285) 0
84
+ M 100221 1.294E+00 +4.0E-03 -4.0E-03 eta(1295) 0
85
+ W 100221 5.5E-02 +5.0E-03 -5.0E-03 eta(1295) 0
86
+ M 100111 100211 1.30E+00 +1.0E-01 -1.0E-01 pi(1300) 0,+
87
+ W 100111 100211 4.0E-01 +2.0E-01 -2.0E-01 pi(1300) 0,+
88
+ M 115 215 1.3183E+00 +5.0E-04 -6.0E-04 a(2)(1320) 0,+
89
+ W 115 215 1.07E-01 +5.0E-03 -5.0E-03 a(2)(1320) 0,+
90
+ M 30221 1.35E+00 +1.5E-01 -1.5E-01 f(0)(1370) 0
91
+ W 30221 3.5E-01 +1.5E-01 -1.5E-01 f(0)(1370) 0
92
+ M 9000113 9000213 1.354E+00 +2.5E-02 -2.5E-02 pi(1)(1400) 0,+
93
+ W 9000113 9000213 3.30E-01 +3.5E-02 -3.5E-02 pi(1)(1400) 0,+
94
+ M 9020221 1.4089E+00 +2.4E-03 -2.4E-03 eta(1405) 0
95
+ W 9020221 5.11E-02 +3.2E-03 -3.2E-03 eta(1405) 0
96
+ M 20333 1.4264E+00 +9.0E-04 -9.0E-04 f(1)(1420) 0
97
+ W 20333 5.49E-02 +2.6E-03 -2.6E-03 f(1)(1420) 0
98
+ M 100223 1.425E+00 +2.5E-02 -2.5E-02 omega(1420) 0
99
+ W 100223 2.15E-01 +3.5E-02 -3.5E-02 omega(1420) 0
100
+ M 10111 10211 1.474E+00 +1.9E-02 -1.9E-02 a(0)(1450) 0,+
101
+ W 10111 10211 2.65E-01 +1.3E-02 -1.3E-02 a(0)(1450) 0,+
102
+ M 100113 100213 1.465E+00 +2.5E-02 -2.5E-02 rho(1450) 0,+
103
+ W 100113 100213 4.0E-01 +6.0E-02 -6.0E-02 rho(1450) 0,+
104
+ M 100331 1.476E+00 +4.0E-03 -4.0E-03 eta(1475) 0
105
+ W 100331 8.5E-02 +9.0E-03 -9.0E-03 eta(1475) 0
106
+ M 9030221 1.505E+00 +6.0E-03 -6.0E-03 f(0)(1500) 0
107
+ W 9030221 1.09E-01 +7.0E-03 -7.0E-03 f(0)(1500) 0
108
+ M 335 1.525E+00 +5.0E-03 -5.0E-03 f(2)'(1525) 0
109
+ W 335 7.3E-02 +6.0E-03 -5.0E-03 f(2)'(1525) 0
110
+ M 9010113 9010213 1.662E+00 +8.0E-03 -9.0E-03 pi(1)(1600) 0,+
111
+ W 9010113 9010213 2.4E-01 +4.0E-02 -4.0E-02 pi(1)(1600) 0,+
112
+ M 10225 1.617E+00 +5.0E-03 -5.0E-03 eta(2)(1645) 0
113
+ W 10225 1.81E-01 +1.1E-02 -1.1E-02 eta(2)(1645) 0
114
+ M 30223 1.670E+00 +3.0E-02 -3.0E-02 omega(1650) 0
115
+ W 30223 3.15E-01 +3.5E-02 -3.5E-02 omega(1650) 0
116
+ M 227 1.667E+00 +4.0E-03 -4.0E-03 omega(3)(1670) 0
117
+ W 227 1.68E-01 +1.0E-02 -1.0E-02 omega(3)(1670) 0
118
+ M 10115 10215 1.6722E+00 +3.0E-03 -3.0E-03 pi(2)(1670) 0,+
119
+ W 10115 10215 2.60E-01 +9.0E-03 -9.0E-03 pi(2)(1670) 0,+
120
+ M 100333 1.680E+00 +2.0E-02 -2.0E-02 phi(1680) 0
121
+ W 100333 1.5E-01 +5.0E-02 -5.0E-02 phi(1680) 0
122
+ M 117 217 1.6888E+00 +2.1E-03 -2.1E-03 rho(3)(1690) 0,+
123
+ W 117 217 1.61E-01 +1.0E-02 -1.0E-02 rho(3)(1690) 0,+
124
+ M 30113 30213 1.720E+00 +2.0E-02 -2.0E-02 rho(1700) 0,+
125
+ W 30113 30213 2.5E-01 +1.0E-01 -1.0E-01 rho(1700) 0,+
126
+ M 10331 1.720E+00 +6.0E-03 -6.0E-03 f(0)(1710) 0
127
+ W 10331 1.35E-01 +8.0E-03 -8.0E-03 f(0)(1710) 0
128
+ M 9010111 9010211 1.812E+00 +1.2E-02 -1.2E-02 pi(1800) 0,+
129
+ W 9010111 9010211 2.08E-01 +1.2E-02 -1.2E-02 pi(1800) 0,+
130
+ M 337 1.854E+00 +7.0E-03 -7.0E-03 phi(3)(1850) 0
131
+ W 337 8.7E-02 +2.8E-02 -2.3E-02 phi(3)(1850) 0
132
+ M 9050225 1.944E+00 +1.2E-02 -1.2E-02 f(2)(1950) 0
133
+ W 9050225 4.72E-01 +1.8E-02 -1.8E-02 f(2)(1950) 0
134
+ M 9060225 2.01E+00 +6.0E-02 -8.0E-02 f(2)(2010) 0
135
+ W 9060225 2.0E-01 +6.0E-02 -6.0E-02 f(2)(2010) 0
136
+ M 119 219 1.996E+00 +1.0E-02 -9.0E-03 a(4)(2040) 0,+
137
+ W 119 219 2.55E-01 +2.8E-02 -2.4E-02 a(4)(2040) 0,+
138
+ M 229 2.018E+00 +1.1E-02 -1.1E-02 f(4)(2050) 0
139
+ W 229 2.37E-01 +1.8E-02 -1.8E-02 f(4)(2050) 0
140
+ M 9080225 2.297E+00 +2.8E-02 -2.8E-02 f(2)(2300) 0
141
+ W 9080225 1.5E-01 +4.0E-02 -4.0E-02 f(2)(2300) 0
142
+ M 9090225 2.34E+00 +6.0E-02 -6.0E-02 f(2)(2340) 0
143
+ W 9090225 3.2E-01 +8.0E-02 -7.0E-02 f(2)(2340) 0
144
+ M 321 4.93677E-01 +1.6E-05 -1.6E-05 K +
145
+ W 321 5.317E-17 +9.0E-20 -9.0E-20 K +
146
+ M 311 4.97614E-01 +2.4E-05 -2.4E-05 K 0
147
+ M 310 4.97614E-01 +2.4E-05 -2.4E-05 K(S) 0
148
+ M 130 4.97614E-01 +2.4E-05 -2.4E-05 K(L) 0
149
+ W 310 7.3508E-15 +2.9E-18 -2.9E-18 K(S) 0
150
+ W 130 1.287E-17 +5.0E-20 -5.0E-20 K(L) 0
151
+ M 323 8.9166E-01 +2.6E-04 -2.6E-04 K*(892) +
152
+ M 313 8.9594E-01 +2.2E-04 -2.2E-04 K*(892) 0
153
+ W 323 5.08E-02 +9.0E-04 -9.0E-04 K*(892) +
154
+ W 313 4.87E-02 +8.0E-04 -8.0E-04 K*(892) 0
155
+ M 10313 10323 1.272E+00 +7.0E-03 -7.0E-03 K(1)(1270) 0,+
156
+ W 10313 10323 9.0E-02 +2.0E-02 -2.0E-02 K(1)(1270) 0,+
157
+ M 20313 20323 1.403E+00 +7.0E-03 -7.0E-03 K(1)(1400) 0,+
158
+ W 20313 20323 1.74E-01 +1.3E-02 -1.3E-02 K(1)(1400) 0,+
159
+ M 100313 100323 1.414E+00 +1.5E-02 -1.5E-02 K*(1410) 0,+
160
+ W 100313 100323 2.32E-01 +2.1E-02 -2.1E-02 K*(1410) 0,+
161
+ M 10311 10321 1.43E+00 +5.0E-02 -5.0E-02 K(0)*(1430) 0,+
162
+ W 10311 10321 2.7E-01 +8.0E-02 -8.0E-02 K(0)*(1430) 0,+
163
+ M 325 1.4256E+00 +1.5E-03 -1.5E-03 K(2)*(1430) +
164
+ M 315 1.4324E+00 +1.3E-03 -1.3E-03 K(2)*(1430) 0
165
+ W 325 9.85E-02 +2.7E-03 -2.7E-03 K(2)*(1430) +
166
+ W 315 1.09E-01 +5.0E-03 -5.0E-03 K(2)*(1430) 0
167
+ M 30313 30323 1.717E+00 +2.7E-02 -2.7E-02 K*(1680) 0,+
168
+ W 30313 30323 3.2E-01 +1.1E-01 -1.1E-01 K*(1680) 0,+
169
+ M 10315 10325 1.773E+00 +8.0E-03 -8.0E-03 K(2)(1770) 0,+
170
+ W 10315 10325 1.86E-01 +1.4E-02 -1.4E-02 K(2)(1770) 0,+
171
+ M 317 327 1.776E+00 +7.0E-03 -7.0E-03 K(3)*(1780) 0,+
172
+ W 317 327 1.59E-01 +2.1E-02 -2.1E-02 K(3)*(1780) 0,+
173
+ M 20315 20325 1.816E+00 +1.3E-02 -1.3E-02 K(2)(1820) 0,+
174
+ W 20315 20325 2.76E-01 +3.5E-02 -3.5E-02 K(2)(1820) 0,+
175
+ M 319 329 2.045E+00 +9.0E-03 -9.0E-03 K(4)*(2045) 0,+
176
+ W 319 329 1.98E-01 +3.0E-02 -3.0E-02 K(4)*(2045) 0,+
177
+ M 411 1.86962E+00 +1.5E-04 -1.5E-04 D +
178
+ W 411 6.33E-13 +4.0E-15 -4.0E-15 D +
179
+ M 421 1.86486E+00 +1.3E-04 -1.3E-04 D 0
180
+ W 421 1.605E-12 +6.0E-15 -6.0E-15 D 0
181
+ M 423 2.00698E+00 +1.5E-04 -1.5E-04 D*(2007) 0
182
+ M 413 2.01028E+00 +1.3E-04 -1.3E-04 D*(2010) +
183
+ W 413 9.6E-05 +2.2E-05 -2.2E-05 D*(2010) +
184
+ M 10421 10411 2.318E+00 +2.9E-02 -2.9E-02 D(0)*(2400) 0,+
185
+ W 10421 10411 2.7E-01 +4.0E-02 -4.0E-02 D(0)*(2400) 0,+
186
+ M 10423 2.4213E+00 +6.0E-04 -6.0E-04 D(1)(2420) 0
187
+ W 10423 2.71E-02 +2.7E-03 -2.7E-03 D(1)(2420) 0
188
+ M 425 2.4626E+00 +7.0E-04 -7.0E-04 D(2)*(2460) 0
189
+ W 425 4.90E-02 +1.4E-03 -1.4E-03 D(2)*(2460) 0
190
+ M 415 2.4644E+00 +1.9E-03 -1.9E-03 D(2)*(2460) +
191
+ W 415 3.7E-02 +6.0E-03 -6.0E-03 D(2)*(2460) +
192
+ M 431 1.96849E+00 +3.2E-04 -3.2E-04 D(s) +
193
+ W 431 1.317E-12 +1.9E-14 -1.9E-14 D(s) +
194
+ M 433 2.1123E+00 +5.0E-04 -5.0E-04 D(s)* +
195
+ M 10431 2.3178E+00 +6.0E-04 -6.0E-04 D(s0)*(2317) +
196
+ M 20433 2.4596E+00 +6.0E-04 -6.0E-04 D(s1)(2460) +
197
+ M 10433 2.53512E+00 +1.3E-04 -1.3E-04 D(s1)(2536) +
198
+ W 10433 9.2E-04 +5.0E-05 -5.0E-05 D(s1)(2536) +
199
+ M 435 2.5719E+00 +8.0E-04 -8.0E-04 D(s2)*(2573) +
200
+ W 435 1.7E-02 +4.0E-03 -4.0E-03 D(s2)*(2573) +
201
+ M 521 5.27925E+00 +1.7E-04 -1.7E-04 B +
202
+ W 521 4.011E-13 +2.0E-15 -2.0E-15 B +
203
+ M 511 5.27958E+00 +1.7E-04 -1.7E-04 B 0
204
+ W 511 4.333E-13 +2.0E-15 -2.0E-15 B 0
205
+ M 513 523 5.3252E+00 +4.0E-04 -4.0E-04 B* 0,+
206
+ M 515 525 5.743E+00 +5.0E-03 -5.0E-03 B(2)*(5747) 0,+
207
+ W 515 525 2.3E-02 +5.0E-03 -1.1E-02 B(2)*(5747) 0,+
208
+ M 531 5.36677E+00 +2.4E-04 -2.4E-04 B(s) 0
209
+ W 531 4.40E-13 +4.0E-15 -4.0E-15 B(s) 0
210
+ M 533 5.4154E+00 +2.4E-03 -2.1E-03 B(s)* 0
211
+ M 535 5.8397E+00 +6.0E-04 -6.0E-04 B(s2)*(5840) 0
212
+ M 541 6.277E+00 +6.0E-03 -6.0E-03 B(c) +
213
+ W 541 1.45E-12 +1.4E-13 -1.2E-13 B(c) +
214
+ M 441 2.9810E+00 +1.1E-03 -1.1E-03 eta(c)(1S) 0
215
+ W 441 2.97E-02 +1.0E-03 -1.0E-03 eta(c)(1S) 0
216
+ M 443 3.096916E+00 +1.1E-05 -1.1E-05 J/psi(1S) 0
217
+ W 443 9.29E-05 +2.8E-06 -2.8E-06 J/psi(1S) 0
218
+ M 10441 3.41475E+00 +3.1E-04 -3.1E-04 chi(c0)(1P) 0
219
+ W 10441 1.04E-02 +6.0E-04 -6.0E-04 chi(c0)(1P) 0
220
+ M 20443 3.51066E+00 +7.0E-05 -7.0E-05 chi(c1)(1P) 0
221
+ W 20443 8.6E-04 +5.0E-05 -5.0E-05 chi(c1)(1P) 0
222
+ M 10443 3.52541E+00 +1.6E-04 -1.6E-04 h(c)(1P) 0
223
+ M 445 3.55620E+00 +9.0E-05 -9.0E-05 chi(c2)(1P) 0
224
+ W 445 1.98E-03 +1.1E-04 -1.1E-04 chi(c2)(1P) 0
225
+ M 100441 3.6389E+00 +1.3E-03 -1.3E-03 eta(c)(2S) 0
226
+ W 100441 1.0E-02 +4.0E-03 -4.0E-03 eta(c)(2S) 0
227
+ M 100443 3.686109E+00 +1.2E-05 -1.4E-05 psi(2S) 0
228
+ W 100443 3.04E-04 +9.0E-06 -9.0E-06 psi(2S) 0
229
+ M 30443 3.77315E+00 +3.3E-04 -3.3E-04 psi(3770) 0
230
+ W 30443 2.72E-02 +1.0E-03 -1.0E-03 psi(3770) 0
231
+ M 100445 3.9272E+00 +2.6E-03 -2.6E-03 chi(c2)(2P) 0
232
+ W 100445 2.4E-02 +6.0E-03 -6.0E-03 chi(c2)(2P) 0
233
+ M 9000443 4.0390E+00 +1.0E-03 -1.0E-03 psi(4040) 0
234
+ W 9000443 8.0E-02 +1.0E-02 -1.0E-02 psi(4040) 0
235
+ M 9010443 4.1530E+00 +3.0E-03 -3.0E-03 psi(4160) 0
236
+ W 9010443 1.03E-01 +8.0E-03 -8.0E-03 psi(4160) 0
237
+ M 9020443 4.421E+00 +4.0E-03 -4.0E-03 psi(4415) 0
238
+ W 9020443 6.2E-02 +2.0E-02 -2.0E-02 psi(4415) 0
239
+ M 553 9.46030E+00 +2.6E-04 -2.6E-04 Upsilon(1S) 0
240
+ W 553 5.40E-05 +1.3E-06 -1.3E-06 Upsilon(1S) 0
241
+ M 10551 9.8594E+00 +5.0E-04 -5.0E-04 chi(b0)(1P) 0
242
+ M 20553 9.8928E+00 +4.0E-04 -4.0E-04 chi(b1)(1P) 0
243
+ M 10553 9.8986E+00 +1.4E-03 -1.4E-03 h(b)(1P) 0
244
+ M 555 9.9122E+00 +4.0E-04 -4.0E-04 chi(b2)(1P) 0
245
+ M 100553 1.002326E+01 +3.1E-04 -3.1E-04 Upsilon(2S) 0
246
+ W 100553 3.20E-05 +2.6E-06 -2.6E-06 Upsilon(2S) 0
247
+ M 30553 1.01637E+01 +1.4E-03 -1.4E-03 Upsilon(1D) 0
248
+ M 110551 1.02325E+01 +6.0E-04 -6.0E-04 chi(b0)(2P) 0
249
+ M 120553 1.02555E+01 +5.0E-04 -5.0E-04 chi(b1)(2P) 0
250
+ M 100555 1.02686E+01 +5.0E-04 -5.0E-04 chi(b2)(2P) 0
251
+ M 200553 1.03552E+01 +5.0E-04 -5.0E-04 Upsilon(3S) 0
252
+ W 200553 2.03E-05 +1.9E-06 -1.9E-06 Upsilon(3S) 0
253
+ M 300553 1.05794E+01 +1.2E-03 -1.2E-03 Upsilon(4S) 0
254
+ W 300553 2.05E-02 +2.5E-03 -2.5E-03 Upsilon(4S) 0
255
+ M 9000553 1.0876E+01 +1.1E-02 -1.1E-02 Upsilon(10860) 0
256
+ W 9000553 5.5E-02 +2.8E-02 -2.8E-02 Upsilon(10860) 0
257
+ M 9010553 1.1019E+01 +8.0E-03 -8.0E-03 Upsilon(11020) 0
258
+ W 9010553 7.9E-02 +1.6E-02 -1.6E-02 Upsilon(11020) 0
259
+ M 2212 9.38272046E-01 +2.1E-08 -2.1E-08 p +
260
+ W 2212 0.E+00 +0.0E+00 -0.0E+00 p +
261
+ M 2112 9.39565379E-01 +2.1E-08 -2.1E-08 n 0
262
+ W 2112 7.479E-28 +9.0E-31 -9.0E-31 n 0
263
+ M 12112 12212 1.440E+00 +3.0E-02 -2.0E-02 N(1440) 0,+
264
+ W 12112 12212 3.0E-01 +1.5E-01 -1.0E-01 N(1440) 0,+
265
+ M 1214 2124 1.520E+00 +5.0E-03 -5.0E-03 N(1520) 0,+
266
+ W 1214 2124 1.15E-01 +1.0E-02 -1.5E-02 N(1520) 0,+
267
+ M 22112 22212 1.535E+00 +1.0E-02 -1.0E-02 N(1535) 0,+
268
+ W 22112 22212 1.50E-01 +2.5E-02 -2.5E-02 N(1535) 0,+
269
+ M 32112 32212 1.655E+00 +1.5E-02 -1.0E-02 N(1650) 0,+
270
+ W 32112 32212 1.50E-01 +3.0E-02 -3.0E-02 N(1650) 0,+
271
+ M 2116 2216 1.675E+00 +5.0E-03 -5.0E-03 N(1675) 0,+
272
+ W 2116 2216 1.50E-01 +1.5E-02 -2.0E-02 N(1675) 0,+
273
+ M 12116 12216 1.685E+00 +5.0E-03 -5.0E-03 N(1680) 0,+
274
+ W 12116 12216 1.30E-01 +1.0E-02 -1.0E-02 N(1680) 0,+
275
+ M 21214 22124 1.70E+00 +5.0E-02 -5.0E-02 N(1700) 0,+
276
+ W 21214 22124 1.5E-01 +1.0E-01 -5.0E-02 N(1700) 0,+
277
+ M 42112 42212 1.710E+00 +3.0E-02 -3.0E-02 N(1710) 0,+
278
+ W 42112 42212 1.0E-01 +1.5E-01 -5.0E-02 N(1710) 0,+
279
+ M 31214 32124 1.720E+00 +3.0E-02 -2.0E-02 N(1720) 0,+
280
+ W 31214 32124 2.5E-01 +1.5E-01 -1.0E-01 N(1720) 0,+
281
+ M 1218 2128 2.190E+00 +1.0E-02 -9.0E-02 N(2190) 0,+
282
+ W 1218 2128 5.0E-01 +2.0E-01 -2.0E-01 N(2190) 0,+
283
+ M 1114 2114 2214 2224 1.2320E+00 +2.0E-03 -2.0E-03 Delta(1232) -,0,+,++
284
+ W 1114 2114 2214 2224 1.170E-01 +3.0E-03 -3.0E-03 Delta(1232) -,0,+,++
285
+ M 31114 32114 32214 32224 1.60E+00 +1.0E-01 -1.0E-01 Delta(1600) -,0,+,++
286
+ W 31114 32114 32214 32224 3.2E-01 +1.0E-01 -1.0E-01 Delta(1600) -,0,+,++
287
+ M 1112 1212 2122 2222 1.630E+00 +3.0E-02 -3.0E-02 Delta(1620) -,0,+,++
288
+ W 1112 1212 2122 2222 1.40E-01 +1.0E-02 -1.0E-02 Delta(1620) -,0,+,++
289
+ M 11114 12114 12214 12224 1.700E+00 +5.0E-02 -3.0E-02 Delta(1700) -,0,+,++
290
+ W 11114 12114 12214 12224 3.0E-01 +1.0E-01 -1.0E-01 Delta(1700) -,0,+,++
291
+ M 1116 1216 2126 2226 1.880E+00 +3.0E-02 -2.5E-02 Delta(1905) -,0,+,++
292
+ W 1116 1216 2126 2226 3.3E-01 +7.0E-02 -6.0E-02 Delta(1905) -,0,+,++
293
+ M 21112 21212 22122 22222 1.890E+00 +2.0E-02 -3.0E-02 Delta(1910) -,0,+,++
294
+ W 21112 21212 22122 22222 2.8E-01 +6.0E-02 -6.0E-02 Delta(1910) -,0,+,++
295
+ M 21114 22114 22214 22224 1.920E+00 +5.0E-02 -2.0E-02 Delta(1920) -,0,+,++
296
+ W 21114 22114 22214 22224 2.6E-01 +4.0E-02 -8.0E-02 Delta(1920) -,0,+,++
297
+ M 11116 11216 12126 12226 1.95E+00 +5.0E-02 -5.0E-02 Delta(1930) -,0,+,++
298
+ W 11116 11216 12126 12226 3.6E-01 +1.4E-01 -1.4E-01 Delta(1930) -,0,+,++
299
+ M 1118 2118 2218 2228 1.930E+00 +2.0E-02 -1.5E-02 Delta(1950) -,0,+,++
300
+ W 1118 2118 2218 2228 2.8E-01 +5.0E-02 -5.0E-02 Delta(1950) -,0,+,++
301
+ M 3122 1.115683E+00 +6.0E-06 -6.0E-06 Lambda 0
302
+ W 3122 2.501E-15 +1.9E-17 -1.9E-17 Lambda 0
303
+ M 13122 1.4051E+00 +1.3E-03 -1.0E-03 Lambda(1405) 0
304
+ W 13122 5.00E-02 +2.0E-03 -2.0E-03 Lambda(1405) 0
305
+ M 3124 1.5195E+00 +1.0E-03 -1.0E-03 Lambda(1520) 0
306
+ W 3124 1.56E-02 +1.0E-03 -1.0E-03 Lambda(1520) 0
307
+ M 23122 1.60E+00 +1.0E-01 -4.0E-02 Lambda(1600) 0
308
+ W 23122 1.5E-01 +1.0E-01 -1.0E-01 Lambda(1600) 0
309
+ M 33122 1.670E+00 +1.0E-02 -1.0E-02 Lambda(1670) 0
310
+ W 33122 3.5E-02 +1.5E-02 -1.0E-02 Lambda(1670) 0
311
+ M 13124 1.690E+00 +5.0E-03 -5.0E-03 Lambda(1690) 0
312
+ W 13124 6.0E-02 +1.0E-02 -1.0E-02 Lambda(1690) 0
313
+ M 43122 1.80E+00 +5.0E-02 -8.0E-02 Lambda(1800) 0
314
+ W 43122 3.0E-01 +1.0E-01 -1.0E-01 Lambda(1800) 0
315
+ M 53122 1.81E+00 +4.0E-02 -6.0E-02 Lambda(1810) 0
316
+ W 53122 1.5E-01 +1.0E-01 -1.0E-01 Lambda(1810) 0
317
+ M 3126 1.820E+00 +5.0E-03 -5.0E-03 Lambda(1820) 0
318
+ W 3126 8.0E-02 +1.0E-02 -1.0E-02 Lambda(1820) 0
319
+ M 13126 1.830E+00 +0.0E+00 -2.0E-02 Lambda(1830) 0
320
+ W 13126 9.5E-02 +1.5E-02 -3.5E-02 Lambda(1830) 0
321
+ M 23124 1.890E+00 +2.0E-02 -4.0E-02 Lambda(1890) 0
322
+ W 23124 1.0E-01 +1.0E-01 -4.0E-02 Lambda(1890) 0
323
+ M 3128 2.100E+00 +1.0E-02 -1.0E-02 Lambda(2100) 0
324
+ W 3128 2.0E-01 +5.0E-02 -1.0E-01 Lambda(2100) 0
325
+ M 23126 2.110E+00 +3.0E-02 -2.0E-02 Lambda(2110) 0
326
+ W 23126 2.0E-01 +5.0E-02 -5.0E-02 Lambda(2110) 0
327
+ M 3222 1.18937E+00 +7.0E-05 -7.0E-05 Sigma +
328
+ W 3222 8.209E-15 +2.7E-17 -2.7E-17 Sigma +
329
+ M 3212 1.192642E+00 +2.4E-05 -2.4E-05 Sigma 0
330
+ W 3212 8.9E-06 +9.0E-07 -8.0E-07 Sigma 0
331
+ M 3112 1.197449E+00 +3.0E-05 -3.0E-05 Sigma -
332
+ W 3112 4.450E-15 +3.2E-17 -3.2E-17 Sigma -
333
+ M 3224 1.38280E+00 +3.5E-04 -3.5E-04 Sigma(1385) +
334
+ M 3214 1.3837E+00 +1.0E-03 -1.0E-03 Sigma(1385) 0
335
+ M 3114 1.3872E+00 +5.0E-04 -5.0E-04 Sigma(1385) -
336
+ W 3224 3.60E-02 +7.0E-04 -7.0E-04 Sigma(1385) +
337
+ W 3214 3.6E-02 +5.0E-03 -5.0E-03 Sigma(1385) 0
338
+ W 3114 3.94E-02 +2.1E-03 -2.1E-03 Sigma(1385) -
339
+ M 13112 13212 13222 1.660E+00 +3.0E-02 -3.0E-02 Sigma(1660) -,0,+
340
+ W 13112 13212 13222 1.0E-01 +1.0E-01 -6.0E-02 Sigma(1660) -,0,+
341
+ M 13114 13214 13224 1.670E+00 +1.5E-02 -5.0E-03 Sigma(1670) -,0,+
342
+ W 13114 13214 13224 6.0E-02 +2.0E-02 -2.0E-02 Sigma(1670) -,0,+
343
+ M 23112 23212 23222 1.750E+00 +5.0E-02 -2.0E-02 Sigma(1750) -,0,+
344
+ W 23112 23212 23222 9.0E-02 +7.0E-02 -3.0E-02 Sigma(1750) -,0,+
345
+ M 3116 3216 3226 1.775E+00 +5.0E-03 -5.0E-03 Sigma(1775) -,0,+
346
+ W 3116 3216 3226 1.20E-01 +1.5E-02 -1.5E-02 Sigma(1775) -,0,+
347
+ M 13116 13216 13226 1.915E+00 +2.0E-02 -1.5E-02 Sigma(1915) -,0,+
348
+ W 13116 13216 13226 1.2E-01 +4.0E-02 -4.0E-02 Sigma(1915) -,0,+
349
+ M 23114 23214 23224 1.940E+00 +1.0E-02 -4.0E-02 Sigma(1940) -,0,+
350
+ W 23114 23214 23224 2.2E-01 +8.0E-02 -7.0E-02 Sigma(1940) -,0,+
351
+ M 3118 3218 3228 2.030E+00 +1.0E-02 -5.0E-03 Sigma(2030) -,0,+
352
+ W 3118 3218 3228 1.80E-01 +2.0E-02 -3.0E-02 Sigma(2030) -,0,+
353
+ M 3322 1.31486E+00 +2.0E-04 -2.0E-04 Xi 0
354
+ W 3322 2.27E-15 +7.0E-17 -7.0E-17 Xi 0
355
+ M 3312 1.32171E+00 +7.0E-05 -7.0E-05 Xi -
356
+ W 3312 4.02E-15 +4.0E-17 -4.0E-17 Xi -
357
+ M 3324 1.53180E+00 +3.2E-04 -3.2E-04 Xi(1530) 0
358
+ M 3314 1.5350E+00 +6.0E-04 -6.0E-04 Xi(1530) -
359
+ W 3324 9.1E-03 +5.0E-04 -5.0E-04 Xi(1530) 0
360
+ W 3314 9.9E-03 +1.7E-03 -1.9E-03 Xi(1530) -
361
+ M 203312 203322 1.690E+00 +1.0E-02 -1.0E-02 Xi(1690) -,0
362
+ M 13314 13324 1.823E+00 +5.0E-03 -5.0E-03 Xi(1820) -,0
363
+ W 13314 13324 2.4E-02 +1.5E-02 -1.0E-02 Xi(1820) -,0
364
+ M 103316 103326 1.950E+00 +1.5E-02 -1.5E-02 Xi(1950) -,0
365
+ W 103316 103326 6.0E-02 +2.0E-02 -2.0E-02 Xi(1950) -,0
366
+ M 203316 203326 2.025E+00 +5.0E-03 -5.0E-03 Xi(2030) -,0
367
+ W 203316 203326 2.0E-02 +1.5E-02 -5.0E-03 Xi(2030) -,0
368
+ M 3334 1.67245E+00 +2.9E-04 -2.9E-04 Omega -
369
+ W 3334 8.02E-12 +1.1E-13 -1.1E-13 Omega -
370
+ M 203338 2.252E+00 +9.0E-03 -9.0E-03 Omega(2250) -
371
+ W 203338 5.5E-02 +1.8E-02 -1.8E-02 Omega(2250) -
372
+ M 4122 2.28646E+00 +1.4E-04 -1.4E-04 Lambda(c) +
373
+ W 4122 3.30E-12 +9.0E-14 -9.0E-14 Lambda(c) +
374
+ M 14122 2.59225E+00 +2.8E-04 -2.8E-04 Lambda(c)(2595) +
375
+ W 14122 2.6E-03 +6.0E-04 -6.0E-04 Lambda(c)(2595) +
376
+ M 104122 2.62811E+00 +1.9E-04 -1.9E-04 Lambda(c)(2625) +
377
+ M 204126 2.88153E+00 +3.5E-04 -3.5E-04 Lambda(c)(2880) +
378
+ W 204126 5.8E-03 +1.1E-03 -1.1E-03 Lambda(c)(2880) +
379
+ M 4222 2.45398E+00 +1.6E-04 -1.6E-04 Sigma(c)(2455) ++
380
+ M 4212 2.4529E+00 +4.0E-04 -4.0E-04 Sigma(c)(2455) +
381
+ M 4112 2.45374E+00 +1.6E-04 -1.6E-04 Sigma(c)(2455) 0
382
+ W 4222 2.26E-03 +2.5E-04 -2.5E-04 Sigma(c)(2455) ++
383
+ W 4112 2.16E-03 +2.6E-04 -2.6E-04 Sigma(c)(2455) 0
384
+ M 4224 2.5179E+00 +6.0E-04 -6.0E-04 Sigma(c)(2520) ++
385
+ M 4214 2.5175E+00 +2.3E-03 -2.3E-03 Sigma(c)(2520) +
386
+ M 4114 2.5188E+00 +6.0E-04 -6.0E-04 Sigma(c)(2520) 0
387
+ W 4224 1.49E-02 +1.5E-03 -1.5E-03 Sigma(c)(2520) ++
388
+ W 4114 1.45E-02 +1.5E-03 -1.5E-03 Sigma(c)(2520) 0
389
+ M 4232 2.4678E+00 +4.0E-04 -6.0E-04 Xi(c) +
390
+ W 4232 1.49E-12 +9.0E-14 -9.0E-14 Xi(c) +
391
+ M 4132 2.47088E+00 +3.4E-04 -8.0E-04 Xi(c) 0
392
+ W 4132 5.9E-12 +6.0E-13 -6.0E-13 Xi(c) 0
393
+ M 4322 2.5756E+00 +3.1E-03 -3.1E-03 Xi(c)' +
394
+ M 4312 2.5779E+00 +2.9E-03 -2.9E-03 Xi(c)' 0
395
+ M 4324 2.6459E+00 +5.0E-04 -6.0E-04 Xi(c)(2645) +
396
+ M 4314 2.6459E+00 +5.0E-04 -5.0E-04 Xi(c)(2645) 0
397
+ M 104324 2.7891E+00 +3.2E-03 -3.2E-03 Xi(c)(2790) +
398
+ M 104314 2.7918E+00 +3.3E-03 -3.3E-03 Xi(c)(2790) 0
399
+ M 104322 2.8166E+00 +9.0E-04 -9.0E-04 Xi(c)(2815) +
400
+ M 104312 2.8196E+00 +1.2E-03 -1.2E-03 Xi(c)(2815) 0
401
+ M 4332 2.6952E+00 +1.7E-03 -1.7E-03 Omega(c) 0
402
+ W 4332 9.6E-12 +2.1E-12 -1.4E-12 Omega(c) 0
403
+ M 4334 2.7659E+00 +2.0E-03 -2.0E-03 Omega(c)(2770) 0
404
+ M 5122 5.6194E+00 +7.0E-04 -7.0E-04 Lambda(b) 0
405
+ W 5122 4.62E-13 +1.0E-14 -1.0E-14 Lambda(b) 0
406
+ M 5222 5.8113E+00 +1.9E-03 -1.9E-03 Sigma(b) +
407
+ M 5112 5.8155E+00 +1.8E-03 -1.8E-03 Sigma(b) -
408
+ W 5222 9.7E-03 +4.0E-03 -3.0E-03 Sigma(b) +
409
+ W 5112 4.9E-03 +3.3E-03 -2.4E-03 Sigma(b) -
410
+ M 5224 5.8321E+00 +1.9E-03 -1.9E-03 Sigma(b)* +
411
+ M 5114 5.8351E+00 +1.9E-03 -1.9E-03 Sigma(b)* -
412
+ M 5132 5.7911E+00 +2.2E-03 -2.2E-03 Xi(b) -
413
+ M 5232 5.788E+00 +5.0E-03 -5.0E-03 Xi(b) 0
414
+ W 5132 4.2E-13 +8.0E-14 -6.0E-14 Xi(b) -
415
+ W 5232 4.4E-13 +6.0E-14 -5.0E-14 Xi(b) 0
416
+ M 5332 6.07E+00 +4.0E-02 -4.0E-02 Omega(b) -
417
+ W 5332 5.8E-13 +3.2E-13 -1.9E-13 Omega(b) -
@@ -0,0 +1,81 @@
1
+ require "pdg/lorentz_violation"
2
+
3
+ module PDG
4
+ class Particle
5
+ attr_reader :id, :name, :charge, :mass, :tex
6
+ attr_accessor :mass, :width
7
+
8
+ alias_method :q, :charge
9
+ alias_method :m, :mass
10
+
11
+ def initialize(properties)
12
+ properties.update(properties) { |key, val| val.nil? ? 0 : val }
13
+ @id = properties[:id].to_i
14
+ @name = properties[:name]
15
+ @charge = case properties[:charge]
16
+ when "+"
17
+ 1.0
18
+ when "++"
19
+ 2.0
20
+ when "-"
21
+ -1.0
22
+ when "--"
23
+ -2.0
24
+ # Either 0 or something like -1/3, +2/3
25
+ else
26
+ fraction_to_float properties[:charge]
27
+ end
28
+ # The mass and width keys may not be present, but never fear as:
29
+ # nil.to_f => 0.0
30
+ @mass = properties[:mass].to_f
31
+ @width = properties[:width].to_f
32
+ @tex = name_to_tex
33
+ end
34
+
35
+ # Returns the lifetime in picoseconds (10^-12 s)
36
+ # by Gamma = hbar / tau. Returns 0 for zero lifetimes.
37
+ # (The PDG represent inifinite lifetimes, like that of
38
+ # the proton, as zero.)
39
+ def lifetime
40
+ @lifetime ||= @width == 0.0 ? 0.0 : HBAR / @width
41
+ end
42
+ alias_method :tau, :lifetime
43
+
44
+ # Returns c tau distance in mm (10^-3 m)
45
+ def ctau
46
+ @ctau ||= @lifetime == 0.0 ? 0.0 : SPEED_OF_LIGHT * lifetime
47
+ end
48
+
49
+ # Returns the mean displacement, in mm, of the particle with energy `energy` in GeV
50
+ def mean_distance(energy)
51
+ return 0.0 if lifetime == 0.0
52
+ if energy < @mass
53
+ raise LorentzViolation,
54
+ "Energy #{energy} GeV is less than particle mass #{@mass} GeV for particle #{self}"
55
+ end
56
+
57
+ gamma = energy.to_f / @mass
58
+ beta = Math.sqrt(1.0 - (gamma**-2))
59
+ ctau * beta * gamma
60
+ end
61
+
62
+ # TODO pretty printing
63
+ def to_s
64
+ "#{@name}: ID=#{@id}, m=#{@mass} GeV, q=#{@charge}, width=#{@width} GeV"
65
+ end
66
+
67
+ private
68
+ # TODO implement
69
+ def name_to_tex
70
+ @name + ".tex"
71
+ end
72
+
73
+ # Returns a float representation of a string fraction
74
+ # fraction_to_float("-2/3") => -0.666...
75
+ def fraction_to_float(fraction)
76
+ return 0.0 if fraction == "0"
77
+ sign = PDG::single_character(fraction) == "+" ? 1.0 : -1.0
78
+ sign * Rational(*(fraction[1..-1].split("/").map(&:to_i))).to_f
79
+ end
80
+ end
81
+ end
@@ -0,0 +1,83 @@
1
+ require "pdg/particle.rb"
2
+
3
+ module PDG
4
+ class ParticleTable < Hash
5
+ def initialize(path)
6
+
7
+ source = File.new path, "r"
8
+
9
+ while (line = source.gets)
10
+ line_type = PDG::single_character(line)
11
+
12
+ case line_type
13
+ # Comment lines begin with a *
14
+ when "*"
15
+ next
16
+ when "M"
17
+ parse_line line, :mass
18
+ when "W"
19
+ parse_line line, :width
20
+ end
21
+
22
+ end
23
+
24
+ source.close
25
+ end
26
+
27
+ # Parses a line from the PDG MC data
28
+ # Passes the information to the add_row method
29
+ def parse_line(line, type)
30
+ names_charges = line[68..88].split
31
+
32
+ ids = line[1..32].split
33
+ name = names_charges[0]
34
+ charges = names_charges[1].split ","
35
+ type_value = line[34..48].strip
36
+
37
+ ids.each_index do |i|
38
+ add_row({
39
+ :id => ids[i],
40
+ :name => name,
41
+ :charge => charges[i],
42
+ type => type_value.to_f
43
+ })
44
+ end
45
+ end
46
+
47
+ # Adds a row with the corresponding properties to the table
48
+ def add_row(particle_properties)
49
+ particle = self[particle_properties[:id].to_i]
50
+ if particle.nil?
51
+ self << Particle.new(particle_properties)
52
+ else
53
+ particle.mass = particle_properties[:mass] unless particle_properties[:mass].nil?
54
+ particle.width = particle_properties[:width] unless particle_properties[:width].nil?
55
+ end
56
+ end
57
+
58
+ def [](id)
59
+ if id.class == Range or id.class == Array
60
+ self.values_at(*id).compact
61
+ else
62
+ self.values_at(id).first
63
+ end
64
+ end
65
+
66
+ # Appends a new particle to the `particles` hash
67
+ def <<(particle)
68
+ self[particle.id] = particle
69
+ end
70
+
71
+ def to_s
72
+ "<##{self.class}:#{self.object_id.to_s(8)}>"
73
+ end
74
+
75
+ # Returns a formatted table containing particle(s) with id(s) = `ids`
76
+ # One may specify a single integer, an Array of them, or a Range
77
+ def pretty_print(id, fields = [:id, :name, :mass, :charge, :width, :lifetime])
78
+ PDG::pretty_print(self[id], fields)
79
+ end
80
+
81
+ protected :<<, :parse_line, :add_row
82
+ end
83
+ end
@@ -0,0 +1,3 @@
1
+ module PDG
2
+ VERSION = "0.1.0"
3
+ end
metadata ADDED
@@ -0,0 +1,52 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pdg
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Alex Pearce
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-11-30 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: Accessible Ruby API to PDG particle data tables.
15
+ email: alex@alexpearce.me
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - lib/pdg/particle.rb
21
+ - lib/pdg/particle_table.rb
22
+ - lib/pdg/version.rb
23
+ - lib/pdg/lorentz_violation.rb
24
+ - lib/pdg.rb
25
+ - lib/pdg/mass_width_2012.mcd
26
+ - README.md
27
+ - LICENSE
28
+ homepage: http://rubygems.org/pdg
29
+ licenses: []
30
+ post_install_message:
31
+ rdoc_options: []
32
+ require_paths:
33
+ - lib
34
+ required_ruby_version: !ruby/object:Gem::Requirement
35
+ none: false
36
+ requirements:
37
+ - - ! '>='
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ required_rubygems_version: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ requirements: []
47
+ rubyforge_project:
48
+ rubygems_version: 1.8.23
49
+ signing_key:
50
+ specification_version: 3
51
+ summary: PDG data for Ruby.
52
+ test_files: []