utilities

This module contains a few utility classes used when working within the pythonPWA environment.

brietWigner

pythonPWA.utilities.breitWigner.breitWigner(mass, resMass, gamma)

Briet Wigner function for a given mass, resonance mass, and resonance width. Note that here, it assumes a fixed resonance width.

Args

mass (float)

resMass (float)

gamma (float)

Returns:

Numpy.complex value representing the Briet Wigner function value.

FourVec

Created on Wed Jun 25 13:50:19 2014

@author: sbramlett

LorentzTransform

Created on Wed Jun 25 15:13:23 2014

@author: sbramlett

phaseMotion

pythonPWA.utilities.phaseMotion.createComplexList(vList)

This function takes in a list of v’s (for example the returned list from an iminuit fit) and returns a list of numpy complexes representing the proper v’s for each wave. Note that this function should maintain the ordering established on wave list instantiation, i.e. alphabetical ordering of waves based on filename.

pythonPWA.utilities.phaseMotion.deltaPhi(v1, v2)

Returns the value of equation 372 in the paper by Salgado and Weygand.

pythonPWA.utilities.phaseMotion.phaseDifference(waves, vList, waveName1, waveName2)

A higher level wrapper around deltaPhi that allows you to simply supply the list of waves, vs, and 2 strings of the filenames of the waves that you want to calculate deltaPhi for and returns you the desired phase difference between the 2 specified waves.

ThreeVec

Created on Thu Jun 26 13:48:01 2014

@author: sbramlett

randM

pythonPWA.utilities.randM.randm(low, high)

Returns a random value, used in generatePureWave.

Args:

low (float)

high (float)

Returns:

Random value as a float.

rotation

Created on Wed Jul 9 14:10:01 2014

@author: sbramlett

Table Of Contents

Previous topic

fileHandlers

Next topic

model