ATLAS Offline Software
LBMetadataConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 
3 #
4 # @file EventCommonD3PDMaker/python/LBMetadataConfig.py
5 # @author scott snyder <snyder@bnl.gov>
6 # @date Nov, 2009
7 # @brief Return a configured LBMetadataTool.
8 #
9 
10 
11 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
12 from AthenaConfiguration.ComponentFactory import CompFactory
13 
14 
15 def LBMetadataCfg (flags):
16  acc = ComponentAccumulator()
17 
18  lbtool = CompFactory.LumiBlockMetaDataTool( 'LumiBlockMetaDataTool' )
19  acc.addPublicTool (lbtool)
20 
21  from AthenaServices.MetaDataSvcConfig import MetaDataSvcCfg
22  acc.merge (MetaDataSvcCfg (flags, tools = [lbtool]))
23 
24  acc.addPrivateTool (CompFactory.D3PD.LBMetadataTool (Metakey = 'Lumi/'))
25  return acc
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.LBMetadataConfig.LBMetadataCfg
def LBMetadataCfg(flags)
Definition: LBMetadataConfig.py:15