* provided "as is" without express or implied warranty. *
**************************************************************************/
+/*
+$Log$
+Revision 1.12 2007/02/20 15:57:00 decaro
+Raw data update: to read the TOF raw data defined in UNPACKED mode
+
+*/
////////////////////////////////////////////////////////////////////////
//
fNpx(-1),
fNpz(-1),
fMaxIndex(-1),
- fDigitMap(0x0),
- fTOFGeometry(new AliTOFGeometry())
+ fDigitMap(0x0)
{
//
// Default ctor
fNSector = AliTOFGeometry::NSectors();
fNplate = AliTOFGeometry::NPlates();
- fNstrip = fTOFGeometry->NStripC();//fTOFGeometry->NMaxNstrip();
+ fNstrip = AliTOFGeometry::NStripC();
fNpx = AliTOFGeometry::NpadX();
fNpz = AliTOFGeometry::NpadZ();
fMaxIndex=fNSector*fNplate*fNstrip*fNpx*fNpz;
fNpx(-1),
fNpz(-1),
fMaxIndex(-1),
- fDigitMap(0x0),
- fTOFGeometry(new AliTOFGeometry())
+ fDigitMap(0x0)
{
//
// Dummy copy constructor
for (Int_t i=0; i<fMaxIndex; i++) delete[] fDigitMap[i];
}
- fTOFGeometry = 0;
}
// Dummy assignment operator
return *this;
}
+////////////////////////////////////////////////////////////////////////
+Int_t AliTOFDigitMap::GetFilledCellNumber() const
+{
+ //
+ // Returns the number of filled cells of the TOF digit map
+ //
+
+ Int_t volume[5] = {-1, -1, -1, -1, -1};
+ Int_t counter = 0;
+
+ for (Int_t iSector=0; iSector<fNSector; iSector++)
+ for (Int_t iPlate=0; iPlate<fNplate; iPlate++)
+ for (Int_t iStrip=0; iStrip<fNstrip; iStrip++)
+ for (Int_t iPadX=0; iPadX<fNpx; iPadX++)
+ for (Int_t iPadZ=0; iPadZ<fNpz; iPadZ++)
+ {
+
+ volume[0] = iSector;
+ volume[1] = iPlate;
+ volume[2] = iStrip;
+ volume[3] = iPadX;
+ volume[4] = iPadZ;
+
+ //if (CheckedIndex(volume)!=-1) counter++;
+ if (GetDigitIndex(volume, 0)>0) counter++;
+ }
+
+ return counter;
+
+}