firecrown.likelihood.gauss_family.statistic.source.source.Tracer#
- class firecrown.likelihood.gauss_family.statistic.source.source.Tracer(tracer, tracer_name=None, field=None, pt_tracer=None, halo_profile=None, halo_2pt=None)[source]#
Bases:
object
Extending the pyccl.Tracer object with additional information.
Bundles together a pyccl.Tracer object with optional information about the underlying 3D field, a pyccl.nl_pt.PTTracer, and halo profiles.
- Parameters:
tracer (pyccl.Tracer) –
tracer_name (None | str) –
field (None | str) –
pt_tracer (None | pyccl.nl_pt.PTTracer) –
halo_profile (None | pyccl.halos.HaloProfile) –
halo_2pt (None | pyccl.halos.Profile2pt) –
Public Methods:
determine_field_name
(field, tracer)Gets a field name for a tracer.
__init__
(tracer[, tracer_name, field, ...])Initialize a new Tracer based on the pyccl.Tracer which must not be None.
- static determine_field_name(field, tracer)[source]#
Gets a field name for a tracer.
This function encapsulates the policy for determining the value to be assigned to the
field
attribute of aTracer
.It is a static method only to keep it grouped with the class for which it is defining the initialization policy.
- Parameters:
field (
None
|str
) –tracer (
None
|str
) –
- Return type:
str
- property has_hm: bool#
Return True if we have a halo_profile, and False if not.
- property has_pt: bool#
Return True if we have a pt_tracer, and False if not.