* about the suitability of this software for any purpose. It is *
* provided "as is" without express or implied warranty. *
**************************************************************************/
-
/* $Id$ */
-
+/** @file AliFMDUShortMap.cxx
+ @author Christian Holm Christensen <cholm@nbi.dk>
+ @date Mon Mar 27 12:48:18 2006
+ @brief Per strip of unisgned shorts (16 bit) data
+*/
//____________________________________________________________________
//
// A map of per strip UShort_t information (for example ADC values,
AliFMDUShortMap::AliFMDUShortMap(const AliFMDUShortMap& other)
: AliFMDMap(other.fMaxDetectors, other.fMaxRings, other.fMaxSectors,
other.fMaxStrips),
+ fTotal(0),
fData(0)
{
// CTOR
fTotal = fMaxDetectors * fMaxRings * fMaxSectors * fMaxStrips;
fData = new UShort_t[fTotal];
- for (size_t i = 0; i < fTotal; i++) fData[i] = other.fData[i];
+ for (Int_t i = 0; i < fTotal; i++) fData[i] = other.fData[i];
}
//____________________________________________________________________
-AliFMDUShortMap::AliFMDUShortMap(size_t maxDet,
- size_t maxRing,
- size_t maxSec,
- size_t maxStr)
+AliFMDUShortMap::AliFMDUShortMap(UShort_t maxDet,
+ UShort_t maxRing,
+ UShort_t maxSec,
+ UShort_t maxStr)
: AliFMDMap(maxDet, maxRing, maxSec, maxStr),
+ fTotal(0),
fData(0)
{
// Construct a map
if (fData) delete [] fData;
fTotal = fMaxDetectors * fMaxRings * fMaxSectors * fMaxStrips;
fData = new UShort_t[fTotal];
- for (size_t i = 0; i < fTotal; i++) fData[i] = other.fData[i];
+ for (Int_t i = 0; i < fTotal; i++) fData[i] = other.fData[i];
return *this;
}
AliFMDUShortMap::Reset(const UShort_t& val)
{
// Reset to val
- for (size_t i = 0; i < fTotal; i++) fData[i] = val;
+ for (Int_t i = 0; i < fTotal; i++) fData[i] = val;
}
//____________________________________________________________________