''' Created on July 18, 2014 @author: Hovanes Egiyan ''' import string from compiler.ast import List # Map that keeps the groups of the IOCs. The key is the IOC group name, the value is # list that has the list of IOC names belonging to this IOC group. iocGroupMap = dict() # Map of all hosts and ports assigned to IOC procServ processes. # It is hardcoded now, but should be read from a MySQL database # in the future, this will be changed to MySQL query hostPortMap = { # Master Oscillator Boards "HALLMO" : { "host":"rocstpsc1" , "port": 25062, "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocmoControl", "cmd":"hallMO.cmd", "title":"HALL D RF"} , "TAGMO" : { "host":"roctagmh" , "port": 25062, "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocmoControl", "cmd":"taggerMO.cmd", "title":"TAGGER HALL RF"} , # Sixty Hz applications "TGRSXTYHZ": { "host":"ioctagctrl" , "port": 25063, "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocstruckScaler", "cmd":"taggerSixtyHz.cmd", "title":"TAGGER 60Hz"} , "TOFSXTYHZ": { "host":"iocpulser1" , "port": 25063, "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocstruckScaler", "cmd":"tofSixtyHz.cmd", "title":"TOF 60Hz"} , "STSXTYHZ" : { "host":"iocpulser2" , "port": 25063, "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocstruckScaler", "cmd":"stSixtyHz.cmd", "title":"ST 60Hz"} , # Pulsers "DIRCPLSR" : { "host":"iocpulser1" , "port": 25066, "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocpulserV1495", "cmd":"pulserDIRC.cmd", "title":"DIRC LED PULSER"} , "ECPLSR" : { "host":"iocpulser1" , "port": 25067, "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocpulserV1495", "cmd":"pulserECAL.cmd", "title":"ECAL LED PULSER"} , "FCPLSR" : { "host":"iocpulser1" , "port": 25068, "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocpulserV1495", "cmd":"pulserFCAL.cmd", "title":"FCAL LED PULSER"} , "BCPLSR" : { "host":"iocpulser2" , "port": 25069, "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocpulserV1495", "cmd":"pulserBCAL.cmd", "title":"BCAL LED PULSER"} , # IOCs to control detector Voltages "TESTVLT": { "host":"gluonioc2" , "port": 25051, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"eel118-voltages.cmd", "title":"VOLTAGE TEST SETUP"} , "ACVLT": { "host":"gluonioc3" , "port": 25052, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"ac-voltages.cmd", "title":"AC VOLTAGES"} , "PLSRVLT": { "host":"gluonioc3" , "port": 25053, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"pulsers-voltages.cmd", "title":"PULSER VOLTAGES"} , "DIRCVLT": { "host":"gluonioc1" , "port": 25054, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"dirc-voltages.cmd", "title":"DIRC VOLTAGES"} , "ECALVLT" : { "host":"gluonioc3" , "port": 25055, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"ecal-voltages.cmd", "title":"ECAL VOLTAGES"} , "TPOLVLT" : { "host":"gluonioc3" , "port": 25056, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"tpol-voltages.cmd", "title":"TPOL VOLTAGES"} , "BEAMVLT" : { "host":"gluonioc1" , "port": 25057, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"beam-voltages.cmd", "title":"BEAMLINE VOLTAGES"} , "FMWPCVLT" : { "host":"gluonioc1" , "port": 25058, "enable":"disabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"fmwpc-voltages.cmd", "title":"FMWPC/CTOF VOLTAGES"} , "TAGHVLT" : { "host":"gluonioc1" , "port": 25059, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"tagh-voltages.cmd", "title":"TAGH VOLTAGES"} , "BPUVLT" : { "host":"gluonioc3" , "port": 25060, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"bpu-voltages.cmd", "title":"BPU VOLTAGES"} , "TAGMVLT" : { "host":"gluonioc1" , "port": 25061, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"tagm-voltages.cmd", "title":"TAGM VOLTAGES"} , "PSVLT" : { "host":"gluonioc1" , "port": 25062, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"ps-voltages.cmd", "title":"PS VOLTAGES"} , "STVLT" : { "host":"gluonioc1" , "port": 25063, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"st-voltages.cmd", "title":"ST VOLTAGES"} , "FDCVLT" : { "host":"gluonioc1" , "port": 25064, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"fdc-voltages.cmd", "title":"FDC VOLTAGES"} , "BCALVLT" : { "host":"gluonioc1" , "port": 25065, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"bcal-voltages.cmd", "title":"BCAL VOLTAGES"} , "CDCVLT" : { "host":"gluonioc1" , "port": 25066, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"cdc-voltages.cmd", "title":"CDC VOLTAGES"} , "TOFVLT" : { "host":"gluonioc1" , "port": 25068, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"tof-voltages.cmd", "title":"TOF VOLTAGES"} , "PSCVLT" : { "host":"gluonioc1" , "port": 25069, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"psc-voltages.cmd", "title":"PSC VOLTAGES"} , # PLC Interfaces "BCPLC" : { "host":"gluonioc1" , "port": 25070, "enable":"enabled", "path":"$APP/iocBoot/iocplc2epics", "cmd":"bcal-temperature.cmd", "title":"BCAL TEMP PLC INTERFACE"} , "FCPLC" : { "host":"gluonioc1" , "port": 25071, "enable":"enabled", "path":"$APP/iocBoot/iocplc2epics", "cmd":"fcal-darkroom.cmd", "title":"FCAL PLC INTERFACE" } , "GAS" : { "host":"gluonioc1" , "port": 25072, "enable":"enabled", "path":"$APP/iocBoot/iocplc2epics", "cmd":"gas.cmd", "title":"GAS PLC INTERFACE"} , "SOL" : { "host":"gluonioc1" , "port": 25073, "enable":"enabled", "path":"$APP/iocBoot/iocsolenoid", "cmd":"solenoid.cmd", "title":"SOLENOID PLC INTERFACE"} , "RESET" : { "host":"gluonioc1" , "port": 25074, "enable":"enabled", "path":"$APP/iocBoot/iocplc2epics", "cmd":"crate-reset.cmd", "title":"CRATE RESET PLC"} , # VME fan-tray parameters "VME" : { "host":"gluonioc1" , "port": 25081, "enable":"enabled", "path":"$APP/iocBoot/iocvmeCrates", "cmd":"vmeCrates.cmd", "title":"VME CRATES" } , # IOC for CA security control "CAS" : { "host":"gluonioc1" , "port": 25090, "enable":"enabled", "path":"$APP/iocBoot/ioccasSetup", "cmd":"casSetup.cmd", "title":"CA SECURITY" } , # CODA DAQ interface IOC "DAQ" : { "host":"gluonioc1" , "port": 25091, "enable":"enabled", "path":"$APP/iocBoot/iocdaqStatus", "cmd":"daqStatus.cmd", "title":"DAQ STATUS" } , # IOC for monitoring various components of the controls system "MON" : { "host":"gluonioc1" , "port": 25092, "enable":"enabled", "path":"$APP/iocBoot/iocmonitor", "cmd":"monitor.cmd", "title":"MONITORING OF CONTROLS"} , # IOCs for temporary readout of scalers "SCALER" : { "host":"gluonioc1" , "port": 25093, "enable":"enabled", "path":"$APP/iocBoot/iocpscScaler", "cmd":"pscScaler.cmd", "title":"SCALER DUMMY"} , "SCLRWF" : { "host":"gluonioc2" , "port": 25094, "enable":"enabled", "path":"$APP/iocBoot/iocscalerWaveform", "cmd":"scalerWaveform.cmd", "title":"SCALER WAVEFORMS"} , "ALARMSET" : { "host":"gluonioc1" , "port": 25095, "enable":"enabled", "path":"$APP/iocBoot/iocalarm", "cmd":"alarm.cmd", "title":"ALARM SETTINGS" } , "VLTMON" : { "host":"gluonioc1" , "port": 25096, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"voltage-monitor.cmd", "title":"VOLTAGE IOC MONITOR" } , # Solenoid PXI interfaces "PXI" : { "host":"gluonioc2" , "port": 26066, "enable":"enabled", "path":"$APP/iocBoot/iocpxiroot", "cmd":"pxiroot.cmd", "title":"SOLENOID PXI INTERFACE"} , # Chillers and FDC interlock "FDCCHIL" : { "host":"gluonioc1" , "port": 26061, "enable":"enabled", "path":"$APP/iocBoot/iocchiller", "cmd":"fdcChiller.cmd", "title":"FDC CHILLER"} , "INTRLCK" : { "host":"gluonioc1" , "port": 26062, "enable":"enabled", "path":"$APP/iocBoot/iocinterlock", "cmd":"softInterlock.cmd", "title":"SOFTWARE INTERLOCK"} , # "BCALCHIL" : { "host":"gluonioc1" , "port": 26063, "enable":"enabled", "path":"$APP/iocBoot/iocchiller", "cmd":"bcalChiller.cmd", "title":"BCAL CHILLER"} , # Active Collimator readout "ACROOT" : { "host":"gluonioc2" , "port": 26064, "enable":"enabled", "path":"$APP/iocBoot/iocacroot", "cmd":"acroot.cmd", "title":"AC DAQ"} , "ACPOS" : { "host":"gluonioc1" , "port": 26065, "enable":"enabled", "path":"$APP/iocBoot/iocactiveCollimator", "cmd":"activeCollimator.cmd", "title":"AC POSITIONS"} , # Hall probe "HLPRB" : { "host":"gluonioc1" , "port": 26068, "enable":"enabled", "path":"$APP/iocBoot/iochallprobe", "cmd":"hall_probe.cmd", "title":"PS HALL PROBE"} , # Beam Time Accounting "BTA" : { "host":"gluonioc1" , "port": 26069, "enable":"enabled", "path":"$APP/iocBoot/iocbta", "cmd":"bta.cmd", "title":"BEAM TIME ACCOUNTING"} , # Basic leve Motor controls "MTRHLD" : { "host":"gluonioc1" , "port": 26070, "enable":"enabled", "path":"$APP/iocBoot/iocxpsMotor", "cmd":"motorsHallD.cmd", "title":"HALL D MOTORS"} , "MTRTGR" : { "host":"gluonioc1" , "port": 26071, "enable":"enabled", "path":"$APP/iocBoot/iocxpsMotor", "cmd":"motorsTaggerHall.cmd", "title":"TAGGER HALL MOTORS"} , # Scans, goniometer alignment and other higher-level motor-related applications "COLMOTION": { "host":"gluonioc1" , "port": 26072, "enable":"enabled", "path":"$APP/iocBoot/ioccollimatorMotion", "cmd":"collimatorMotion.cmd", "title":"COLLIMATOR MOTION"} , "GONISCAN" : { "host":"gluonioc1" , "port": 26073, "enable":"enabled", "path":"$APP/iocBoot/iocxpsMotor", "cmd":"goniScanXY.cmd", "title":"GONIOMETER XY SCAN"} , "RADMOTION": { "host":"gluonioc1" , "port": 26074, "enable":"enabled", "path":"$APP/iocBoot/iocradiatorMotion", "cmd":"radiatorMotion.cmd", "title":"AMORPHOUS RADIATOR"} , "TAGMPOS" : { "host":"gluonioc1" , "port": 26075, "enable":"enabled","path":"$APP/iocBoot/iocuScopeMotion", "cmd":"uScopeMotion.cmd", "title":"TAGM MOTION"} , "CNVRTSCAN": { "host":"gluonioc1" , "port": 26076, "enable":"enabled", "path":"$APP/iocBoot/iocpsConverterMotion", "cmd":"psConverterMotion.cmd", "title":"PS CONVERTER"} , "CCLMOTION": { "host":"gluonioc1" , "port": 26077, "enable":"disabled", "path":"$APP/iocBoot/ioccompCalMotion", "cmd":"comCalMotion.cmd", "title":"COMCAL MOTION"} , "GONI" : { "host":"gluonioc1" , "port": 26080, "enable":"enabled", "path":"$APP/iocBoot/iocgoni", "cmd":"goni.cmd", "title":"GONIOMETER"} , "CBREM" : { "host":"gluonioc1" , "port": 26081, "enable":"enabled", "path":"$APP/iocBoot/ioccbrem", "cmd":"cbrem.cmd", "title":"COHERENT PEAK"} , # FCAL HV IOCs "FCALHV0" : { "host":"gluonioc3" , "port": 27000, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"fcal-voltage-0.cmd", "title":"FCAL HV 0"} , "FCALHV1" : { "host":"gluonioc3" , "port": 27001, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"fcal-voltage-1.cmd", "title":"FCAL HV 1"} , "FCALHV2" : { "host":"gluonioc3" , "port": 27002, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"fcal-voltage-2.cmd", "title":"FCAL HV 2"} , "FCALHV3" : { "host":"gluonioc3" , "port": 27003, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"fcal-voltage-3.cmd", "title":"FCAL HV 3"} , "FCALHV4" : { "host":"gluonioc3" , "port": 27004, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"fcal-voltage-4.cmd", "title":"FCAL HV 4"} , "FCALHV5" : { "host":"gluonioc3" , "port": 27005, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"fcal-voltage-5.cmd", "title":"FCAL HV 5"} , "FCALHV6" : { "host":"gluonioc3" , "port": 27006, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"fcal-voltage-6.cmd", "title":"FCAL HV 6"} , "FCALHV7" : { "host":"gluonioc3" , "port": 27007, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"fcal-voltage-7.cmd", "title":"FCAL HV 7"} , "FCALHV8" : { "host":"gluonioc3" , "port": 27008, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"fcal-voltage-8.cmd", "title":"FCAL HV 8"} , "FCALHV9" : { "host":"gluonioc3" , "port": 27009, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"fcal-voltage-9.cmd", "title":"FCAL HV 9"} , "FCALHV10" : { "host":"gluonioc3" , "port": 27010, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"fcal-voltage-10.cmd", "title":"FCAL HV 10"} , "FCALHV11" : { "host":"gluonioc3" , "port": 27011, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"fcal-voltage-11.cmd", "title":"FCAL HV 11"} , "FCALHV12" : { "host":"gluonioc3" , "port": 27012, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"fcal-voltage-12.cmd", "title":"FCAL HV 12"} , "FCALHV13" : { "host":"gluonioc3" , "port": 27013, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"fcal-voltage-13.cmd", "title":"FCAL HV 13"} , "FCALHV14" : { "host":"gluonioc3" , "port": 27014, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"fcal-voltage-14.cmd", "title":"FCAL HV 14"} , "FCALHV15" : { "host":"gluonioc3" , "port": 27015, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"fcal-voltage-15.cmd", "title":"FCAL HV 15"} , "FCALHV16" : { "host":"gluonioc3" , "port": 27016, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"fcal-voltage-16.cmd", "title":"FCAL HV 16"} , "FCALHV17" : { "host":"gluonioc3" , "port": 27017, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"fcal-voltage-17.cmd", "title":"FCAL HV 17"} , "FCALHV18" : { "host":"gluonioc3" , "port": 27018, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"fcal-voltage-18.cmd", "title":"FCAL HV 18"} , "FCALHV19" : { "host":"gluonioc3" , "port": 27019, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"fcal-voltage-19.cmd", "title":"FCAL HV 19"} , "FCALHV20" : { "host":"gluonioc3" , "port": 27020, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"fcal-voltage-20.cmd", "title":"FCAL HV 20"} , "FCALHV21" : { "host":"gluonioc3" , "port": 27021, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"fcal-voltage-21.cmd", "title":"FCAL HV 21"} , "FCALHV22" : { "host":"gluonioc3" , "port": 27022, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"fcal-voltage-22.cmd", "title":"FCAL HV 22"} , "FCALHV23" : { "host":"gluonioc3" , "port": 27023, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"fcal-voltage-23.cmd", "title":"FCAL HV 23"} , "FCALHV24" : { "host":"gluonioc3" , "port": 27024, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"fcal-voltage-24.cmd", "title":"FCAL HV 24"} , "FCALHV25" : { "host":"gluonioc3" , "port": 27025, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"fcal-voltage-25.cmd", "title":"FCAL HV 25"} , "FCALHV26" : { "host":"gluonioc3" , "port": 27026, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"fcal-voltage-26.cmd", "title":"FCAL HV 26"} , "FCALHV27" : { "host":"gluonioc3" , "port": 27027, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"fcal-voltage-27.cmd", "title":"FCAL HV 27"} , "FCALHV28" : { "host":"gluonioc3" , "port": 27028, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"fcal-voltage-28.cmd", "title":"FCAL HV 28"} , "FCALHV29" : { "host":"gluonioc3" , "port": 27029, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"fcal-voltage-29.cmd", "title":"FCAL HV 29"} , "FCALHV30" : { "host":"gluonioc3" , "port": 27030, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"fcal-voltage-30.cmd", "title":"FCAL HV 30"} , "FCALHV31" : { "host":"gluonioc3" , "port": 27031, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"fcal-voltage-31.cmd", "title":"FCAL HV 31"} , "FCALHV32" : { "host":"gluonioc3" , "port": 27032, "enable":"enabled", "path":"$APP/iocBoot/iocvoltage", "cmd":"fcal-voltage-32.cmd", "title":"FCAL HV 32"} , # ECAL "SCLRECAL1" : { "host":"rocecal1" , "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCECAL 1"} , "SCLRECAL2" : { "host":"rocecal2" , "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCECAL 2"} , "SCLRECAL3" : { "host":"rocecal3" , "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCECAL 3"} , "SCLRECAL4" : { "host":"rocecal4" , "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCECAL 4"} , "SCLRECAL5" : { "host":"rocecal5" , "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCECAL 5"} , "SCLRECAL6" : { "host":"rocecal6" , "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCECAL 6"} , "SCLRECAL7" : { "host":"rocecal7" , "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCECAL 7"} , #Scalers on ROCs # FCAL "SCLRFCAL1" : { "host":"rocfcal1" , "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCFCAL 1"} , "SCLRFCAL2" : { "host":"rocfcal2" , "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCFCAL 2"} , "SCLRFCAL3" : { "host":"rocfcal3" , "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCFCAL 3"} , "SCLRFCAL4" : { "host":"rocfcal4" , "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCFCAL 4"} , # "SCLRFCAL5" : { "host":"rocfcal5" , "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCFCAL 5"} , "SCLRFCAL6" : { "host":"rocfcal6" , "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCFCAL 6"} , "SCLRFCAL7" : { "host":"rocfcal7" , "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCFCAL 7"} , # "SCLRFCAL8" : { "host":"rocfcal8" , "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCFCAL 8"} , "SCLRFCAL9" : { "host":"rocfcal9" , "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCFCAL 9"} , "SCLRFCAL10": { "host":"rocfcal10" , "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCFCAL 10"} , "SCLRFCAL11": { "host":"rocfcal11" , "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCFCAL 11"} , "SCLRFCAL12": { "host":"rocfcal12" , "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCFCAL 12"} , # BCAL "SCLRBCAL1" : { "host":"rocbcal1" , "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCBCAL 1"} , "SCLRBCAL2" : { "host":"rocbcal2" , "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCBCAL 2"} , "SCLRBCAL3" : { "host":"rocbcal3" , "port":25061 , "enable":"disabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCBCAL 3"} , "SCLRBCAL4" : { "host":"rocbcal4" , "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCBCAL 4"} , "SCLRBCAL5" : { "host":"rocbcal5" , "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCBCAL 5"} , "SCLRBCAL6" : { "host":"rocbcal6" , "port":25061 , "enable":"disabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCBCAL 6"} , "SCLRBCAL7" : { "host":"rocbcal7" , "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCBCAL 7"} , "SCLRBCAL8" : { "host":"rocbcal8" , "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCBCAL 8"} , "SCLRBCAL9" : { "host":"rocbcal9" , "port":25061 , "enable":"disabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCBCAL 9"} , "SCLRBCAL10": { "host":"rocbcal10" , "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCBCAL 10"} , "SCLRBCAL11": { "host":"rocbcal11" , "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCBCAL 11"} , "SCLRBCAL12": { "host":"rocbcal12" , "port":25061 , "enable":"disabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCBCAL 12"} , "SCLRBCAL13": { "host":"rocbcal13" , "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCBCAL 13"} , "SCLRBCAL14": { "host":"rocbcal14" , "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCBCAL 14"} , "SCLRBCAL15": { "host":"rocbcal15" , "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCBCAL 15"} , "SCLRBCAL16": { "host":"rocbcal16" , "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCBCAL 16"} , # TAGM & TAGH "SCLRTAGM1": { "host":"roctagm1" , "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCTAGM 1"} , "SCLRTAGM2": { "host":"roctagm2" , "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCTAGM 2"} , "SCLRTAGMH": { "host":"roctagmh" , "port":25061 , "enable":"disabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCTAGMH"} , "SCLRTAGH1": { "host":"roctagh1" , "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCTAGH 1"} , "SCLRTAGH2": { "host":"roctagh2" , "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCTAGH 2"} , # ST and PS and PSC "SCLRST": { "host":"rocst" , "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCST"} , "SCLRSTPSC1": { "host":"rocstpsc1" , "port":25061 , "enable":"disabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCSTPSC 1"} , "SCLRSTPSC2": { "host":"rocstpsc2" , "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCSTPSC 2"} , "SCLRPS1": { "host":"rocps1" , "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCPS 1"} , "SCLRPS2": { "host":"rocps2" , "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCPS 2"} , "SCLRTOF1": { "host":"roctof1" , "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCTOF 1"} , "SCLRTOF2": { "host":"roctof2" , "port":25061 , "enable":"disabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCTOF 2"} , "SCLRTOF3": { "host":"roctof3" , "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCTOF 3"} , "SCLRDIRC": { "host":"rocdirc" , "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCDIRC"} , "SCLRCCAL": { "host":"rocccal" , "port":25061 , "enable":"disabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON ROCCCAL"} , "SCLRPULSER1":{ "host":"iocpulser1", "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON IOCPULSER 1"} , "SCLRPULSER2":{ "host":"iocpulser2", "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON IOCPULSER 2"} , "SCLRTAGCTRL":{ "host":"ioctagctrl", "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler", "cmd":"run_scalers_on_host.csh", "title":"SCALER ON IOCTAGCTRL"} , "SCLRBPU": { "host":"iocbpu" , "port":25061 , "enable":"enabled", "path":"/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocbeamProfiler", "cmd":"bpu.cmd" , "title":"SCALER ON IOCPBU"} } # Here we deal with the IOC for Scalers on ROCs rocList =["SCLRFCAL1","SCLRFCAL2","SCLRFCAL3","SCLRFCAL4","SCLRFCAL6","SCLRFCAL7","SCLRFCAL9","SCLRFCAL10","SCLRFCAL11","SCLRFCAL12", "SCLRBCAL1","SCLRBCAL2","SCLRBCAL3","SCLRBCAL4","SCLRBCAL5","SCLRBCAL6","SCLRBCAL7","SCLRBCAL8","SCLRBCAL9","SCLRBCAL10","SCLRBCAL11","SCLRBCAL12", "SCLRECAL1","SCLRECAL2","SCLRECAL3","SCLRECAL4","SCLRECAL5","SCLRECAL6","SCLRECAL7", "SCLRBCAL13","SCLRBCAL14","SCLRBCAL15","SCLRBCAL16","SCLRTAGM1","SCLRTAGM2","SCLRTAGMH","SCLRTAGH1","SCLRTAGH2","SCLRST","SCLRSTPSC1","SCLRSTPSC2", "SCLRPS1","SCLRPS2","SCLRPULSER1","SCLRPULSER2","SCLRTAGCTRL", "SCLRTOF1", "SCLRTOF2", "SCLRTOF3", "SCLRDIRC", "SCLRBPU" ] iocGroupMap["VME SCALERS"] = list() for iocName in rocList: iocGroupMap["VME SCALERS"].append(iocName) # Here we deal with the IOC for FCAL HV fcalList = ["FCALHV0" ,"FCALHV1" ,"FCALHV2","FCALHV3" ,"FCALHV4","FCALHV5" ,"FCALHV6" ,"FCALHV7" ,"FCALHV8" ,"FCALHV9", "FCALHV10","FCALHV11","FCALHV12","FCALHV13","FCALHV14","FCALHV15","FCALHV16","FCALHV17","FCALHV18","FCALHV19", "FCALHV20","FCALHV21","FCALHV22","FCALHV23","FCALHV24","FCALHV25","FCALHV26","FCALHV27","FCALHV28","FCALHV29", "FCALHV30","FCALHV31","FCALHV32" ] iocGroupMap["FCAL HV"] = list() for iocName in fcalList: iocGroupMap["FCAL HV"].append(iocName) # Here we deal with the general IOCs generalList = ["HALLMO","TAGMO","TGRSXTYHZ","TOFSXTYHZ","STSXTYHZ","FCPLSR","BCPLSR","ECPLSR","DIRCPLSR", "TPOLVLT","BEAMVLT","BPDVLT","TAGHVLT","BPUVLT","TAGMVLT","PSVLT","STVLT","FDCVLT","BCALVLT","CDCVLT","PLSRVLT", "ECALVLT","DIRCVLT","ACVLT","VLTMON", "TOFVLT","PSCVLT","FMWPCVLT","BCPLC","FCPLC","GAS","SOL","RESET","VME","CAS","DAQ", "MON","SCALER","SCLRWF","ALARMSET","PXI","FDCCHIL","INTRLCK","ACROOT","ACPOS","HLPRB","BTA", "MTRHLD","MTRTGR","COLMOTION","GONISCAN","RADMOTION","CNVRTSCAN","CCLMOTION","TAGMPOS","GONI","CBREM" ] iocGroupMap["GENERAL"] = list() for iocName in generalList: iocGroupMap["GENERAL"].append(iocName) # Here we deal with the all IOCs #iocGroupMap["ALL"] = list() #for iocName in rocList: # iocGroupMap["ALL"].append(iocName) #for iocName in fcalList: # iocGroupMap["ALL"].append(iocName) #for iocName in generalList: # iocGroupMap["ALL"].append(iocName) iocGroupMap["ALL"] = list() for iocName in hostPortMap.keys() : iocGroupMap["ALL"].append(iocName) # Here we deal with the IOC for scalers on ROCs #rocWithScalersList = [ # "rocfcal1", "rocfcal2", "rocfcal3", "rocfcal4", "rocfcal5", "rocfcal6", # "rocfcal7", "rocfcal8", "rocfcal9", "rocfcal10", "rocfcal11", "rocfcal12", # "rocbcal1", "rocbcal2", "rocbcal3", "rocbcal4", "rocbcal5", "rocbcal6", "rocbcal7", "rocbcal8", # "rocbcal9", "rocbcal10", "rocbcal11", "rocbcal12", "rocbcal13", "rocbcal14", "rocbcal15", "rocbcal16", # "roctagm1", "roctagm2", "roctagmh", "roctagh1", "roctagh2", # "rocst", "rocstpsc1", "rocstpsc2", "rocps1", "rocps2", # "iocpulser1", "iocpulser2", "ioctagctrl" # ] # rocWithScalersList = [ # "rocst", "rocstpsc2" # ] #scalerPort = 25061 #scalerPath = "/gluex/controls/epics/R3-14-12-3-RHEL5/app/iocBoot/iocjlabScaler" #scalerCmd = "run_scalers_on_host.csh" #scalerTitlePref = "" # #iocGroupMap["VMEBOARD"] = list() # Add VMEBOARD group of IOCs # #for rocName in rocWithScalersList : # iocName = rocName.replace( "roc", "brd" ) # iocName = iocName.replace( "ioc", "brd" ) # iocName = string.upper( iocName ) # # hostPortMap[iocName] = { "host":rocName, "port":scalerPort, "enable":"enabled", "path":scalerPath, "cmd":scalerCmd, # "title":"SCALER ON "+string.upper(rocName)} # iocGroupMap["VMEBOARD"].append(iocName)