4 """Read version name, layout and dbm from AtlasCommon table.
6 dbGeomCursor: AtlasGeoDBInterface instance
9 dbId, dbCommon, dbParam = dbGeomCursor.GetCurrentLeafContent(
"AtlasCommon")
11 params = {
"Run" :
"UNDEFINED",
12 "GeoType" :
"UNDEFINED",
14 "DetectorsConfigured":
False}
18 if "CONFIG" in dbParam :
19 params[
"Run"] = dbCommon[key][dbParam.index(
"CONFIG")]
20 if "GEOTYPE" in dbParam :
21 params[
"GeoType"] = dbCommon[key][dbParam.index(
"GEOTYPE")]
26 """Read version name, layout and dbm from AtlasCommon table in SQLite
28 sqliteDbReader: AtlasGeoDBInterface_SQLite instance
31 dbData = sqliteDbReader.GetData(
"AtlasCommon")
33 params = {
"Run" :
"UNDEFINED",
34 "GeoType" :
"UNDEFINED",
36 "DetectorsConfigured":
False}
39 if "CONFIG" in dbData[0].
keys():
40 params[
"Run"] = dbData[0][
"CONFIG"]
41 if "GEOTYPE" in dbData[0].
keys():
42 params[
"GeoType"] = dbData[0][
"GEOTYPE"]
45 dbData = sqliteDbReader.GetData(
"AAHEADER")
47 if "PluginNames" in dbData[0].
keys():
48 plugins = dbData[0][
"PluginNames"].
split(
";")
52 if "Beampipe" in plugins:
53 detectors.add(
"Bpipe")
55 if "Pixel" in plugins:
56 detectors.add(
"Pixel")
64 if "ITk" in plugins
or "ITkStrip" in plugins:
65 detectors.add(
"ITkStrip")
66 if "ITk" in plugins
or "ITkPixel" in plugins:
67 detectors.add(
"ITkPixel")
68 if "ITk" in plugins
or "BCMPrime" in plugins:
69 detectors.add(
"BCMPrime")
70 if "ITk" in plugins
or "PLR" in plugins:
82 params[
"Detectors"] = detectors
83 params[
"DetectorsConfigured"] =
True
88 """Read luminosity detectors from the DB
90 dbGeomCursor: AtlasGeoDBInterface instance
93 dbId, dbCommon, dbParam = dbGeomCursor.GetCurrentLeafContent(
"LuminositySwitches")
95 params = {
"BCMPrime" :
False,
100 if "BCMPRIME" in dbParam :
101 params[
"BCMPrime"] = dbCommon[key][dbParam.index(
"BCMPRIME")] == 1
102 if "PLR" in dbParam :
103 params[
"PLR"] = dbCommon[key][dbParam.index(
"PLR")] == 1
108 """Read luminosity detectors from LuminositySwitches table in the SQLite DB
110 sqliteDbReader: AtlasGeoDBInterface_SQLite instance
113 dbData = sqliteDbReader.GetData(
"LuminositySwitches")
115 params = {
"BCMPrime" :
False,
119 if "BCMPRIME" in dbData[0].
keys():
120 params[
"BCMPrime"] = dbData[0][
"BCMPRIME"] == 1
121 if "PLR" in dbData[0].
keys():
122 params[
"PLR"] = dbData[0][
"PLR"] == 1