ATLAS Offline Software
python
CondReader
Functions
python.CondReader Namespace Reference
Functions
def
run
(flags)
Function Documentation
◆
run()
def python.CondReader.run
(
flags
)
Configure conditions reader
Definition at line
11
of file
CondReader.py
.
11
def
run
(flags):
12
"""Configure conditions reader"""
13
14
flags.lock()
15
cfg =
ComponentAccumulator
()
16
17
from
SGComps.SGInputLoaderConfig
import
SGInputLoaderCfg
18
cfg.merge(
SGInputLoaderCfg
(flags, [(
'xAOD::EventInfo'
,
'StoreGateSvc+EventInfo'
)]))
19
20
# addFolders requires at least an empty sqlite file
21
Path(
'cond.db'
).touch()
22
23
# These folders are filled in Testing/condStopStart.trans
24
cfg.merge(
addFolders
(flags, [
'/DMTest/TestAttrList'
,
'/DMTest/TestAttrListTime'
],
25
detDb=
'cond.db'
,
26
tag=
'HEAD'
,
27
className=
'AthenaAttributeList'
) )
28
29
# Readers for run-based and time-based folders
30
cfg.addEventAlgo( CompFactory.DMTest.CondReaderAlg(
"CondReaderAlg1"
,
31
AttrListKey =
"/DMTest/TestAttrList"
,
32
S2Key =
""
) )
33
cfg.addEventAlgo( CompFactory.DMTest.CondReaderAlg(
"CondReaderAlg2"
,
34
AttrListKey =
"/DMTest/TestAttrListTime"
,
35
S2Key =
""
) )
36
# A dummy CondAlg
37
cfg.addCondAlgo( CompFactory.DMTest.CondAlg1() )
38
39
return
cfg
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition:
JetAnalysisCommon.py:302
run
int run(int argc, char *argv[])
Definition:
ttree2hdf5.cxx:28
SGInputLoaderConfig.SGInputLoaderCfg
def SGInputLoaderCfg(flags, Load=None, **kwargs)
Definition:
SGInputLoaderConfig.py:7
python.IOVDbSvcConfig.addFolders
def addFolders(flags, folderStrings, detDb=None, className=None, extensible=False, tag=None, db=None, modifiers='')
Definition:
IOVDbSvcConfig.py:72
Generated on Tue Jan 7 2025 22:02:02 for ATLAS Offline Software by
1.8.18