24 for(
int i=1;
i<=6;
i++)
for(
int j=1;
j<=8;
j++) {
25 if(
i==1 ||
i==3 ||
i==5) {
26 if(
j<5) layer_wire_to_channel_[
i-1][
j-1] =
j+4;
27 if(
j>4) layer_wire_to_channel_[
i-1][
j-1] =
j+8;
29 if(
i==2 ||
i==4 ||
i==6) {
30 if(
j<5) layer_wire_to_channel_[
i-1][
j-1] =
j;
31 if(
j>4) layer_wire_to_channel_[
i-1][
j-1] =
j+4;
35 for(
int i=1;
i<=6;
i++)
for(
int j=1;
j<=8;
j++)
36 layer_wire_to_board_[
i-1][
j-1]=(
i-1)/2+1;
38 for(
int i=1;
i<=4;
i++)
for(
int j=1;
j<=3;
j++) {
40 if(
j==1) station_ring_to_nmxafeb_[
i-1][
j-1]=18;
41 if(
j==2) station_ring_to_nmxafeb_[
i-1][
j-1]=24;
42 if(
j==3) station_ring_to_nmxafeb_[
i-1][
j-1]=12;
45 if(
j==1) station_ring_to_nmxafeb_[
i-1][
j-1]=42;
46 if(
j==2) station_ring_to_nmxafeb_[
i-1][
j-1]=24;
47 if(
j==3) station_ring_to_nmxafeb_[
i-1][
j-1]=0;
50 if(
j==1) station_ring_to_nmxafeb_[
i-1][
j-1]=36;
51 if(
j==2) station_ring_to_nmxafeb_[
i-1][
j-1]=24;
52 if(
j==3) station_ring_to_nmxafeb_[
i-1][
j-1]=0;
55 if(
j==1) station_ring_to_nmxafeb_[
i-1][
j-1]=36;
56 if(
j==2) station_ring_to_nmxafeb_[
i-1][
j-1]=24;
57 if(
j==3) station_ring_to_nmxafeb_[
i-1][
j-1]=0;
61 for(
int i=1;
i<=4;
i++)
for(
int j=1;
j<=3;
j++) {
63 if(
j==1) station_ring_to_nmxwire_[
i-1][
j-1]=48;
64 if(
j==2) station_ring_to_nmxwire_[
i-1][
j-1]=64;
65 if(
j==3) station_ring_to_nmxwire_[
i-1][
j-1]=32;
68 if(
j==1) station_ring_to_nmxwire_[
i-1][
j-1]=112;
69 if(
j==2) station_ring_to_nmxwire_[
i-1][
j-1]=64;
70 if(
j==3) station_ring_to_nmxwire_[
i-1][
j-1]=0;
73 if(
j==1) station_ring_to_nmxwire_[
i-1][
j-1]=96;
74 if(
j==2) station_ring_to_nmxwire_[
i-1][
j-1]=64;
75 if(
j==3) station_ring_to_nmxwire_[
i-1][
j-1]=0;
78 if(
j==1) station_ring_to_nmxwire_[
i-1][
j-1]=96;
79 if(
j==2) station_ring_to_nmxwire_[
i-1][
j-1]=64;
80 if(
j==3) station_ring_to_nmxwire_[
i-1][
j-1]=0;
118 int getAfebCh(
int layer,
int wiregroup)
const;
120 int getAfebPos(
int layer,
int wiregroup)
const;
122 int getLayer(
int afeb,
int channel)
const;
int getAfebCh(int layer, int wiregroup) const
return AFEB channel number
int getMaxAfeb(int station, int ring) const
return max. number of AFEBs
int station_ring_to_nmxafeb_[4][3]
int getLayer(int afeb, int channel) const
return layer number
int getMaxWire(int station, int ring) const
return max. number of wiregroups per layer
int station_ring_to_nmxwire_[4][3]
int getWireGroup(int afeb, int channel) const
return wiregroup number
int layer_wire_to_channel_[6][8]
void print() const
Print content.
int getAfebPos(int layer, int wiregroup) const
return AFEB position number
int layer_wire_to_board_[6][8]