Skip to content
Snippets Groups Projects
Commit 3a1bba8f authored by Frank Berghaus's avatar Frank Berghaus :cityscape: Committed by Frank Winklmeier
Browse files

Disable RingSetConf in-file metadata

At the moment the RingSetConf in-file metadata is not friently to
MT-processing. As it is accessed by an algorithm it would need migrating
to MetaCont and ReadMetaHandle. However it is also safe to configure the
algorithm to neither read or write the metadata content. This disables
writing the RingSetConf. When the developers wish to return to using it
they will also modernize their usage of the in-file metadata
infrastructure to make it either thread safe or MT-friendly.
parent 1ef47c79
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ from CaloRingerAlgs.CaloRingerKeys import CaloRingerKeysDict
from CaloRingerAlgs.CaloRingerAlgorithmBuilder import CaloRingerAlgorithmBuilder
CRAlgBuilder = CaloRingerAlgorithmBuilder()
from CaloRingerAlgs.CaloRingerMetaDataBuilder import CaloRingerMetaDataBuilder
CRMetaDataBuilder = CaloRingerMetaDataBuilder()
CRMetaDataBuilder = CaloRingerMetaDataBuilder(disable=True)
if rec.doESD() and caloRingerFlags.buildCaloRingsOn() and CRAlgBuilder.usable():
LastCRWriter = CRMetaDataBuilder.getLastWriterHandle()
......
......@@ -93,7 +93,7 @@ if ( rec.doWriteAOD() or rec.doWriteESD() ) and caloRingerFlags.doWriteRingsToFi
# Get instance to the builder:
CRBuilder = CaloRingerAlgorithmBuilder()
# Get instance to the metadata builder:
CRMetaBuilder = CaloRingerMetaDataBuilder()
CRMetaBuilder = CaloRingerMetaDataBuilder(disable=True)
if CRBuilder.usable():
for cType, cKeys in CRBuilder.output().items():
......
......@@ -14,7 +14,7 @@ caloRingerFlags.doWriteRingsToFile = True
from CaloRingerAlgs.CaloRingerAlgorithmBuilder import CaloRingerAlgorithmBuilder
CRAlgBuilder = CaloRingerAlgorithmBuilder(disable = True)
from CaloRingerAlgs.CaloRingerMetaDataBuilder import CaloRingerMetaDataBuilder
CRMetaBuilder = CaloRingerMetaDataBuilder()
CRMetaBuilder = CaloRingerMetaDataBuilder(disable=True)
# Make sure all MetaData algoritms have the ringerOutputLevel
if CRMetaBuilder.usable():
......
......@@ -82,7 +82,7 @@ from PyUtils.MetaReaderPeeker import convert_metadata_items, metadata
metaItemDict = convert_metadata_items(layout='dict')
if CRAlgBuilder.usable() or (metaItemDict and any( ['RingSetConf' in key for key in metaItemDict ] )):
MetaDataBuilder = CaloRingerMetaDataBuilder()
MetaDataBuilder = CaloRingerMetaDataBuilder(disable=True)
# Make sure all MetaData algoritms have the ringerOutputLevel
if MetaDataBuilder.usable():
......
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