4 """Read muon geometry parameters
6 dbGeomCursor: AtlasGeoDBInterface instance
8 dbId, dbSwitches, dbParam = dbGeomCursor.GetCurrentLeafContent(
"MuonSwitches")
9 params = {
"Layout" :
"UNDEFINED",
20 if "LAYOUTNAME" in dbParam:
21 params[
"Layout"] = dbSwitches[key][dbParam.index(
"LAYOUTNAME")]
22 if "HASCSC" in dbParam:
23 params[
"HasCSC"] = (dbSwitches[key][dbParam.index(
"HASCSC")] != 0)
24 if "HASSTGC" in dbParam:
25 params[
"HasSTGC"] = (dbSwitches[key][dbParam.index(
"HASSTGC")] !=0)
26 if "HASMM" in dbParam:
27 params[
"HasMM"] = (dbSwitches[key][dbParam.index(
"HASMM")] != 0)
32 """Read muon geometry parameters from SQLite
34 sqliteDbReader: AtlasGeoDBInterface_SQLite instance
36 dbData = sqliteDbReader.GetData(
"MuonSwitches")
37 params = {
"Layout" :
"UNDEFINED",
47 if "LAYOUTNAME" in dbData[0].
keys():
48 params[
"Layout"] = dbData[0][
"LAYOUTNAME"]
49 if "hasCsc" in dbData[0].
keys():
50 params[
"HasCSC"] = (dbData[0][
"hasCsc"] != 0)
51 if "hasSTGC" in dbData[0].
keys():
52 params[
"HasSTGC"] = (dbData[0][
"hasSTGC"] !=0)
53 if "hasMM" in dbData[0].
keys():
54 params[
"HasMM"] = (dbData[0][
"hasMM"] != 0)
55 if "hasMdt" in dbData[0].
keys():
56 params[
"HasMDT"] = (dbData[0][
"hasMdt"] != 0)
57 if "hasRpc" in dbData[0].
keys():
58 params[
"HasRPC"] = (dbData[0][
"hasRpc"] != 0)
59 if "hasTgc" in dbData[0].
keys():
60 params[
"HasTGC"] = (dbData[0][
"hasTgc"] != 0)
61 if "isMuonR4Plugin" in dbData[0].
keys():
62 params[
"useR4Plugin"] = (dbData[0][
"isMuonR4Plugin"] != 0)