5 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
6 from AthenaConfiguration.ComponentFactory
import CompFactory
11 """Create default set of flags for tests"""
14 flags.Common.MsgSuppression =
False
15 flags.Exec.OutputLevel = DEBUG
16 flags.Input.Files = []
17 flags.Input.isMC =
True
18 flags.IOVDb.DBConnection =
"sqlite://;schema=mytest.db;dbname=TESTCOOL"
19 flags.IOVDb.DatabaseInstance =
""
20 flags.IOVDb.GlobalTag =
""
27 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
30 from IOVDbSvc.IOVDbSvcConfig
import IOVDbSvcCfg
34 acc.addService( CompFactory.IOVRegistrationSvc(OutputLevel = DEBUG) )
37 from McEventSelector.McEventSelectorConfig
import McEventSelectorCfg
45 TimeStampInterval = 5) )
47 from AthenaPoolCnvSvc.PoolCommonConfig
import AthenaPoolCnvSvcCfg
49 PoolContainerPrefix =
"CollectionTree",
50 StorageTechnology =
"ROOTTREE",
51 TopLevelContainerName =
"<type>",
52 SubLevelBranchName =
"") )
55 acc.addEventAlgo( CompFactory.IOVDbTestAlg(
58 StreamName =
"CondStream2",
61 RegisterIOV = registerIOV,
63 TagID =
"COOL-TEST-001",
66 acc.addPublicTool( CompFactory.AthenaOutputStreamTool(
"CondStream2",
67 OutputFile =
"SimplePoolFile.root") )
73 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
76 from IOVDbSvc.IOVDbSvcConfig
import IOVDbSvcCfg, addFolders
80 if len(flags.Input.Files) > 0:
81 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
84 from McEventSelector.McEventSelectorConfig
import McEventSelectorCfg
92 TimeStampInterval = 5) )
94 acc.addEventAlgo( CompFactory.IOVDbTestAlg(
97 WriteCondObjs =
False,
103 acc.merge(
addFolders(flags,
"/IOVDbTest/IOVDbTestMDTEleMap",
104 tag = f
"MDTEleMap_{t}" if overrideTag
else None) )
105 acc.merge(
addFolders(flags,
"/IOVDbTest/IOVDbTestAMDBCorrection",
106 tag = f
"AmdbCorrection_{t}" if overrideTag
else None) )
107 acc.merge(
addFolders(flags,
"/IOVDbTest/IOVDbTestAttrList",
108 tag = f
"AttrList_{t}" if overrideTag
else None) )
109 acc.merge(
addFolders(flags,
"/IOVDbTest/IOVDbTestAttrListColl",
110 tag = f
"AttrListColl_{t}" if overrideTag
else None) )
111 acc.merge(
addFolders(flags,
"/IOVDbTest/IOVDbTestMDTEleMapColl",
112 tag = f
"MDTEleMapColl_{t}" if overrideTag
else None) )