4 """Read versionname, layout and dbm from LArSwitches table
6 dbGeomCursor: AtlasGeoDBInterface instance
9 dbId, dbSwitches, dbParam = dbGeomCursor.GetCurrentLeafContent(
"LArSwitches")
10 params = {
"Sagging" :
None,
13 "FCal_GeoType" :
"UNDEFINED",
19 if "SAGGING" in dbParam:
20 params[
"Sagging"] = dbSwitches[key][dbParam.index(
"SAGGING")]
21 if "BARREL_ON" in dbParam:
22 params[
"BarrelOn"] = dbSwitches[key][dbParam.index(
"BARREL_ON")]
23 if "ENDCAP_ON" in dbParam :
24 params[
"EndcapOn"] = dbSwitches[key][dbParam.index(
"ENDCAP_ON")]
25 if "DETAILED_ABSORBER" in dbParam :
26 params[
"DetAbs"] = dbSwitches[key][dbParam.index(
"DETAILED_ABSORBER")]
27 if "DETAILED_ABSORBER_EC" in dbParam :
28 params[
"DetAbs_EC"] = dbSwitches[key][dbParam.index(
"DETAILED_ABSORBER_EC")]
29 if "FCAL_GEOTYPE" in dbParam :
30 params[
"FCal_GeoType"] = dbSwitches[key][dbParam.index(
"FCAL_GEOTYPE")]
35 """Read versionname, layout and dbm from LArSwitches table in SQLite
37 sqliteDbReader: AtlasGeoDBInterface_SQLite instance
40 dbData = sqliteDbReader.GetData(
"LArSwitches")
41 params = {
"Sagging" :
None,
44 "FCal_GeoType" :
"UNDEFINED",
49 if "SAGGING" in dbData[0].
keys():
50 params[
"Sagging"] = dbData[0][
"SAGGING"]
51 if "BARREL_ON" in dbData[0].
keys():
52 params[
"BarrelOn"] = dbData[0][
"BARREL_ON"]
53 if "ENDCAP_ON" in dbData[0].
keys():
54 params[
"EndcapOn"] = dbData[0][
"ENDCAP_ON"]
55 if "DETAILED_ABSORBER" in dbData[0].
keys():
56 params[
"DetAbs"] = dbData[0][
"DETAILED_ABSORBER"]
57 if "DETAILED_ABSORBER_EC" in dbData[0].
keys():
58 params[
"DetAbs_EC"] = dbData[0][
"DETAILED_ABSORBER_EC"]
59 if "FCAL_GEOTYPE" in dbData[0].
keys():
60 params[
"FCal_GeoType"] = dbData[0][
"FCAL_GEOTYPE"]