Skip to content
Snippets Groups Projects
Commit e60ebbe1 authored by Vakhtang Tsulaia's avatar Vakhtang Tsulaia
Browse files

Merge branch 'htl_slimming_flag' into 'master'

Add flag to enable/disable Trigger navigation slimming

See merge request atlas/athena!23375
parents d40b1551 8d98510e
No related branches found
No related tags found
No related merge requests found
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration # Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
from TriggerJobOpts.TriggerFlags import TriggerFlags from TriggerJobOpts.TriggerFlags import TriggerFlags
from AthenaCommon.Logging import logging from AthenaCommon.Logging import logging
...@@ -441,14 +441,13 @@ class HLTTriggerResultGetter(Configured): ...@@ -441,14 +441,13 @@ class HLTTriggerResultGetter(Configured):
from AthenaCommon.AppMgr import ServiceMgr as svcMgr from AthenaCommon.AppMgr import ServiceMgr as svcMgr
from AthenaServices.Configurables import ThinningSvc, createThinningSvc from AthenaServices.Configurables import ThinningSvc, createThinningSvc
_doSlimming = True if TriggerFlags.doNavigationSlimming() and rec.readRDO() and rec.doWriteAOD():
if _doSlimming and rec.readRDO() and rec.doWriteAOD():
if not hasattr(svcMgr, 'ThinningSvc'): # if the default is there it is configured for AODs if not hasattr(svcMgr, 'ThinningSvc'): # if the default is there it is configured for AODs
svcMgr += ThinningSvc(name='ThinningSvc', Streams=['StreamAOD']) svcMgr += ThinningSvc(name='ThinningSvc', Streams=['StreamAOD'])
_addSlimming('StreamAOD', svcMgr.ThinningSvc, _TriggerESDList ) #Use ESD item list also for AOD! _addSlimming('StreamAOD', svcMgr.ThinningSvc, _TriggerESDList ) #Use ESD item list also for AOD!
log.info("configured navigation slimming for AOD output") log.info("configured navigation slimming for AOD output")
if _doSlimming and rec.readRDO() and rec.doWriteESD(): #rec.doWriteESD() and not rec.readESD(): if TriggerFlags.doNavigationSlimming() and rec.readRDO() and rec.doWriteESD():
if not hasattr(svcMgr, 'ESDThinningSvc'): if not hasattr(svcMgr, 'ESDThinningSvc'):
svcMgr += ThinningSvc(name='ESDThinningSvc', Streams=['StreamESD']) # the default is configured for AODs svcMgr += ThinningSvc(name='ESDThinningSvc', Streams=['StreamESD']) # the default is configured for AODs
_addSlimming('StreamESD', svcMgr.ESDThinningSvc, _TriggerESDList ) _addSlimming('StreamESD', svcMgr.ESDThinningSvc, _TriggerESDList )
......
...@@ -365,6 +365,14 @@ class ESDEDMSet(JobProperty): ...@@ -365,6 +365,14 @@ class ESDEDMSet(JobProperty):
_flags.append(ESDEDMSet) _flags.append(ESDEDMSet)
class doNavigationSlimming(JobProperty):
"""Enable the trigger navigation slimming"""
statusOn=True
allowedType=['bool']
StoredValue=True
_flags.append(doNavigationSlimming)
class OnlineCondTag(JobProperty): class OnlineCondTag(JobProperty):
""" Default (online) HLT conditions tag """ """ Default (online) HLT conditions tag """
statusOn=True statusOn=True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment