Skip to content

Updating the background time profile #64

@jasonfan1997

Description

@jasonfan1997

Not sure whether we want to add that but right the background time profile is fixed when the self.ent model is built.

This can be done by a function like

self.background_time_profile = background_time_profile
self._grl = grl
self._grl_rates = self._grl['self.ents'] / self._grl['livetime']
self.signal_time_profile = inject_signal_time_profile
start, stop = self.background_time_profile.range
return_stop_contained = True
background_run_mask = self._contained_run_mask(
start,
stop,
return_stop_contained=return_stop_contained,
)
background_grl = self._grl[background_run_mask]
self._n_background = background_grl['self.ents'].sum()
self._n_background /= background_grl['livetime'].sum()
self._n_background *= self._contained_livetime(
start,
stop,
background_grl,
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions