1177 def PMT2channel(self,ros,drawer,pmt):
1178 "Reorder the PMTs (SV: how to get that from region.py???)"
1179 "This takes ros [1-4], drawer [0-63], pmt [1-48]"
1181 PMT2chan_Special={1:0,2:1,3:2,4:3,5:4,6:5,7:6,8:7,9:8,10:9,
1182 11:10,12:11,13:12,14:13,15:14,16:15,17:16,18:17, 19:18, 20:19,
1183 21:20,22:21,23:22,24:23,27:24,26:25,25:26,31:27,32:28,28:29,
1184 33:30,29:31,30:32,36:33,35:34,34:35,44:36,38:37,37:38,43:39,42:40,
1185 41:41,45:42,39:43,40:44,48:45,47:46,46:47}
1188 PMT2chan_LB={1:0,2:1,3:2,4:3,5:4,6:5,7:6,8:7,9:8,10:9,
1189 11:10,12:11,13:12,14:13,15:14,16:15,17:16,18:17,19:18,20:19,
1190 21:20,22:21,23:22,24:23,27:24,26:25,25:26,30:27,29:28,28:29,
1191 33:30,32:31,31:32,36:33,35:34,34:35,39:36,38:37,37:38,42:39,41:40,
1192 40:41,45:42,44:43,43:44,48:45,47:46,46:47}
1195 PMT2chan_EB={1:0,2:1,3:2,4:3,5:4,6:5,7:6,8:7,9:8,10:9,
1196 11:10,12:11,13:12,14:13,15:14,16:15,17:16,18:17,19:18,20:19,
1197 21:20,22:21,23:22,24:23,25:24,26:25,27:26,28:27,31:28,32:29,
1198 33:30,29:31,30:32,35:33,36:34,34:35,44:36,38:37,37:38,43:39,42:40,
1199 41:41,39:42,40:43,45:44,46:45,47:46,48:47}
1202 chan = PMT2chan_LB[pmt]
1203 elif (ros == 3
and drawer == 14)
or (ros == 4
and drawer == 17):
1204 chan = PMT2chan_Special[pmt]
1206 chan = PMT2chan_EB[pmt]