hmfast.tracers.tSZTracer

class hmfast.tracers.tSZTracer(profile=None)[source]

Bases: Tracer

thermal Sunyaev-Zeldovich effect tracer.

Attributes:
profilePressureProfile

Pressure profile used to model the thermal Sunyaev-Zeldovich signal.

Methods

kernel(cosmology, z)

Compute the tSZ kernel as a function of redshift.

update([profile])

Return a new tSZTracer instance with updated attributes.

update(profile=None)[source]

Return a new tSZTracer instance with updated attributes.

Parameters:
profilePressureProfile, optional

New pressure profile to use for the tracer. If None, the profile is unchanged.

Returns:
tSZTracer

New tracer instance with updated attributes.

kernel(cosmology, z)[source]

Compute the tSZ kernel as a function of redshift.

The kernel is given by:

\[W_{\mathrm{tSZ}}(\chi) = \frac{\sigma_T}{m_e c^2} \frac{1}{1+z}\]

where \(\sigma_T\) is the Thomson cross-section, \(m_e c^2\) is the electron rest-mass energy, and \(z\) is the redshift.

Parameters:
cosmologyCosmology

Cosmology object.

zfloat or array-like

Redshift(s).

Returns:
W_tszfloat or array-like

tSZ kernel evaluated at redshift(s) \(z\).