1 #ifndef AliPHOSCpv3GConnection_h
2 #define AliPHOSCpv3GConnection_h
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
6 // Connection tables of pads within one 3Gassiplex card.
7 // 3Gassiplex card is a matrix of 8x6 pads.
8 // This class sets a correspondence between the absolute pad ID (0..47) and
9 // (x,z) position of this pad within a 3Gassiplex card
10 // Author: Sergey Evdokimov, IHEP Protvino. Oct-2014
15 class AliPHOSCpv3GConnection
18 AliPHOSCpv3GConnection();
19 Int_t Pad2X(Int_t pad) {return pad2x[pad]; }
20 Int_t Pad2Y(Int_t pad) {return pad2y[pad]; }
21 Int_t XY2Pad(Int_t x, Int_t y) {return xy2pad[x][y];}
23 Int_t pad2x[48]; //array of 48 elements containing 3gassiplex x coordinate for every channel
24 Int_t pad2y[48]; //array of 48 elements containing 3gassiplex x coordinate for every channel
25 Int_t xy2pad[8][6]; //2D array containing channels for every pad in 3gassiplex card
28 #endif //AliPHOSCpv3GConnection_h