8 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
9 from AthenaConfiguration.ComponentFactory
import CompFactory
10 from AthenaConfiguration.MainServicesConfig
import MainEvgenServicesCfg
11 from MagFieldServices.MagFieldServicesConfig
import AtlasFieldCacheCondAlgCfg
13 from MagFieldServices.createDBForTest
import createDB
14 folder =
'/EXT/DCS/MAGNETS/SENSORDATA'
15 sqlite =
'magFieldSolenoid.db'
19 currents = [(0, 7730, 20400)]
26 flags.Input.Files = []
27 flags.Exec.MaxEvents = 1
28 flags.IOVDb.GlobalTag =
'CONDBR2-BLKPA-RUN2-01'
29 flags.IOVDb.SqliteInput = sqlite
30 flags.IOVDb.SqliteFolders = (folder,)
34 acc.getService(
'EventSelector').EventsPerLB = 1
38 acc.addEventAlgo(CompFactory.MagField.SolenoidTest(
'MagFieldSolenoidTest',
40 StepsPhi=5, HistStreamName=
"SolenoidTest"))
41 acc.addService(CompFactory.THistSvc(
42 Output=[
"SolenoidTest DATAFILE='solenoidTest.root' OPT='RECREATE'"]))
44 sys.exit(acc.run().isFailure())