Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (25 sloc) 914 Bytes
// 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)
}