ATLAS Offline Software
Loading...
Searching...
No Matches
python.EventBookkeeperToolsConfig Namespace Reference

Functions

 BookkeeperToolCfg (flags, name='BookkeeperTool', output_name='CutBookkeepers')
 BookkeeperDumperToolCfg (flags)
 CutFlowSvcCfg (flags, **kwargs)
 AllWrittenEventsCounterAlgCfg (flags)
 CutFlowOutputList (flags, output_name='CutBookkeepers')

Detailed Description

Define functions for event bookkeeping configuration using ComponentAccumulator

Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration

Function Documentation

◆ AllWrittenEventsCounterAlgCfg()

python.EventBookkeeperToolsConfig.AllWrittenEventsCounterAlgCfg ( flags)
AllWrittenEventsCounterAlg configuration

Definition at line 45 of file EventBookkeeperToolsConfig.py.

45def AllWrittenEventsCounterAlgCfg(flags):
46 """AllWrittenEventsCounterAlg configuration"""
47 acc = ComponentAccumulator(CompFactory.AthSequencer("AthOutSeq", StopOverride=True))
48 acc.addEventAlgo(CompFactory.AllWrittenEventsCounterAlg())
49 return acc
50
51

◆ BookkeeperDumperToolCfg()

python.EventBookkeeperToolsConfig.BookkeeperDumperToolCfg ( flags)
BookkeeperDumperTool configuration

Definition at line 20 of file EventBookkeeperToolsConfig.py.

20def BookkeeperDumperToolCfg(flags):
21 """BookkeeperDumperTool configuration"""
22 return MetaDataSvcCfg(flags, toolNames=['BookkeeperDumperTool'])
23
24

◆ BookkeeperToolCfg()

python.EventBookkeeperToolsConfig.BookkeeperToolCfg ( flags,
name = 'BookkeeperTool',
output_name = 'CutBookkeepers' )
BookkeeperTool config

Definition at line 10 of file EventBookkeeperToolsConfig.py.

10def BookkeeperToolCfg(flags, name='BookkeeperTool', output_name='CutBookkeepers'):
11 """BookkeeperTool config"""
12 tool = CompFactory.BookkeeperTool(name,
13 InputCollName = output_name,
14 OutputCollName = output_name)
15 acc = MetaDataSvcCfg(flags, tools=[tool])
16 acc.addPublicTool(tool)
17 return acc
18
19

◆ CutFlowOutputList()

python.EventBookkeeperToolsConfig.CutFlowOutputList ( flags,
output_name = 'CutBookkeepers' )
CutFlow output metadata list

Definition at line 52 of file EventBookkeeperToolsConfig.py.

52def CutFlowOutputList(flags, output_name='CutBookkeepers'):
53 """CutFlow output metadata list"""
54 return [
55 'xAOD::CutBookkeeperContainer#' + output_name + '*',
56 'xAOD::CutBookkeeperAuxContainer#' + output_name + '*Aux.*',
57 'xAOD::CutBookkeeperContainer#Incomplete' + output_name + '*',
58 'xAOD::CutBookkeeperAuxContainer#Incomplete' + output_name + '*Aux.*'
59 ]

◆ CutFlowSvcCfg()

python.EventBookkeeperToolsConfig.CutFlowSvcCfg ( flags,
** kwargs )
CutFlowSvc configuration

Definition at line 25 of file EventBookkeeperToolsConfig.py.

25def CutFlowSvcCfg(flags, **kwargs):
26 """CutFlowSvc configuration"""
27 acc = BookkeeperToolCfg(flags)
28
29 kwargs.setdefault('Configured', True)
30 # Determine current input stream name
31 kwargs.setdefault('InputStream', flags.Input.ProcessingTags[-1] if flags.Input.ProcessingTags else 'N/A')
32 # Configure skimming cycle
33 from AthenaConfiguration.AutoConfigFlags import GetFileMD
34 kwargs.setdefault('SkimmingCycle', GetFileMD(flags.Input.Files).get('currentCutCycle', -1) + 1)
35
36 # Init the service
37 acc.addService(CompFactory.CutFlowSvc(**kwargs))
38
39 # TODO: different sequence?
40 acc.addEventAlgo(CompFactory.AllExecutedEventsCounterAlg())
41
42 return acc
43
44
T * get(TKey *tobj)
get a TObject* from a TKey* (why can't a TObject be a TKey?)
Definition hcg.cxx:130