From 4689158e31b7008f7212f374e1ed557d650a3019 Mon Sep 17 00:00:00 2001
From: Carlo Varni <cvarni@pc-tbed-pub-31.cern.ch>
Date: Mon, 12 Oct 2020 23:21:08 +0200
Subject: [PATCH] Minor changes

---
 .../JetTagAlgs/BTagging/python/BTagRun3Config.py       | 10 +++++-----
 .../JetTagAlgs/BTagging/python/JetBTaggerAlgConfig.py  |  9 +++++----
 2 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/PhysicsAnalysis/JetTagging/JetTagAlgs/BTagging/python/BTagRun3Config.py b/PhysicsAnalysis/JetTagging/JetTagAlgs/BTagging/python/BTagRun3Config.py
index 1603b7b9640..4805bb6c5b5 100644
--- a/PhysicsAnalysis/JetTagging/JetTagAlgs/BTagging/python/BTagRun3Config.py
+++ b/PhysicsAnalysis/JetTagging/JetTagAlgs/BTagging/python/BTagRun3Config.py
@@ -151,12 +151,12 @@ def PrepareStandAloneBTagCfg(inputFlags):
 
 def BTagRecoCfg(inputFlags, JetCollection = ['AntiKt4EMTopo'], **kwargs):  
 
-    seqName = "TopAlg"
-    from AthenaCommon.ConcurrencyFlags import jobproperties 
+    result=None
+    from AthenaCommon.ConcurrencyFlags import jobproperties
     if jobproperties.ConcurrencyFlags.NumThreads() >= 1 :
-        seqName = "AthAlgSeq"
-
-    result=ComponentAccumulator( seqName )
+        result=ComponentAccumulator()
+    else:
+        result=ComponentAccumulator( "TopAlg" )
 
     taggerList = inputFlags.BTagging.run2TaggersList
     result.merge(JetTagCalibCfg(inputFlags, TaggerList = taggerList, **kwargs))
diff --git a/PhysicsAnalysis/JetTagging/JetTagAlgs/BTagging/python/JetBTaggerAlgConfig.py b/PhysicsAnalysis/JetTagging/JetTagAlgs/BTagging/python/JetBTaggerAlgConfig.py
index 09cd4655918..80ed01efa83 100644
--- a/PhysicsAnalysis/JetTagging/JetTagAlgs/BTagging/python/JetBTaggerAlgConfig.py
+++ b/PhysicsAnalysis/JetTagging/JetTagAlgs/BTagging/python/JetBTaggerAlgConfig.py
@@ -10,13 +10,14 @@ from BTagging.BTagToolConfig import BTagToolCfg
 JetBTaggerAlg=CompFactory.Analysis.JetBTaggerAlg
 
 def JetBTaggerAlgCfg(ConfigFlags, JetCollection="", PrimaryVertexCollectionName="", TaggerList=[], SetupScheme="", **options):
-    
-    seqName = "TopAlg"
+
+    acc=None
     from AthenaCommon.ConcurrencyFlags import jobproperties
     if jobproperties.ConcurrencyFlags.NumThreads() >= 1 :
-        seqName = "AthAlgSeq"
+        acc=ComponentAccumulator()
+    else:
+        acc=ComponentAccumulator( "TopAlg" )
 
-    acc=ComponentAccumulator( seqName )
     jetcol = JetCollection
 
     # setup the Analysis__BTagTrackAssociation tool
-- 
GitLab