Commit 975adf8b authored by Peter Fackeldey's avatar Peter Fackeldey
Browse files

[ScaleWeight] add Envelope of individual sources as shift

parent ddf46d6f
......@@ -98,6 +98,24 @@ class GeneratorHelper:
weightDown=self.ones,
)
# add envelope
self.weights.add(
"ScaleWeight_Envelope",
self.ones,
weightUp=np.maximum.reduce(
[
self.weights._modifiers[f"ScaleWeight_{suffix}Up"]
for suffix in ("Fact", "Renorm", "Mixed")
]
),
weightDown=np.minimum.reduce(
[
self.weights._modifiers[f"ScaleWeight_{suffix}Down"]
for suffix in ("Fact", "Renorm", "Mixed")
]
),
)
def gen_weight(
self,
output: Dict[str, object],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment