Added new classes for CPV raw data reconstruction
[u/mrichter/AliRoot.git] / PHOS / PHOSbase / AliPHOSCpv3GConnection.cxx
1 #include "AliPHOSCpv3GConnection.h"
2
3 AliPHOSCpv3GConnection::AliPHOSCpv3GConnection()
4 {
5   //version 1
6   // xy2pad[0][0]= 4;
7   // xy2pad[0][1]= 0;
8   // xy2pad[0][2]= 1;
9   // xy2pad[0][3]= 5;
10   // xy2pad[0][4]= 7;
11   // xy2pad[0][5]= 12;
12   // xy2pad[1][0]= 6;
13   // xy2pad[1][1]= 2;
14   // xy2pad[1][2]= 3;
15   // xy2pad[1][3]= 9;
16   // xy2pad[1][4]= 14;
17   // xy2pad[1][5]= 16;
18   // xy2pad[2][0]= 8;
19   // xy2pad[2][1]= 10;
20   // xy2pad[2][2]= 11;
21   // xy2pad[2][3]= 13;
22   // xy2pad[2][4]= 15;
23   // xy2pad[2][5]= 17;
24   // xy2pad[3][0]= 30;
25   // xy2pad[3][1]= 24;
26   // xy2pad[3][2]= 22;
27   // xy2pad[3][3]= 20;
28   // xy2pad[3][4]= 19;
29   // xy2pad[3][5]= 18;
30   // xy2pad[4][0]= 32;
31   // xy2pad[4][1]= 34;
32   // xy2pad[4][2]= 33;
33   // xy2pad[4][3]= 26;
34   // xy2pad[4][4]= 23;
35   // xy2pad[4][5]= 21;
36   // xy2pad[5][0]= 36;
37   // xy2pad[5][1]= 42;
38   // xy2pad[5][2]= 41;
39   // xy2pad[5][3]= 31;
40   // xy2pad[5][4]= 27;
41   // xy2pad[5][5]= 25;
42   // xy2pad[6][0]= 38;
43   // xy2pad[6][1]= 44;
44   // xy2pad[6][2]= 45;
45   // xy2pad[6][3]= 39;
46   // xy2pad[6][4]= 29;
47   // xy2pad[6][5]= 28;
48   // xy2pad[7][0]= 40;
49   // xy2pad[7][1]= 46;
50   // xy2pad[7][2]= 47;
51   // xy2pad[7][3]= 43;
52   // xy2pad[7][4]= 37;
53   // xy2pad[7][5]= 35;
54   
55   //version 2
56   // xy2pad[0][0]=35;
57   // xy2pad[0][1]=40;
58   // xy2pad[0][2]=42;
59   // xy2pad[0][3]=46;
60   // xy2pad[0][4]=47;
61   // xy2pad[0][5]=43;
62   // xy2pad[1][0]=31;
63   // xy2pad[1][1]=33;
64   // xy2pad[1][2]=38;
65   // xy2pad[1][3]=44;
66   // xy2pad[1][4]=45;
67   // xy2pad[1][5]=41;
68   // xy2pad[2][0]=30;
69   // xy2pad[2][1]=32;
70   // xy2pad[2][2]=34;
71   // xy2pad[2][3]=36;
72   // xy2pad[2][4]=37;
73   // xy2pad[2][5]=39;
74   // xy2pad[3][0]=29;
75   // xy2pad[3][1]=28;
76   // xy2pad[3][2]=27;
77   // xy2pad[3][3]=25;
78   // xy2pad[3][4]=23;
79   // xy2pad[3][5]=17;
80   // xy2pad[4][0]=26;
81   // xy2pad[4][1]=24;
82   // xy2pad[4][2]=21;
83   // xy2pad[4][3]=14;
84   // xy2pad[4][4]=13;
85   // xy2pad[4][5]=15;
86   // xy2pad[5][0]=22;
87   // xy2pad[5][1]=20;
88   // xy2pad[5][2]=16;
89   // xy2pad[5][3]=6;
90   // xy2pad[5][4]=5;
91   // xy2pad[5][5]=11;
92   // xy2pad[6][0]=19;
93   // xy2pad[6][1]=18;
94   // xy2pad[6][2]=8;
95   // xy2pad[6][3]=2;
96   // xy2pad[6][4]=3;
97   // xy2pad[6][5]=9;
98   // xy2pad[7][0]=12;
99   // xy2pad[7][1]=10;
100   // xy2pad[7][2]=4;
101   // xy2pad[7][3]=0;
102   // xy2pad[7][4]=1;
103   // xy2pad[7][5]=7;
104
105   //version 3
106   // xy2pad[0][0]=44;
107   // xy2pad[0][1]=39;
108   // xy2pad[0][2]=37;
109   // xy2pad[0][3]=33;
110   // xy2pad[0][4]=32;
111   // xy2pad[0][5]=36;
112   // xy2pad[1][0]=16;
113   // xy2pad[1][1]=46;
114   // xy2pad[1][2]=41;
115   // xy2pad[1][3]=35;
116   // xy2pad[1][4]=34;
117   // xy2pad[1][5]=38;
118   // xy2pad[2][0]=17;
119   // xy2pad[2][1]=47;
120   // xy2pad[2][2]=45;
121   // xy2pad[2][3]=43;
122   // xy2pad[2][4]=42;
123   // xy2pad[2][5]=40;
124   // xy2pad[3][0]=18;
125   // xy2pad[3][1]=19;
126   // xy2pad[3][2]=20;
127   // xy2pad[3][3]=22;
128   // xy2pad[3][4]=24;
129   // xy2pad[3][5]=30;
130   // xy2pad[4][0]=21;
131   // xy2pad[4][1]=23;
132   // xy2pad[4][2]=26;
133   // xy2pad[4][3]=1;
134   // xy2pad[4][4]=2;
135   // xy2pad[4][5]=0;
136   // xy2pad[5][0]=25;
137   // xy2pad[5][1]=27;
138   // xy2pad[5][2]=31;
139   // xy2pad[5][3]=9;
140   // xy2pad[5][4]=10;
141   // xy2pad[5][5]=4;
142   // xy2pad[6][0]=28;
143   // xy2pad[6][1]=29;
144   // xy2pad[6][2]=7;
145   // xy2pad[6][3]=13;
146   // xy2pad[6][4]=12;
147   // xy2pad[6][5]=6;
148   // xy2pad[7][0]=3;
149   // xy2pad[7][1]=5;
150   // xy2pad[7][2]=11;
151   // xy2pad[7][3]=15;
152   // xy2pad[7][4]=14;
153   // xy2pad[7][5]=8;
154
155   //version 4
156   xy2pad[0][0]= 3;
157   xy2pad[0][1]= 8;
158   xy2pad[0][2]=10;
159   xy2pad[0][3]=14;
160   xy2pad[0][4]=15;
161   xy2pad[0][5]=11;
162   xy2pad[1][0]=31;
163   xy2pad[1][1]= 1;
164   xy2pad[1][2]= 6;
165   xy2pad[1][3]=12;
166   xy2pad[1][4]=13;
167   xy2pad[1][5]= 9;
168   xy2pad[2][0]=30;
169   xy2pad[2][1]= 0;
170   xy2pad[2][2]= 2;
171   xy2pad[2][3]= 4;
172   xy2pad[2][4]= 5;
173   xy2pad[2][5]= 7;
174   xy2pad[3][0]=29;
175   xy2pad[3][1]=28;
176   xy2pad[3][2]=27;
177   xy2pad[3][3]=25;
178   xy2pad[3][4]=23;
179   xy2pad[3][5]=17;
180   xy2pad[4][0]=26;
181   xy2pad[4][1]=24;
182   xy2pad[4][2]=21;
183   xy2pad[4][3]=46;
184   xy2pad[4][4]=45;
185   xy2pad[4][5]=47;
186   xy2pad[5][0]=22;
187   xy2pad[5][1]=20;
188   xy2pad[5][2]=16;
189   xy2pad[5][3]=38;
190   xy2pad[5][4]=37;
191   xy2pad[5][5]=43;
192   xy2pad[6][0]=19;
193   xy2pad[6][1]=18;
194   xy2pad[6][2]=40;
195   xy2pad[6][3]=34;
196   xy2pad[6][4]=35;
197   xy2pad[6][5]=41;
198   xy2pad[7][0]=44;
199   xy2pad[7][1]=42;
200   xy2pad[7][2]=36;
201   xy2pad[7][3]=32;
202   xy2pad[7][4]=33;
203   xy2pad[7][5]=39;
204
205   for(Int_t iX=0;iX<8;iX++)
206     for(Int_t iY=0;iY<6;iY++){
207       pad2x[xy2pad[iX][iY]] = iX;
208       pad2y[xy2pad[iX][iY]] = iY;
209     }
210 }