Line data Source code
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 */
5 :
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
11 :
12 : #include "Rtypes.h"
13 :
14 : class AliPHOSCpv3GConnection
15 : {
16 : public:
17 : AliPHOSCpv3GConnection();
18 0 : Int_t Pad2X(Int_t pad) {return pad2x[pad]; }
19 0 : Int_t Pad2Y(Int_t pad) {return pad2y[pad]; }
20 0 : Int_t XY2Pad(Int_t x, Int_t y) {return xy2pad[x][y];}
21 : private:
22 : Int_t pad2x[48]; //array of 48 elements containing 3gassiplex x coordinate for every channel
23 : Int_t pad2y[48]; //array of 48 elements containing 3gassiplex x coordinate for every channel
24 : Int_t xy2pad[8][6]; //2D array containing channels for every pad in 3gassiplex card
25 : };
26 :
27 : #endif //AliPHOSCpv3GConnection_h
|