21 from AthenaConfiguration.ComponentAccumulator
import CompFactory, ComponentAccumulator
26 from IOVDbSvc.IOVDbSvcConfig
import addFoldersSplitOnline
27 from IOVDbSvc.IOVDbSvcConfig
import addFolders
30 acc.merge(
addFolders(flags,
'/CALO/HadCalibration2/CaloEMFrac',
'CALO_ONL', className=
'CaloLocalHadCoeff', db=
'CONDBR2'))
31 acc.merge(
addFoldersSplitOnline(flags,
"INDET",
"/Indet/Onl/Beampos",
"/Indet/Beampos", className=
"AthenaAttributeList"))
51 schema =
"<db>sqlite://;schema=ExampleMC_Align.db;dbname=OFLP200</db>"
52 locFolder =
"/FWD/AFP/Align/Local"
53 locTag =
"<tag>AFPMCAlignLoc-329484-02</tag>"
54 globFolder =
"/FWD/AFP/Align/Global"
55 globTag =
"<tag>AFPMCAlignGlob-331020-01</tag>"
56 acc.merge(
addFolders(flags, schema+locFolder+locTag, className=
'CondAttrListCollection', db=
'OFLP200' ))
57 acc.merge(
addFolders(flags, schema+globFolder+globTag, className=
'CondAttrListCollection', db=
'OFLP200' ))
59 schema2 =
"<db>sqlite://;schema=ExampleMC_ToF.db;dbname=OFLP200</db>"
60 acc.merge(
addFolders(flags, schema2+
"/FWD/AFP/ToFParameters/Local", className=
'CondAttrListCollection', tag=
'AFPMCToFLoc-ideal-01', db=
'OFLP200' ))
61 acc.merge(
addFolders(flags, schema2+
"/FWD/AFP/ToFParameters/Vertex", className=
'CondAttrListCollection', tag=
'AFPMCToFVtx-ideal-01', db=
'OFLP200' ))
64 acc.addCondAlgo(CompFactory.AFPDBTester(
"AFPDBTester", locshiftXkey=
"/FWD/AFP/Align/Local", globshiftXkey=
"/FWD/AFP/Align/Global", locToFkey=
"/FWD/AFP/ToFParameters/Local", vtxToFkey=
"/FWD/AFP/ToFParameters/Vertex"))
71 if __name__ ==
"__main__":
72 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
73 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
78 flags.Scheduler.CheckDependencies =
True
79 flags.Scheduler.ShowDataDeps =
True
80 flags.Scheduler.ShowDataFlow =
True
81 flags.Scheduler.ShowControlFlow =
True
82 flags.Scheduler.EnableVerboseViews =
True
85 flags.Concurrency.NumThreads = 3
86 flags.Concurrency.NumConcurrentEvents = 5
88 flags.Exec.MaxEvents = 500
91 flags.IOVDb.GlobalTag =
"CONDBR2-BLKPA-2017-16"
92 from AthenaConfiguration.TestDefaults
import defaultGeometryTags
93 flags.GeoModel.AtlasVersion = defaultGeometryTags.RUN2
96 parser = flags.getArgumentParser()
97 args = flags.fillFromArgs(parser=parser)
102 from ByteStreamCnvSvc.ByteStreamConfig
import ByteStreamReadCfg
107 acc.foreach_component(
"*AFP*").OutputLevel=VERBOSE
108 acc.foreach_component(
"AFPDBTester").OutputLevel=DEBUG
109 acc.printConfig(withDetails=
True, summariseProps=
True)