ATLAS Offline Software
Loading...
Searching...
No Matches
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
11from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
12from AthenaConfiguration.ComponentFactory import CompFactory
13
14
15def 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