decaylanguage.particle

decaylanguage.particle.particle.Charge

alias of decaylanguage.particle.particle.Par

class decaylanguage.particle.particle.Inv[source]

Definition of what happens when particle is inverted

class decaylanguage.particle.particle.Par[source]

Parity or charge

class decaylanguage.particle.particle.Particle(val, name, mass, width, charge, A, rank=0, I=None, J=None, G=<Par.u: 5>, P=<Par.u: 5>, C=<Par.u: 5>, quarks='', status=<Status.Nonexistant: 4>, latex='', mass_upper=0.0, mass_lower=0.0, width_upper=0.0, width_lower=0.0)[source]

The Particle object class. Hold a series of properties for a particle.

bar

Check to see if particle is inverted

describe()[source]

Make a nice high-density string for a particle’s properties.

classmethod empty()[source]

Get a new empty particle

classmethod from_AmpGen(name)[source]

Get a particle from an AmpGen style name

classmethod from_pdg(val)[source]

Get a particle from a PDG number

Require that your each returns one and only one result

classmethod from_search_list(name=None, latex=None, *, name_re=None, latex_re=None, particle=None, **search_terms)[source]

Search for a particle, returning a list of candidates

html_name

This is the name using HTML instead of LaTeX

invert()[source]

Get the antiparticle

classmethod load_pdg_table(files=('/Users/henryiii/git/software/decaylanguage/decaylanguage/particle/mass_width.csv', '/Users/henryiii/git/software/decaylanguage/decaylanguage/particle/MintDalitzSpecialParticles.csv'), latexes=('/Users/henryiii/git/software/decaylanguage/decaylanguage/particle/pdgID_to_latex.txt', ))[source]

Load a PDG table. Will be called on first access to the PDG table

classmethod pdg_table()[source]

Get the PDG table. Loads on first access.

programatic_name

This name could be used for a variable name

radius

Particle radius, hard coded

spintype

Access the SpinType enum

class decaylanguage.particle.particle.SpinType[source]

An enumeration.

class decaylanguage.particle.particle.Status[source]

The status of the particle

decaylanguage.particle.particle.get_from_PDG(filename, latexes=('/Users/henryiii/git/software/decaylanguage/decaylanguage/particle/pdgID_to_latex.txt', ))[source]

Read a file, plus a list of latex files, to produce a pandas DataFrame with particle information

decaylanguage.particle.particle.get_from_latex(filename)[source]

Produce a pandas series from a file with latex mappings in it

decaylanguage.particle.particle.mkul(upper, lower)[source]

Utility to print out an uncertainty with different or identical upper/lower bounds

decaylanguage.particle.particle.programatic_name(name)[source]

Return a name safe to use as a variable name