![]() |
ATLAS Offline Software
|
Variables | |
| list | buffer = [] |
| re_ai = re.compile("ATLTILLV(\\d{2})(:ELMB/LVCAN.*_)(\\d*)/AI/M5VMB_TEMP2.value") | |
| re_states = re.compile("ATLTILLV(\\d{2})(:ELMB/LVCAN.*_)(\\d*)/states.ForDAQ_MBHV") | |
| re_hv = re.compile("ATLTILLV(\\d{2}):Drawer(\\d*).Readings.Monitoring.hvOut1.value") | |
| re_hvset = re.compile("ATLTILLV(\\d{2}):Drawer(\\d*).Readings.Requests.hvOut1.order") | |
| re_daq = re.compile("ATLTILSCS:DAQ(.*).state") | |
| dict | partitionID |
| par = sys.argv | |
| info = TileDCSDataInfo.TileDCSDataInfo() | |
| dbstring = info.get_dbstring('ORACLE',int(par[1]) if len(par)>1 and par[1].isdigit() else 2) | |
| db = ROOT.TSQLServer.Connect( dbstring[0], dbstring[1], dbstring[2]) | |
| str | statement = "select ELEMENT_NAME, SYS_ID, DP_ID from ATLAS_PVSSTIL.elements" |
| stmt = db.Statement(statement) | |
| element_name = stmt.GetString(0) | |
| sys_id = stmt.GetString(1) | |
| dp_id = stmt.GetString(2) | |
| channel_id = dp_id + ('000'+sys_id)[-3:] | |
| result_ai = re_ai.search(element_name) | |
| result_states = re_states.search(element_name) | |
| result_hv = re_hv.search(element_name) | |
| result_hvset = re_hvset.search(element_name) | |
| result_daq = re_daq.search(element_name) | |
| dict | partition = partitionID[int(result_ai.groups()[0])] |
| dict | drawer = partition+('00'+result_ai.groups()[2])[-2:] |
| str | oracleId = "ATLTILLV" |
| part = result_hv.groups() | |
| oldname = info.find_data_file("cool_channel_id.dat") | |
| str | newname = "cool_channel_id.dat" |
| file = open(newname,"w") | |
| list createCoolChannelIdFile.buffer = [] |
Definition at line 11 of file createCoolChannelIdFile.py.
Definition at line 51 of file createCoolChannelIdFile.py.
Definition at line 37 of file createCoolChannelIdFile.py.
| createCoolChannelIdFile.dbstring = info.get_dbstring('ORACLE',int(par[1]) if len(par)>1 and par[1].isdigit() else 2) |
Definition at line 30 of file createCoolChannelIdFile.py.
| createCoolChannelIdFile.dp_id = stmt.GetString(2) |
Definition at line 48 of file createCoolChannelIdFile.py.
| dict createCoolChannelIdFile.drawer = partition+('00'+result_ai.groups()[2])[-2:] |
Definition at line 62 of file createCoolChannelIdFile.py.
| createCoolChannelIdFile.element_name = stmt.GetString(0) |
Definition at line 46 of file createCoolChannelIdFile.py.
| createCoolChannelIdFile.file = open(newname,"w") |
Definition at line 109 of file createCoolChannelIdFile.py.
| createCoolChannelIdFile.info = TileDCSDataInfo.TileDCSDataInfo() |
Definition at line 29 of file createCoolChannelIdFile.py.
| str createCoolChannelIdFile.newname = "cool_channel_id.dat" |
Definition at line 105 of file createCoolChannelIdFile.py.
| createCoolChannelIdFile.oldname = info.find_data_file("cool_channel_id.dat") |
Definition at line 104 of file createCoolChannelIdFile.py.
| str createCoolChannelIdFile.oracleId = "ATLTILLV" |
Definition at line 63 of file createCoolChannelIdFile.py.
| createCoolChannelIdFile.par = sys.argv |
Definition at line 28 of file createCoolChannelIdFile.py.
| createCoolChannelIdFile.part = result_hv.groups() |
Definition at line 79 of file createCoolChannelIdFile.py.
| dict createCoolChannelIdFile.partition = partitionID[int(result_ai.groups()[0])] |
Definition at line 61 of file createCoolChannelIdFile.py.
| dict createCoolChannelIdFile.partitionID |
Definition at line 20 of file createCoolChannelIdFile.py.
| createCoolChannelIdFile.re_ai = re.compile("ATLTILLV(\\d{2})(:ELMB/LVCAN.*_)(\\d*)/AI/M5VMB_TEMP2.value") |
Definition at line 13 of file createCoolChannelIdFile.py.
| createCoolChannelIdFile.re_daq = re.compile("ATLTILSCS:DAQ(.*).state") |
Definition at line 17 of file createCoolChannelIdFile.py.
| createCoolChannelIdFile.re_hv = re.compile("ATLTILLV(\\d{2}):Drawer(\\d*).Readings.Monitoring.hvOut1.value") |
Definition at line 15 of file createCoolChannelIdFile.py.
| createCoolChannelIdFile.re_hvset = re.compile("ATLTILLV(\\d{2}):Drawer(\\d*).Readings.Requests.hvOut1.order") |
Definition at line 16 of file createCoolChannelIdFile.py.
| createCoolChannelIdFile.re_states = re.compile("ATLTILLV(\\d{2})(:ELMB/LVCAN.*_)(\\d*)/states.ForDAQ_MBHV") |
Definition at line 14 of file createCoolChannelIdFile.py.
| createCoolChannelIdFile.result_ai = re_ai.search(element_name) |
Definition at line 54 of file createCoolChannelIdFile.py.
| createCoolChannelIdFile.result_daq = re_daq.search(element_name) |
Definition at line 58 of file createCoolChannelIdFile.py.
| createCoolChannelIdFile.result_hv = re_hv.search(element_name) |
Definition at line 56 of file createCoolChannelIdFile.py.
| createCoolChannelIdFile.result_hvset = re_hvset.search(element_name) |
Definition at line 57 of file createCoolChannelIdFile.py.
| createCoolChannelIdFile.result_states = re_states.search(element_name) |
Definition at line 55 of file createCoolChannelIdFile.py.
| str createCoolChannelIdFile.statement = "select ELEMENT_NAME, SYS_ID, DP_ID from ATLAS_PVSSTIL.elements" |
Definition at line 40 of file createCoolChannelIdFile.py.
| createCoolChannelIdFile.stmt = db.Statement(statement) |
Definition at line 41 of file createCoolChannelIdFile.py.
| createCoolChannelIdFile.sys_id = stmt.GetString(1) |
Definition at line 47 of file createCoolChannelIdFile.py.