ClassImp(AliITSRawStreamSDD)
-const Int_t AliITSRawStreamSDD::fgkDDLsNumber;
-const Int_t AliITSRawStreamSDD::fgkModulesPerDDL;
-const Int_t AliITSRawStreamSDD::fgkDDLModuleMap[fgkDDLsNumber][fgkModulesPerDDL] = {
+const Int_t AliITSRawStreamSDD::fgkDDLModuleMap[kDDLsNumber][kModulesPerDDL] = {
{240,241,242,246,247,248,252,253,254,258,259,260,264,265,266,270,271,272,276,277,278,-1},
{243,244,245,249,250,251,255,256,257,261,262,263,267,268,269,273,274,275,279,280,281,-1},
{282,283,284,288,289,290,294,295,296,300,301,302,306,307,308,312,313,314,318,319,320,-1},
{412,413,414,415,420,421,422,423,428,429,430,431,436,437,438,439,444,445,446,447,452,453},
{416,417,418,419,424,425,426,427,432,433,434,435,440,441,442,443,448,449,450,451,456,457},
{454,455,460,461,462,463,468,469,470,471,476,477,478,479,484,485,486,487,492,493,494,495},
- {458,459,464,465,466,467,472,473,474,475,480,481,482,483,488,489,490,491,496,497,498,499}};
+ {458,459,464,465,466,467,472,473,474,475,480,481,482,483,488,489,490,491,496,497,498,499}
+};
AliITSRawStreamSDD::AliITSRawStreamSDD(AliRawReader* rawReader) :
Int_t GetAnode() const {return fCoord1;};
Int_t GetTime() const {return fCoord2;};
+ enum {kDDLsNumber = 12}; // number of DDLs in SDD
+ enum {kModulesPerDDL = 22}; // number of modules in each DDL
+
+ static Int_t GetModuleNumber(UInt_t iDDL, UInt_t iModule)
+ {return fgkDDLModuleMap[iDDL][iModule];}
+
private :
- static const Int_t fgkDDLsNumber = 12; // number of DDLs in SDD
- static const Int_t fgkModulesPerDDL = 22; // number of modules in each DDL
- static const Int_t fgkDDLModuleMap[fgkDDLsNumber][fgkModulesPerDDL]; // mapping DDL/module -> module number
+ static const Int_t fgkDDLModuleMap[kDDLsNumber][kModulesPerDDL]; // mapping DDL/module -> module number
UInt_t fData; // data read for file
ClassImp(AliITSRawStreamSPD)
+const Int_t AliITSRawStreamSPD::fgkDDLModuleMap[kDDLsNumber][kModulesPerDDL] = {
+ { 0, 1, 4, 5, 80, 81, 84, 85, 88, 89, 92, 93},
+ { 2, 3, 6, 7, 82, 83, 86, 87, 90, 91, 94, 95},
+ { 8, 9,12,13, 96, 97,100,101,104,105,108,109},
+ {10,11,14,15, 98, 99,102,103,106,107,110,111},
+ {16,17,20,21,112,113,116,117,120,121,124,125},
+ {18,19,22,23,114,115,118,119,122,123,126,127},
+ {24,25,28,29,128,129,132,133,136,137,140,141},
+ {26,27,30,31,130,131,134,135,138,139,142,143},
+ {32,33,36,37,144,145,148,149,152,153,156,157},
+ {34,35,38,39,146,147,150,151,154,155,158,159},
+ {40,41,44,45,160,161,164,165,168,169,172,173},
+ {42,43,46,47,162,163,166,167,170,171,174,175},
+ {48,49,52,53,176,177,180,181,184,185,188,189},
+ {50,51,54,55,178,179,182,183,186,187,190,191},
+ {56,57,60,61,192,193,196,197,200,201,204,205},
+ {58,59,62,63,194,195,198,199,202,203,206,207},
+ {64,65,68,69,208,209,212,213,216,217,220,221},
+ {66,67,70,71,210,211,214,215,218,219,222,223},
+ {72,73,76,77,224,225,228,229,232,233,236,237},
+ {74,75,78,79,226,227,230,231,234,235,238,239}
+};
+
+
AliITSRawStreamSPD::AliITSRawStreamSPD(AliRawReader* rawReader) :
AliITSRawStream(rawReader)
{
Int_t GetRow() const {return fCoord1;};
Int_t GetColumn() const {return fCoord2;};
+ enum {kDDLsNumber = 20}; // number of DDLs in SPD
+ enum {kModulesPerDDL = 12}; // number of modules in each DDL
+
+ static Int_t GetModuleNumber(UInt_t iDDL, UInt_t iModule)
+ {return fgkDDLModuleMap[iDDL][iModule];}
+
private :
+ static const Int_t fgkDDLModuleMap[kDDLsNumber][kModulesPerDDL]; // mapping DDL/module -> module number
+
UShort_t fData; // data read for file
UInt_t fOffset; // offset for cell column
UInt_t fHitCount; // counter of hits
ClassImp(AliITSRawStreamSSD)
-const Int_t AliITSRawStreamSSD::fgkDDLsNumber;
-const Int_t AliITSRawStreamSSD::fgkModulesPerDDL;
-const Int_t AliITSRawStreamSSD::fgkDDLModuleMap[fgkDDLsNumber][fgkModulesPerDDL] = {
+const Int_t AliITSRawStreamSSD::fgkDDLModuleMap[kDDLsNumber][kModulesPerDDL] = {
//104
//DDL[32][]=
{ 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510,
Int_t GetSideFlag() const {return fCoord1;};
Int_t GetStrip() const {return fCoord2;};
+ enum {kDDLsNumber = 16}; // number of DDLs in SSD
+ enum {kModulesPerDDL = 109}; // number of modules in each DDL
+
+ static Int_t GetModuleNumber(UInt_t iDDL, UInt_t iModule)
+ {return fgkDDLModuleMap[iDDL][iModule];}
+
private :
- static const Int_t fgkDDLsNumber = 16; // number of DDLs in SSD
- static const Int_t fgkModulesPerDDL = 109; // number of modules in each DDL
- static const Int_t fgkDDLModuleMap[fgkDDLsNumber][fgkModulesPerDDL]; // mapping DDL/module -> module number
+ static const Int_t fgkDDLModuleMap[kDDLsNumber][kModulesPerDDL]; // mapping DDL/module -> module number
UInt_t fData; // data read for file