-////////////////////////////////////////////////////////////////////////
-AliTOFDigitMap::AliTOFDigitMap(TClonesArray *dig)
-{
- //
- // ctor
- //
- // of course, these constants must not be hardwired
- // change later
-
- fNSector = AliTOFConstants::fgkNSectors;
- fNplate = AliTOFConstants::fgkNPlates;
- fNstrip = AliTOFConstants::fgkNStripC;
- fNpx = AliTOFConstants::fgkNpadX;
- fNpy = AliTOFConstants::fgkNpadZ;
- fMaxIndex=fNSector*fNplate*fNstrip*fNpx*fNpy;
- fDigitMap = new Int_t[fMaxIndex];
- fDigits = dig;
+ fNSector = AliTOFGeometry::NSectors();
+ fNplate = AliTOFGeometry::NPlates();
+ fNstrip = AliTOFGeometry::NStripC();
+ fNpx = AliTOFGeometry::NpadX();
+ fNpz = AliTOFGeometry::NpadZ();
+ fMaxIndex=fNSector*fNplate*fNstrip*fNpx*fNpz;
+
+ fDigitMap = new Int_t*[fMaxIndex];
+ for (Int_t i=0; i<fMaxIndex; i++) fDigitMap[i] = new Int_t[kMaxDigitsPerPad];