1388 def channel2PMT(self,ros,drawer,chan):
1389 "Convert channel numbet to PMT number, negative for disconnected channels"
1390 "This takes ros [1-4], drawer [0-63], chan [0-47]"
1392 chan2PMT_LB=[ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
1393 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
1394 27, 26, 25, 30, 29, 28,-33,-32, 31, 36, 35, 34,
1395 39, 38, 37, 42, 41, 40, 45,-44, 43, 48, 47, 46 ]
1397 chan2PMT_EB=[ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
1398 13, 14, 15, 16, 17, 18,-19,-20, 21, 22, 23, 24,
1399 -27,-26,-25,-31,-32,-28, 33, 29, 30,-36,-35, 34,
1400 44, 38, 37, 43, 42, 41,-45,-39,-40,-48,-47,-46 ]
1402 chan2PMT_Sp=[ -1, -2, -3, -4, 5, 6, 7, 8, 9, 10, 11, 12,
1403 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
1404 -27,-26,-25,-31,-32,-28, 33, 29, 30,-36,-35, 34,
1405 44, 38, 37, 43, 42, 41,-45,-39,-40,-48,-47,-46 ]
1408 pmt = chan2PMT_LB[chan]
1409 elif (ros == 3
and drawer == 14)
or (ros == 4
and drawer == 17):
1410 pmt = chan2PMT_Sp[chan]
1412 pmt = chan2PMT_EB[chan]