3 #ifndef ALIL3TPCMAPPING_H
4 #define ALIL3TPCMAPPING_H
6 #include "AliL3RootTypes.h"
8 #define fNIROC_def 5504 //see ulis file
9 #define fNOROC_def 9984 //see ulis file
12 class AliL3TPCMapping {
15 static const Int_t fNIROC;
16 static const Int_t fIRows[fNIROC_def];
17 static const Int_t fIPad[fNIROC_def];
18 static const Int_t fICon[fNIROC_def];
19 static const Int_t fIPin[fNIROC_def];
20 static const Int_t fIFec[fNIROC_def];
21 static const Int_t fIFecChannel[fNIROC_def];
22 static const Int_t fIFecCon[fNIROC_def];
24 static const Int_t fNOROC;
25 static const Int_t fORows[fNOROC_def];
26 static const Int_t fOPad[fNOROC_def];
27 static const Int_t fOCon[fNOROC_def];
28 static const Int_t fOPin[fNOROC_def];
29 static const Int_t fOFec[fNOROC_def];
30 static const Int_t fOFecChannel[fNOROC_def];
31 static const Int_t fOFecCon[fNOROC_def];
34 //taken from GSI TPC numbering document
35 static Int_t GetRealNPads(Int_t slicerow); //Number of pads per row
36 static Double_t GetRealX(Int_t slicerow); //Local X in cm for modules 0,36
37 static Double_t GetRealY(Int_t slicerow, Int_t pad); //Local Y in cm for modules 0,36
39 ClassDef(AliL3TPCMapping,1)
52 g++ -O3 -c -o TPCMapping.o TPCMapping.C
53 g++ -O3 TPCMapping.o -o TPCMappingmain.app TPCMappingmain.C
59 TPCMapping(char *file);
64 void read(int* listofRCUs, int numofRCU);
66 void print(int index);
67 void print(int start, int end);
71 //COLUMN 0 -> INDEX (0 - 9983)
72 //COLUMN 1 -> PADROW (0 - 95)
73 //COLUMN 2 -> PAD (0 - (Np-1))
74 //COLUMN 3 -> Connector (1 - 468)
75 //COLUMN 4 -> Pin (0 - 22)
76 //COLUMN 5 -> FEC (0 - 77)
77 //COLUMN 6 -> FEC Channel (0 - 127)
78 //COLUMN 7 -> FEC Connector (0 - 5)
79 int getIndex(int index);
80 int getPadrow(int index);
81 int getPad(int index);
82 int getConnector(int index);
83 int getPin(int index);
84 int getFEC(int index);
85 int getFECchannel(int index);
86 int getFECconnector(int index);
87 int getAltroChannel(int index);
88 int getAltro(int index);
90 int getPadsperRow(int row);
97 short fIRORC [5504][8];