ATLAS Offline Software
Variables
createCablingJSON Namespace Reference

Variables

string station_name = "BIS"
 Simple script to generate a BIS78 cabling map as used for the Monte Carlo processing. More...
 
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. More...
 
list readoutDict
 
dictionary cabling_data
 
dictionary json_dict
 TDC. More...
 

Variable Documentation

◆ cabling_data

dictionary 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  "tdcSector" : sector*2+16, # sector A2 -> 0x0012, sector A4 -> 0x0014, ..., sector A12 -> 0x001c, ...,
14  "flatCableId" : 0,
15  }

Definition at line 46 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.

◆ idTranslateDict

list createCablingJSON.idTranslateDict = []

Definition at line 18 of file createCablingJSON.py.

◆ json_dict

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

TDC.

BIS7 BIS8 BIS7 BIS8 BIS7 BIS8 BIS7

Definition at line 137 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 
16 
17 ]

Definition at line 23 of file createCablingJSON.py.

◆ station_name

string 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.