ATLAS Offline Software
Loading...
Searching...
No Matches
Trigger
TrigValidation
TrigP1Test
python
CondReader.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2
#
3
# Test stop/start for conditions that are updated during the run.
4
#
5
6
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
7
from
AthenaConfiguration.ComponentFactory
import
CompFactory
8
from
IOVDbSvc.IOVDbSvcConfig
import
addFolders
9
from
pathlib
import
Path
10
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
run
Definition
run.py:1
Generated on
for ATLAS Offline Software by
1.14.0