Skip to content

Commit d40f54b

Browse files
authored
Merge pull request #7 from lucalavezzo/250404_fix_Z_ai
add flag for physics model of the fitresult used as input
2 parents 5bde0ce + 6056568 commit d40f54b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/combine/setupCombine.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,12 @@ def make_parser(parser=None):
330330
Following the fitresult filename, a list of channels can be provided to only take the covariance across these channels (default is all channels).
331331
""",
332332
)
333+
parser.add_argument(
334+
"--fitresultPhysicsModel",
335+
type=str,
336+
default="Basemodel",
337+
help="Physics model to use for the fitresult (default is Basemodel)",
338+
)
333339
parser.add_argument(
334340
"--fakerateAxes",
335341
nargs="+",
@@ -2349,7 +2355,7 @@ def outputFolderName(outfolder, datagroups, doStatOnly, postfix):
23492355
]
23502356

23512357
fitresult_hist, fitresult_cov = combinetf2.io_tools.get_postfit_hist_cov(
2352-
fitresult, channels=channels
2358+
fitresult, physics_model=args.fitresultPhysicsModel, channels=channels
23532359
)
23542360

23552361
writer.add_data_covariance(fitresult_cov)

0 commit comments

Comments
 (0)