From 748cccb04e6ae7dc5a9dab29b743ff7f92f6301a Mon Sep 17 00:00:00 2001 From: Andrea Carlo Marini Date: Wed, 12 Feb 2020 12:06:50 +0100 Subject: [PATCH] libaries in Impacts --- CombineTools/python/combine/Impacts.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CombineTools/python/combine/Impacts.py b/CombineTools/python/combine/Impacts.py index c7c62597197..fae6a832a08 100755 --- a/CombineTools/python/combine/Impacts.py +++ b/CombineTools/python/combine/Impacts.py @@ -30,6 +30,7 @@ def attach_intercept_args(self, group): group.add_argument('--setPhysicsModelParameters') group.add_argument('--setParameters') group.add_argument('--name', '-n', default='Test') + group.add_argument('--LoadLibrary', '-L',action='append', default=[]) def attach_args(self, group): CombineToolBase.attach_args(self, group) @@ -72,6 +73,10 @@ def run_method(self): if self.args.setParameters is not None: passthru.extend(['--setParameters', self.args.setParameters]) self.args.setPhysicsModelParameters = self.args.setParameters + for l in self.args.LoadLibrary: + passthru.extend(["-L",l]) + print "* loading library",l + ROOT.gSystem.Load(l) pass_str = ' '.join(passthru) paramList = []