From 1a0fcc345f688a852a8172e5414ac825e7655b23 Mon Sep 17 00:00:00 2001 From: decaro Date: Thu, 12 Feb 2009 16:51:39 +0000 Subject: [PATCH] AliTOFDigitMap::GetFilledCellNumber method correction --- TOF/AliTOFDigitMap.cxx | 54 ++++++++++++++++-------------------------- 1 file changed, 21 insertions(+), 33 deletions(-) diff --git a/TOF/AliTOFDigitMap.cxx b/TOF/AliTOFDigitMap.cxx index 5da79352a6c..2d2b857adbf 100644 --- a/TOF/AliTOFDigitMap.cxx +++ b/TOF/AliTOFDigitMap.cxx @@ -241,6 +241,8 @@ Int_t AliTOFDigitMap::GetFilledCellNumber() const Int_t volume[5] = {-1, -1, -1, -1, -1}; Int_t counter = 0; + Bool_t checkContent = kFALSE; + for (Int_t iSector=0; iSector=0); + //if (CheckedIndex(volume)!=-1) counter++; - if (GetDigitIndex(volume, 0)>0) counter++; + if (checkContent) counter++; } return counter; @@ -279,9 +285,11 @@ Bool_t AliTOFDigitMap::StripDigitCheck(Int_t iSector, Int_t iPlate, Int_t iStrip { volume[3] = iPadX; volume[4] = iPadZ; - if (GetDigitIndex(volume, 0)>=0) { - counter = kTRUE; - break; + for (Int_t label=0; label=0) { + counter = kTRUE; + break; + } } } @@ -293,7 +301,8 @@ Bool_t AliTOFDigitMap::StripDigitCheck(Int_t iSector, Int_t iPlate, Int_t iStrip Int_t AliTOFDigitMap::DigitInStrip(Int_t iSector, Int_t iPlate, Int_t iStrip) const { // - // Returns: + // Returns number of digits in the strip iStrip, + // in the plate iPlate of the sector iSector // Int_t volume[5] = {iSector, iPlate, iStrip, -1, -1}; @@ -304,8 +313,8 @@ Int_t AliTOFDigitMap::DigitInStrip(Int_t iSector, Int_t iPlate, Int_t iStrip) co for (Int_t label=0; label=0) + counter++; } return counter; @@ -319,22 +328,12 @@ void AliTOFDigitMap::ResetDigitNumber(Int_t *vol, Int_t dig) // Reset digit into pad vol // - Int_t dummy = -1; - for (Int_t slot=0; slot=0) counter++; return counter; -- 2.43.0