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:
objectExtending 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 (
Tracer) –tracer_name (
Optional[str]) –field (
Optional[str]) –pt_tracer (
Optional[PTTracer]) –halo_profile (
Optional[HaloProfile]) –halo_2pt (
Optional[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
fieldattribute 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 (
Optional[str]) –tracer (
Optional[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.