From 1f24e70f6d0b0ddf4f945b7214306960655cc072 Mon Sep 17 00:00:00 2001
From: Oana Vickey Boeriu <oana.boeriu@cern.ch>
Date: Wed, 21 Oct 2020 09:27:38 +0000
Subject: [PATCH] Merge branch '21.2' into '21.2'

Set container splitlevel 1 for DAOD PHYSLITE

See merge request atlas/athena!36372

(cherry picked from commit c790ca4bdca5b36fc4e4ae5013225f42f6d61938)

a33831bb set container splitlevel 1 for phys/physlite
297597f1 only physlite
438e5cbd set to splitlevel 99
---
 .../python/MultipleStreamManager.py                       | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/Database/AthenaPOOL/OutputStreamAthenaPool/python/MultipleStreamManager.py b/Database/AthenaPOOL/OutputStreamAthenaPool/python/MultipleStreamManager.py
index ea94a0686e6..a0bb9d68b64 100644
--- a/Database/AthenaPOOL/OutputStreamAthenaPool/python/MultipleStreamManager.py
+++ b/Database/AthenaPOOL/OutputStreamAthenaPool/python/MultipleStreamManager.py
@@ -566,8 +566,12 @@ class MultipleStreamManager:
         theStream.Stream.WritingTool.SubLevelBranchName = "<key>"
         svcMgr.AthenaPoolCnvSvc.PoolAttributes += [ "DatabaseName = '" + FileName + "'; COMPRESSION_LEVEL = '5'" ]
         svcMgr.AthenaPoolCnvSvc.PoolAttributes += [ "DatabaseName = '" + FileName + "'; ContainerName = 'TTree=CollectionTree'; TREE_AUTO_FLUSH = '-20000000'" ]
-        svcMgr.AthenaPoolCnvSvc.PoolAttributes += [ "DatabaseName = '" + FileName + "'; ContainerName = 'TTree=CollectionTree'; CONTAINER_SPLITLEVEL = '0'" ]
-        svcMgr.AthenaPoolCnvSvc.PoolAttributes += [ "DatabaseName = '" + FileName + "'; ContainerName = 'TTree=Aux.'; CONTAINER_SPLITLEVEL = '0'"]
+        CONTAINER_SPLITLEVEL = 0
+        # stream names come from PhysicsAnalysis/DerivationFramework/DerivationFrameworkCore/python/DerivationFrameworkProdFlags.py
+        if StreamName in ["StreamDAOD_PHYSLITE"]:
+            CONTAINER_SPLITLEVEL = 99
+        svcMgr.AthenaPoolCnvSvc.PoolAttributes += [ "DatabaseName = '" + FileName + "'; ContainerName = 'TTree=CollectionTree'; CONTAINER_SPLITLEVEL = '" + str(CONTAINER_SPLITLEVEL) + "'" ]
+        svcMgr.AthenaPoolCnvSvc.PoolAttributes += [ "DatabaseName = '" + FileName + "'; ContainerName = 'TTree=Aux.'; CONTAINER_SPLITLEVEL = '" + str(CONTAINER_SPLITLEVEL) + "'"]
         return theStream
 
 
-- 
GitLab