9 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
10 from AthenaConfiguration.ComponentFactory
import CompFactory
11 from IOVDbSvc.IOVDbSvcConfig
import addFolders
15 name =
'BunchGroupCondAlg'
19 if flags.IOVDb.DatabaseInstance ==
'COMP200':
20 folder =
'/TRIGGER/LVL1/BunchGroupContent'
23 result.merge (addFolders (flags, folder,
'TRIGGER', tag=
'HEAD',
24 className=
'AthenaAttributeList'))
26 BunchGroupCondAlg=CompFactory.BunchGroupCondAlg
27 alg = BunchGroupCondAlg (name,
28 BunchGroupFolderInputKey = folder,
29 BunchGroupOutputKey =
'BunchGroupCondData')
31 result.addCondAlgo (alg)
35 if __name__ ==
"__main__":
36 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
37 from AthenaConfiguration.TestDefaults
import defaultTestFiles
39 flags.Input.Files = defaultTestFiles.RAW_RUN2
43 flags1 = flags.clone()
44 flags1.Input.Files = defaultTestFiles.RAW_RUN2
45 flags1.Input.ProjectName =
'data12_8TeV'
47 acc1 = BunchGroupCondAlgCfg (flags1)
48 acc1.printCondAlgs(summariseProps=
True)
49 print (
'IOVDbSvc:', acc1.getService(
'IOVDbSvc').Folders)
53 flags2 = flags.clone()
54 flags2.Input.Files = defaultTestFiles.RAW_RUN2
56 acc2 = BunchGroupCondAlgCfg (flags2)
57 acc2.printCondAlgs(summariseProps=
True)
58 print (
'IOVDbSvc:', acc2.getServices())