51 Returns a dictionary which represents a shift of a zebra connector
52
53 Parameters:
54 side (string) identifies the wheel: possible values "A" and "C"
55 sector (int) identifies the sector counting from 1 to 16
56 layer (int) identifies the detector layer whithin a given sector. Counts from 1 to 8
57 zebra (int) identifies the zebra connector number within a layer. Counting from 0 to 31
58 shift (int) indicates by how much and in which direction the channels in a given connector should be moved
59
60 Returns:
61 dictionary with the fields that the NSW cabling alg will use to apply the shift
62 '''
63 ret = dict()
64 ret["station"] = ("MML"if sector%2==1 else"MMS") # the even sectors are the small ones
65 ret["eta"] = (-1 if side == "C"else 1) * (1 if zebra < 20 else 2) # side C is indicated by a negative station eta while side A by a positive one. The first station eta (or quadruplet) consist of 5 PCBs per layer which corresponds to zebra connectors 0 to 19. Connector 20 to 31 are reading out abs(stationEta) 2
66 ret["phi"] = (sector-1)//2 + 1
67 ret["multilayer"] = (1 if layer <=4 else 2) # each multilayer consists of 4 layers
68 ret["gasgap"] = ((layer-1)%4) +1 # counting from 1 to 4
75 Returns a dictionary which represents a shift of a zebra connector
76
77 Parameters:
78 side (string) identifies the wheel: possible values "A" and "C"
79 sector (int) identifies the sector counting from 1 to 16
80 layer (int) identifies the detector layer whithin a given sector. Counts from 1 to 8
81 mmfe8 (int) identifies the MMFE8 number within a layer. Counting from 0 to 15
82 shift (int) indicates by how much and in which direction the channels in a given connector should be moved
83
84 Returns:
85 dictionary with the fields that the NSW cabling alg will use to apply the shift
86 '''
87 ret = dict()
88 ret["station"] = ("MML"if sector%2==1 else"MMS") # the even sectors are the small ones
89 ret["eta"] = (-1 if side == "C"else 1) * (1 if mmfe8 < 10 else 2) # side C is indicated by a negative station eta while side A by a positive one. The first station eta (or quadruplet) consist of 5 PCBs per layer which corresponds to MMFE8s 0 to 9. MMFE8 10 to 15 are reading out abs(stationEta) 2
90 ret["phi"] = (sector-1)//2 + 1
91 ret["multilayer"] = (1 if layer <=4 else 2) # each multilayer consists of 4 layers
92 ret["gasgap"] = ((layer-1)%4) +1 # counting from 1 to 4