Reading muon trigger scalers with the DA of the muon trigger and transfer
[u/mrichter/AliRoot.git] / PHOS / PHOSbase / AliPHOSCpv3GConnection.h
CommitLineData
0d931d35 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 <TROOT.h>
13#include <iostream>
14
15class AliPHOSCpv3GConnection
16{
17public:
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];}
22private:
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
26};
27
28#endif //AliPHOSCpv3GConnection_h