ATLAS Offline Software
Loading...
Searching...
No Matches
createCoolChannelIdFile Namespace Reference

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")

Variable Documentation

◆ buffer

list createCoolChannelIdFile.buffer = []

Definition at line 11 of file createCoolChannelIdFile.py.

◆ channel_id

createCoolChannelIdFile.channel_id = dp_id + ('000'+sys_id)[-3:]

Definition at line 51 of file createCoolChannelIdFile.py.

◆ db

createCoolChannelIdFile.db = ROOT.TSQLServer.Connect( dbstring[0], dbstring[1], dbstring[2])

Definition at line 37 of file createCoolChannelIdFile.py.

◆ dbstring

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.

◆ dp_id

createCoolChannelIdFile.dp_id = stmt.GetString(2)

Definition at line 48 of file createCoolChannelIdFile.py.

◆ drawer

dict createCoolChannelIdFile.drawer = partition+('00'+result_ai.groups()[2])[-2:]

Definition at line 62 of file createCoolChannelIdFile.py.

◆ element_name

createCoolChannelIdFile.element_name = stmt.GetString(0)

Definition at line 46 of file createCoolChannelIdFile.py.

◆ file

createCoolChannelIdFile.file = open(newname,"w")

Definition at line 109 of file createCoolChannelIdFile.py.

◆ info

createCoolChannelIdFile.info = TileDCSDataInfo.TileDCSDataInfo()

Definition at line 29 of file createCoolChannelIdFile.py.

◆ newname

str createCoolChannelIdFile.newname = "cool_channel_id.dat"

Definition at line 105 of file createCoolChannelIdFile.py.

◆ oldname

createCoolChannelIdFile.oldname = info.find_data_file("cool_channel_id.dat")

Definition at line 104 of file createCoolChannelIdFile.py.

◆ oracleId

str createCoolChannelIdFile.oracleId = "ATLTILLV"

Definition at line 63 of file createCoolChannelIdFile.py.

◆ par

createCoolChannelIdFile.par = sys.argv

Definition at line 28 of file createCoolChannelIdFile.py.

◆ part

createCoolChannelIdFile.part = result_hv.groups()

Definition at line 79 of file createCoolChannelIdFile.py.

◆ partition

dict createCoolChannelIdFile.partition = partitionID[int(result_ai.groups()[0])]

Definition at line 61 of file createCoolChannelIdFile.py.

◆ partitionID

dict createCoolChannelIdFile.partitionID
Initial value:
1= { 0 : "EBA",
2 1 : "LBA",
3 2 : "LBC",
4 3 : "EBC"}

Definition at line 20 of file createCoolChannelIdFile.py.

◆ re_ai

createCoolChannelIdFile.re_ai = re.compile("ATLTILLV(\\d{2})(:ELMB/LVCAN.*_)(\\d*)/AI/M5VMB_TEMP2.value")

Definition at line 13 of file createCoolChannelIdFile.py.

◆ re_daq

createCoolChannelIdFile.re_daq = re.compile("ATLTILSCS:DAQ(.*).state")

Definition at line 17 of file createCoolChannelIdFile.py.

◆ re_hv

createCoolChannelIdFile.re_hv = re.compile("ATLTILLV(\\d{2}):Drawer(\\d*).Readings.Monitoring.hvOut1.value")

Definition at line 15 of file createCoolChannelIdFile.py.

◆ re_hvset

createCoolChannelIdFile.re_hvset = re.compile("ATLTILLV(\\d{2}):Drawer(\\d*).Readings.Requests.hvOut1.order")

Definition at line 16 of file createCoolChannelIdFile.py.

◆ re_states

createCoolChannelIdFile.re_states = re.compile("ATLTILLV(\\d{2})(:ELMB/LVCAN.*_)(\\d*)/states.ForDAQ_MBHV")

Definition at line 14 of file createCoolChannelIdFile.py.

◆ result_ai

createCoolChannelIdFile.result_ai = re_ai.search(element_name)

Definition at line 54 of file createCoolChannelIdFile.py.

◆ result_daq

createCoolChannelIdFile.result_daq = re_daq.search(element_name)

Definition at line 58 of file createCoolChannelIdFile.py.

◆ result_hv

createCoolChannelIdFile.result_hv = re_hv.search(element_name)

Definition at line 56 of file createCoolChannelIdFile.py.

◆ result_hvset

createCoolChannelIdFile.result_hvset = re_hvset.search(element_name)

Definition at line 57 of file createCoolChannelIdFile.py.

◆ result_states

createCoolChannelIdFile.result_states = re_states.search(element_name)

Definition at line 55 of file createCoolChannelIdFile.py.

◆ statement

str createCoolChannelIdFile.statement = "select ELEMENT_NAME, SYS_ID, DP_ID from ATLAS_PVSSTIL.elements"

Definition at line 40 of file createCoolChannelIdFile.py.

◆ stmt

createCoolChannelIdFile.stmt = db.Statement(statement)

Definition at line 41 of file createCoolChannelIdFile.py.

◆ sys_id

createCoolChannelIdFile.sys_id = stmt.GetString(1)

Definition at line 47 of file createCoolChannelIdFile.py.