fNplate = AliTOFConstants::fgkNPlates;
fNstrip = AliTOFConstants::fgkNStripC;
fNpx = AliTOFConstants::fgkNpadX;
- fNpy = AliTOFConstants::fgkNpadZ;
- fMaxIndex=fNSector*fNplate*fNstrip*fNpx*fNpy;
+ fNpz = AliTOFConstants::fgkNpadZ;
+ fMaxIndex=fNSector*fNplate*fNstrip*fNpx*fNpz;
fDigitMap = new Int_t[fMaxIndex];
fDigits = dig;
Clear();
// Return checked indices for vol
//
Int_t index=
- (vol[0]-1)*fNplate*fNstrip*fNpx*fNpy+ // sector
- (vol[1]-1)*fNstrip*fNpx*fNpy+ // plate
- (vol[2]-1)*fNpx*fNpy+ // strip
- (vol[3]-1)*fNpy+ // padx
- (vol[4]-1); // pady (=padz)
+ (vol[0]/*-1*/)*fNplate*fNstrip*fNpx*fNpz+ // sector
+ (vol[1]/*-1*/)*fNstrip*fNpx*fNpz+ // plate
+ (vol[2]/*-1*/)*fNpx*fNpz+ // strip
+ (vol[3]/*-1*/)*fNpz+ // padx
+ (vol[4]/*-1*/); // padz
if (index >= fMaxIndex) {
Error("AliTOFDigitMap","CheckedIndex - input outside bounds");
Int_t fNplate; // Number of plates
Int_t fNstrip; // Maximum number of strips
Int_t fNpx; // Number of pads in x
- Int_t fNpy; // Number of pads in y
+ Int_t fNpz; // Number of pads in z
TClonesArray *fDigits; // Pointer to sdigits
Int_t fMaxIndex; // maximum index in hit map