1 """Define functions for event bookkeeping configuration using ComponentAccumulator
3 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5 from AthenaConfiguration.ComponentFactory
import CompFactory
6 from AthenaServices.MetaDataSvcConfig
import MetaDataSvcCfg
10 """BookkeeperTool config"""
11 tool = CompFactory.BookkeeperTool(name,
12 InputCollName = output_name,
13 OutputCollName = output_name)
15 acc.addPublicTool(tool)
20 """BookkeeperDumperTool configuration"""
25 """CutFlowSvc configuration"""
28 kwargs.setdefault(
'Configured',
True)
30 kwargs.setdefault(
'InputStream', flags.Input.ProcessingTags[-1]
if flags.Input.ProcessingTags
else 'N/A')
32 from AthenaConfiguration.AutoConfigFlags
import GetFileMD
33 kwargs.setdefault(
'SkimmingCycle',
GetFileMD(flags.Input.Files).
get(
'currentCutCycle', -1) + 1)
36 acc.addService(CompFactory.CutFlowSvc(**kwargs))
39 acc.addEventAlgo(CompFactory.AllExecutedEventsCounterAlg())
45 """CutFlow output metadata list"""
47 'xAOD::CutBookkeeperContainer#' + output_name +
'*',
48 'xAOD::CutBookkeeperAuxContainer#' + output_name +
'*Aux.*',
49 'xAOD::CutBookkeeperContainer#Incomplete' + output_name +
'*',
50 'xAOD::CutBookkeeperAuxContainer#Incomplete' + output_name +
'*Aux.*'