dataTypes

This module contains the various data types used within the PWA project.

gampEvent

class pythonPWA.dataTypes.gampEvent.gampEvent(particles=[], accepted=None, raw=None)

This class represents a single gamp event. That is to say that this class contains a set of particles and a flag to specify if this event is accepted into the filtered data set.

__init__(particles=[], accepted=None, raw=None)

gampEvent class default constructor.

Kwargs:

particles (list): A list of gampParticle items.

accepted (bool): Flag to denote if the gampEvent instance is accepted.

raw (bool): Flag to denote if the gampEvent instance is raw.

writeGamp(outputFile)

This function writes a gamp event instance to an output file.

Args:

outputFile (file): Output .gamp file to write the event instance to.

writeGampIfAccepted(outputFile)

This function writes a gamp event instance to an output file, but only if the accepted data member of said gamp event instance is True.

Args:

outputFile (file): Output .gamp file to write the event instance to.

gampParticle

class pythonPWA.dataTypes.gampParticle.gampParticle(particleID=None, particleCharge=None, particleXMomentum=None, particleYMomentum=None, particleZMomentum=None, particleE=None)

This class represents a particle described in a single line of a .gamp file.

__init__(particleID=None,particleCharge=None,particleXMomentum=None,particleYMomentum=None, particleZMomentum=None,particleE=None)

gampParticle class default constructor.

Kwargs:

particleID (int): Key used to lookup the type of this particle.

particleCharge (float): The electric charge value of this particle.

particleXMomentum (float): X-direction momentum of this particle.

particleYMomentum (float): Y-direction momentum of this particle.

particleZMomentum (float): Z-direction momentum of this particle.

particleE (float): Total energy of this particle.

toString()

Returns a string of the particle data members delimited by newlines.

resonance

class pythonPWA.dataTypes.resonance.resonance(cR=1.0, wR=[], w0=1.0, r0=0.5, phase=0.0)

This class represents a resonance.

__init__(cR=1.0, wR=[], w0=1.0, r0=0.5, phase=0.0)

Default constructor for resonance class.

Kwargs:

cR (float): Percent of this resonance in a set of resonances.

wR (list): List of percents of each wave in this resonance.

w0 (float): Mass of this resonance in GeV/c^2.

r0 (float): Width of this resonance in GeV/c^2.

phase (float): Relative phase of all waves in this resonance.

toString()

Returns a string of the resonance data memebers delimited by newlines.

wave

class pythonPWA.dataTypes.wave.wave(epsilon=0, complexamplitudes=[], w0=1000.0, r0=100.0, beta=0, k=0, filename=None)

This class represents a PWA wave.

__init__(epsilon=0, complexamplitudes=[], w0=1000.0, r0=100.0, beta=0, k=0, filename=None)

Default constructor for the wave class

Kwargs:

epsilon (int): Integer representing reflectivity of this wave.

beta (int):

k (int):

filename (string): Name of the file used to instantiate a wave instance, if getwaves was used to instantiate the wave instance.

toString()

returns a string of all the wave properties delimited by newlines.

Table Of Contents