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

Variables

str station_name = "BIS"
 Simple script to generate a BIS78 cabling map as used for the Monte Carlo processing.
int eta_index = 7
int doubletR = 1
int doubletPhi = 1
int sub_detector = 101
list idTranslateDict = []
list flatCableBIS78 = [0, 4, 8, 12, 16, 20, 24, 28, 1, 5, 9, 13, 17, 21, 25, 29, 2, 6, 10, 14, 18, 22, 26, 30, 3, 7, 11, 15, 19, 23, 27, 31]
 Now write the flat cabling.
list flatCableBIS78inv = [31, 27, 23, 19, 15, 11, 7, 3, 30, 26, 22, 18, 14, 10, 6, 2, 29, 25, 21, 17, 13, 9, 5, 1, 28, 24, 20, 16, 12, 8, 4, 0]
list readoutDict
dict cabling_data
dict json_dict

Variable Documentation

◆ cabling_data

dict createCablingJSON.cabling_data
Initial value:
1= {
2
3 "station": station_name,
4 "eta": eta_index,
5 "phi" : sector,
6 "doubletR" : doubletR,
7 "doubletZ" : doubZ,
8 "doubletPhi": doubletPhi,
9 "measPhi": measPhi,
10 "gasGap": gasGap + 1,
11
12 "subDetector": sub_detector,
13 "boardSector" : sector+16, # sectors from 0x0011 (17) to 0x0018 (24)
14 "flatCableId" : 0,
15 }

Definition at line 51 of file createCablingJSON.py.

◆ doubletPhi

int createCablingJSON.doubletPhi = 1

Definition at line 16 of file createCablingJSON.py.

◆ doubletR

int createCablingJSON.doubletR = 1

Definition at line 15 of file createCablingJSON.py.

◆ eta_index

int createCablingJSON.eta_index = 7

Definition at line 14 of file createCablingJSON.py.

◆ flatCableBIS78

list createCablingJSON.flatCableBIS78 = [0, 4, 8, 12, 16, 20, 24, 28, 1, 5, 9, 13, 17, 21, 25, 29, 2, 6, 10, 14, 18, 22, 26, 30, 3, 7, 11, 15, 19, 23, 27, 31]

Now write the flat cabling.

Definition at line 22 of file createCablingJSON.py.

◆ flatCableBIS78inv

list createCablingJSON.flatCableBIS78inv = [31, 27, 23, 19, 15, 11, 7, 3, 30, 26, 22, 18, 14, 10, 6, 2, 29, 25, 21, 17, 13, 9, 5, 1, 28, 24, 20, 16, 12, 8, 4, 0]

Definition at line 23 of file createCablingJSON.py.

◆ idTranslateDict

list createCablingJSON.idTranslateDict = []

Definition at line 18 of file createCablingJSON.py.

◆ json_dict

dict createCablingJSON.json_dict
Initial value:
1= {"chamberMap" : idTranslateDict,
2 "readoutCards": readoutDict }

Definition at line 147 of file createCablingJSON.py.

◆ readoutDict

list createCablingJSON.readoutDict
Initial value:
1= [
2{
3 "flatCableId" : 0,
4 "pinAssignment" : [(p+1,t) for t, p in enumerate(flatCableBIS78)]
5},
6{
7 "flatCableId" : 2,
8 "pinAssignment" : [(s,t) for s, t in enumerate([ 0, 8, 16, 24, 1, 9, 17, 25],1)]
9},
10{
11 "flatCableId" : 1,
12 "pinAssignment" : [(s,t) for s,t in enumerate([4,12,20,28,5,13, 21, 29, 6, 14, 22, 30, 7, 15, 23, 31],1)]
13},
14{
15 "flatCableId" : 3,
16 "pinAssignment" : [(p+1,t) for t, p in enumerate(flatCableBIS78inv)]
17},
18
19
20
21]

Definition at line 24 of file createCablingJSON.py.

◆ station_name

str createCablingJSON.station_name = "BIS"

Simple script to generate a BIS78 cabling map as used for the Monte Carlo processing.

The channel numbers are place holders for the final ones This cabling file describes the conenction between a set of channels of the flat cable and a set of detector strips, which is done sequentially. The nominal connection between TDC channelas anc Flat-Fable channels is specified in the following mapping (Flat-Cable-channel:TDC-channel) dictionary = {0x0000:0, 0x0004:1, 0x0008:2, 0x000c:3, 0x0010:4, 0x0014:5, 0x0018:6, 0x001c:7, 0x0001:8, 0x0005:9, 0x0009:10, 0x000d:11, 0x0011:12, 0x0015:13, 0x0019:14, 0x001d:15, 0x0002:16, 0x0006:17, 0x000a:18, 0x000e:19, 0x0012:20, 0x0016:21, 0x001a:22, 0x001e:23, 0x0003:24, 0x0007:25, 0x000b:26, 0x000f:27, 0x0013:28, 0x0017:29, 0x001b:30, 0x001f:31} By default this scrip associates the nominal TDC-FlatCable cabling ("tdcToFlatCableChan") to all TDCs, but this can be modified if needed. In order to have the mapping code working correctly, it is important that the full TDC-FlatCable mapping information is associated to each TDC, even if only a sub-set of TDC channels are connected to a set of strips

Definition at line 13 of file createCablingJSON.py.

◆ sub_detector

int createCablingJSON.sub_detector = 101

Definition at line 17 of file createCablingJSON.py.