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