7 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
8 from AthenaConfiguration.ComponentFactory
import CompFactory
14 from CaloRec.CaloBCIDCoeffsCondAlgConfig
import CaloBCIDCoeffsCondAlgCfg
15 result.merge (CaloBCIDCoeffsCondAlgCfg (flags))
17 if flags.Input.isMC
is False:
18 from LumiBlockComps.LuminosityCondAlgConfig
import LuminosityCondAlgCfg
19 result.merge (LuminosityCondAlgCfg (flags))
22 from LumiBlockComps.BunchCrossingCondAlgConfig
import BunchCrossingCondAlgCfg
26 CaloBCIDLumiCondAlg = CompFactory.CaloBCIDLumiCondAlg
27 alg = CaloBCIDLumiCondAlg (
'CaloBCIDLumiCondAlg',
28 CoeffsKey =
'CaloBCIDCoeffs',
29 BunchCrossingCondDataKey =
'BunchCrossingData',
30 LuminosityCondDataKey =
'LuminosityCondData',
31 isMC = flags.Input.isMC,
32 OutputLumiKey =
'CaloBCIDLumi')
33 result.addCondAlgo (alg)
38 if __name__ ==
"__main__":
39 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
40 from AthenaConfiguration.TestDefaults
import defaultGeometryTags, defaultTestFiles
42 only = [
'CaloBCIDCoeffsCondAlg',
43 'CaloBCIDLumiCondAlg',
45 'BunchCrossingCondAlg']
49 flags1.Input.Files = defaultTestFiles.RAW_RUN2
50 flags1.GeoModel.AtlasVersion = defaultGeometryTags.RUN2
52 acc1 = CaloBCIDLumiCondAlgCfg (flags1)
53 acc1.printConfig(summariseProps=
True, onlyComponents=only)
54 print (
'IOVDbSvc:', acc1.getService(
'IOVDbSvc').Folders)
59 flags2.Input.Files = defaultTestFiles.ESD
60 flags2.GeoModel.AtlasVersion = defaultGeometryTags.RUN2
62 acc2 = CaloBCIDLumiCondAlgCfg (flags2)
63 acc2.printConfig(summariseProps=
True, onlyComponents=only)
64 print (
'IOVDbSvc:', acc2.getService(
'IOVDbSvc').Folders)