9 from AthenaRootComps.Configurables
import createNtupleOutputStream
12 __all__ = [
'createNtupleOutputStream' ]
15 """ Helper method to configure Athena to write out ROOT files """
17 from AthenaCommon.Logging
import logging
18 msg = logging.getLogger(
'configureWriteAthenaRoot' )
19 msg.debug(
"Configuring Athena for writing ROOT files..." )
22 import AthenaRootComps.AthenaRootBase
25 from AthenaCommon.AppMgr import ServiceMgr as svcMgr
26 # Switch off splitting by setting default SplitLevel to 0
27 svcMgr.AthenaPoolCnvSvc.PoolAttributes += [ "DEFAULT_SPLITLEVEL ='0'" ]
28 # Set as default the member-wise streaming, ROOT default
29 svcMgr.AthenaPoolCnvSvc.PoolAttributes += [ "STREAM_MEMBER_WISE = '1'" ]
31 # Increase default BasketSize to 32K, ROOT default (but overwritten by POOL)
32 svcMgr.AthenaPoolCnvSvc.PoolAttributes += [ "DEFAULT_BUFFERSIZE = '32000'" ]
34 # Turn off auto_flush for DataHeader container to avoid basket optimization
35 svcMgr.AthenaPoolCnvSvc.PoolAttributes += [ "ContainerName = 'POOLContainer_DataHeader_p5'; TREE_AUTO_FLUSH = '0'" ]
36 svcMgr.AthenaPoolCnvSvc.PoolAttributes += [ "ContainerName = 'POOLContainer_DataHeaderForm_p5'; TREE_AUTO_FLUSH = '0'" ]
39 msg.debug(
"Configuring Athena for writing ROOT files... [DONE]" )
46 del _configureWriteAthenaRoot