/
heppdt.go
31 lines (25 loc) · 916 Bytes
/
heppdt.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright ©2017 The go-hep Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Package heppdt provides access to the HEP Particle Data Table.
package heppdt // import "go-hep.org/x/hep/heppdt"
// Name returns the name of the default particle data table
func Name() string {
return defaultTable.Name()
}
// Len returns the size of the default particle data table
func Len() int {
return defaultTable.Len()
}
// PDT returns the default particle data table content
func PDT() map[PID]*Particle {
return defaultTable.PDT()
}
// ParticleByID returns the particle information via particle ID
func ParticleByID(pid PID) *Particle {
return defaultTable.ParticleByID(pid)
}
// ParticleByName returns the particle information via particle name
func ParticleByName(n string) *Particle {
return defaultTable.ParticleByName(n)
}