Skip to content
Snippets Groups Projects
Commit 6eccb642 authored by Walter Lampl's avatar Walter Lampl Committed by Tadej Novak
Browse files

Improve cachability of ComponentAccumulator returned by IOVDbSvcCfg

Improve cachability of ComponentAccumulator returned by IOVDbSvcCfg
parent 08d9dd5d
No related branches found
No related tags found
No related merge requests found
......@@ -135,12 +135,12 @@ class AccumulatorDecorator:
for a in args:
if(not AccumulatorDecorator._hasHash(a)):
hashable_args = False
_msg.debug("Positional argument to AccumulatorDecorator __call__ is not hashable.")
_msg.debug("Positional argument %s to AccumulatorDecorator __call__ is not hashable.",str(a))
break
for k , v in kwargs.items():
if(not AccumulatorDecorator._hasHash(v)):
hashable_args = False
_msg.debug("Value in keyword argument to AccumulatorDecorator __call__ is not hashable.")
_msg.debug("Value in keyword argument %s to AccumulatorDecorator __call__ is not hashable.",str(k))
break
if(hashable_args):
# frozen set makes the order of keyword arguments irrelevant
......
......@@ -125,7 +125,8 @@ def addFolderList(flags, listOfFolderInfoTuple, extensible=False, db=None, modif
folders.append(fs)
result = IOVDbSvcCfg(flags, Folders=folders)
result = IOVDbSvcCfg(flags)
result.getPrimary().Folders+=folders
if loadFolders:
result.getCondAlgo('CondInputLoader').Load += loadFolders
from AthenaPoolCnvSvc.PoolCommonConfig import AthenaPoolCnvSvcCfg
......
......@@ -307,7 +307,9 @@ class rewriteLVL1(_modifier):
def preSetup(self, flags):
from AthenaConfiguration.ComponentAccumulator import CAtoGlobalWrapper
from TrigT1ResultByteStream.TrigT1ResultByteStreamConfig import L1TriggerByteStreamEncoderCfg
CAtoGlobalWrapper(L1TriggerByteStreamEncoderCfg, flags)
flags1=flags.clone()
flags1.lock()
CAtoGlobalWrapper(L1TriggerByteStreamEncoderCfg, flags1)
def postSetup(self, flags):
if not flags.Output.doWriteBS:
......@@ -449,7 +451,9 @@ class enableSchedulerMon(_modifier):
from AthenaConfiguration.ComponentAccumulator import CAtoGlobalWrapper
from TrigSteerMonitor.TrigSteerMonitorConfig import SchedulerMonSvcCfg
CAtoGlobalWrapper(SchedulerMonSvcCfg, flags)
flags1=flags.clone()
flags1.lock()
CAtoGlobalWrapper(SchedulerMonSvcCfg, flags1)
def postSetup(self, flags):
if flags.Trigger.Online.isPartition:
......
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