Read version name, layout and dbm from AtlasCommon table in SQLite
sqliteDbReader: AtlasGeoDBInterface_SQLite instance
Definition at line 25 of file CommonGeoDB.py.
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