9 from MagFieldServices.createDBForTest
import createDB
10 folder =
'/EXT/DCS/MAGNETS/SENSORDATA'
11 sqlite =
'magfieldForTest.db'
16 currents = [(0, 7730, 20400),
36 from MagFieldServices.MagFieldServicesConfig
import AtlasFieldCacheCondAlgCfg
37 from AthenaConfiguration.MainServicesConfig
import MainEvgenServicesCfg
38 from AthenaConfiguration.ComponentFactory
import CompFactory
39 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
42 flags.Input.Files = []
43 flags.Concurrency.NumThreads = 1
44 flags.Exec.MaxEvents = currents[-1][0]+5
45 flags.IOVDb.GlobalTag =
'CONDBR2-BLKPA-RUN2-01'
46 flags.IOVDb.SqliteInput = sqlite
47 flags.IOVDb.SqliteFolders = (folder,)
51 acc.getService(
'EventSelector').EventsPerLB = 1
55 acc.addEventAlgo(CompFactory.MagField.CondReader(
'MagFieldCondReader'))
57 sys.exit(acc.run().isFailure())