From ce3ce16b9bf58946d00a6054f6d8f1441d008eec Mon Sep 17 00:00:00 2001 From: Christian Weber <ChristianTMWeber@gmal.com> Date: Tue, 19 Jul 2022 16:10:12 -0700 Subject: [PATCH] LimitSettingHistPrep - allow to skip inclusion of reducibleBackgrounds --- limitSetting/limitSettingHistPrep.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/limitSetting/limitSettingHistPrep.py b/limitSetting/limitSettingHistPrep.py index 107db55..01943d9 100644 --- a/limitSetting/limitSettingHistPrep.py +++ b/limitSetting/limitSettingHistPrep.py @@ -326,6 +326,9 @@ if __name__ == '__main__': parser.add_argument("--outputSignalOverview", default=False, action='store_true' , # this is the more proper way to affect default booleans help = "output overview of signal samples" ) + parser.add_argument("--skipDataDrivenReducible", default=False, action='store_true' , # this is the more proper way to affect default booleans + help = "Skip the inclusion of the data driven reducible backgrounds" ) + parser.add_argument( "--rebin", type=int, default=1 , help = "We can rebin the bins. Choose rebin > 1 to rebin #<rebin> bins into 1." ) @@ -410,7 +413,7 @@ if __name__ == '__main__': if args.makeTheoryShapeVariations: assembleTheoryShapeVariationHists.addTheoryVariationsToMasterHistDict( pmgWeightDict, masterHistDict, myDSIDHelper.mappingOfChoiceInverse, region = "ZXSR", backgroundtypes = ["H4l", "ZZ"], prefix="PMG_", outputEnvelopeDir = "theorySystOverview") - addDataDrivenReducibleBackground2( masterHistDict ) + if not args.skipDataDrivenReducible: addDataDrivenReducibleBackground2( masterHistDict ) ###################################################### # Interpolate signal samples in 1GeV steps and add them to the master hist dict -- GitLab