### TABLE OF CONTENTS

## /AssignMassMC [ Modules ]

NAME

module **AssignMassMC**

PURPOSE

Assign masses for 1-,2- or 3-body final state according spectral functions

## AssignMassMC/AssignMass_1 [ Subroutines ]

[ Top ] [ AssignMassMC ] [ Subroutines ]

NAME

subroutine **AssignMass_1**(ID, srts,momLRF,mediumAtPos, mass, nReject)

PURPOSE

return a mass for a particle, which is distributed according the actual parametrizations of the spectral function, i.e. according

A(m)

For stable particles, it returns the pole mass, while for particles with non-vanishing width the returned value is distributed according a relativistiv Breit-Wigner distribution with a mass dependend width.

INPUTS

- integer :: ID -- ID of the particle
- real :: srts -- maximal energy available
- real, dimension(0:3) :: momLRF -- momentum of resonance in LRF
- type(medium) :: mediumAtPos -- medium at position

OUTPUT

- real :: mass -- the selected mass value
- integer, OPTIONAL:: nReject -- number of steps in rejection method

NOTES

## AssignMassMC/AssignMass_2 [ Subroutines ]

[ Top ] [ AssignMassMC ] [ Subroutines ]

NAME

subroutine **AssignMass_2**(ID, srts,momLRF,mediumAtPos, mass, nReject)

PURPOSE

return masses for the two outgoing particles, which are selected according

A(m1)*A(m2)*p_{cm}

INPUTS

- integer, dimension(2) :: ID -- ID of the particles
- real :: srts -- maximal energy available
- real, dimension(0:3) :: momLRF -- momentum of resonance in LRF
- type(medium) :: mediumAtPos -- medium at position

OUTPUT

- real, dimension(2) :: mass -- the selected mass values
- integer, OPTIONAL :: nReject -- number of steps in rejection method

NOTES

- momLRF is not respected correctly
- angular dependencies are not considered
- mass shifts due to potentials (vector mesons) are not considered yet

## AssignMassMC/AssignMass_1_Therm [ Subroutines ]

[ Top ] [ AssignMassMC ] [ Subroutines ]

NAME

subroutine **AssignMass_1_Therm**(ID, T, srts,momLRF,mediumAtPos, mass, nReject)

PURPOSE

return a mass for a particle, which is distributed according the actual parametrizations of the spectral function multiplied with a Boltzmann-Factor for the temperature T, i.e. according

A(m) * m^2 * K_2(m/T)

For stable particles, it returns the pole mass, while for particles with non-vanishing width the returned value is distributed according a relativistiv Breit-Wigner distribution with a mass dependend width.

INPUTS

- integer :: ID -- ID of the particle
- real :: T -- Teemperature
- real :: srts -- maximal energy available
- real, dimension(0:3) :: momLRF -- momentum of resonance in LRF
- type(medium) :: mediumAtPos -- medium at position

OUTPUT

- real :: mass -- the selected mass value
- integer, OPTIONAL:: nReject -- number of steps in rejection method

NOTES