Skip to content

Commit

Permalink
add background process
Browse files Browse the repository at this point in the history
  • Loading branch information
mafrahm committed Nov 25, 2024
1 parent c4dbee6 commit 09a4ab4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions hbw/config/processes.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

from cmsdb.util import add_decay_process

from hbw.config.styling import color_palette


def add_parent_process(config: od.Config, child_procs: list[od.Process], **kwargs):
"""
Expand Down Expand Up @@ -185,3 +187,15 @@ def configure_hbw_processes(config: od.Config):
xsecs=None,
aux={"flavour": flavour},
)

# create main background process
background = config.add_process(
name="background",
id=99999,
label="background",
color=color_palette["blue"],
)
for bg in ["tt", "dy", "st", "vv", "w_lnu", "h"]:
if config.has_process(bg):
bg = config.get_process(bg)
background.add_process(bg)

0 comments on commit 09a4ab4

Please sign in to comment.