decaylanguage.decay

decaylanguage.modeling.decay

A general base class representing decays.

class decaylanguage.modeling.decay.ModelDecay(particle, daughters=[], name=None)[source]

This describes a decay very generally, with search and print features. Subclassed for futher usage.

list_structure(final_states)[source]

The structure in the form [(0,1,2,3)], where the dual-list is used for permutations for bose symmatrization. So for final_states=[a,b,c,c], [a,c,[c,b]] would be: [(0,2,3,1),(0,3,2,1)]

structure

The structure of the decay chain, simplified to only final state particles

decaylanguage.modeling.ampgentransform

decaylanguage.modeling.amplitudechain

A class representing a set of decays. Can be subclassed to provide custom converters.

class decaylanguage.modeling.amplitudechain.AmplitudeChain(particle, daughters=[], lineshape=None, spinfactor=None, amp=(1+0j), err=0j, fix=True, name=None)[source]

This is a chain of decays (a “line”)

expand_lines(linelist)[source]

Take a DecayTree -> list of DecayTrees with each dead-end daughter expanded to every possible combination. (recursive)

classmethod from_matched_line(mat)[source]

This operates on an already-matched line.

Parameters:mat – The groupdict output of a match
Returns:A new amplitude chain instance
classmethod read_ampgen(filename=None, text=None, grammar=None, parser='lalr', **kargs)[source]

Read in an ampgen file

Parameters:
  • filename – Filename to read
  • text – Text to read (use instead of filename)
Returns:

array of AmplitudeChains, parameters, constants, event type

class decaylanguage.modeling.amplitudechain.LS[source]

Line shapes supported (currently)

decaylanguage.modeling.goofit

This is a GooFit adaptor for amplitude chain.

class decaylanguage.modeling.goofit.DecayStructure[source]
class decaylanguage.modeling.goofit.GooFitChain(particle, daughters=[], lineshape=None, spinfactor=None, amp=(1+0j), err=0j, fix=True, name=None)[source]
classmethod read_ampgen(*args, **kargs)[source]

Read in an ampgen file

Parameters:
  • filename – Filename to read
  • text – Text to read (use instead of filename)
Returns:

array of AmplitudeChains, parameters, constants, event type

class decaylanguage.modeling.goofit.SF_4Body[source]