]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FMD/AliFMDBoolMap.cxx
Compilation of AliAnalysisGoodies.cxx only if Root was compiled with XML support
[u/mrichter/AliRoot.git] / FMD / AliFMDBoolMap.cxx
index 3e72594db2ec43ae876cf176638650b9c576a2bd..218a078178a92e6f115d279e348b9762c07df641 100644 (file)
  * is provided "as is" without express or implied warranty.   *
  **************************************************************/
 /* $Id$ */
+/** @file    AliFMDBoolMap.cxx
+    @author  Christian Holm Christensen <cholm@nbi.dk>
+    @date    Sun Mar 26 18:28:42 2006
+    @brief   Per strip Boolean map
+*/
 //__________________________________________________________
 // 
 // Map of Bool_t for each FMD strip
@@ -35,20 +40,22 @@ AliFMDBoolMap::AliFMDBoolMap(const AliFMDBoolMap& other)
               other.fMaxRings,
               other.fMaxSectors,
               other.fMaxStrips),
+    fTotal(0),
     fData(0)
 {
   // Copy constructor
   fTotal = fMaxDetectors * fMaxRings * fMaxSectors * fMaxStrips;
   fData  = new Bool_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];
 }
 
 //__________________________________________________________
-AliFMDBoolMap::AliFMDBoolMap(size_t maxDet,
-                         size_t maxRing,
-                         size_t maxSec,
-                         size_t maxStr)
+AliFMDBoolMap::AliFMDBoolMap(UShort_t maxDet,
+                         UShort_t maxRing,
+                         UShort_t maxSec,
+                         UShort_t maxStr)
   : AliFMDMap(maxDet, maxRing, maxSec, maxStr),
+    fTotal(0),
     fData(0)
 {
   // Constructor.
@@ -74,7 +81,7 @@ AliFMDBoolMap::operator=(const AliFMDBoolMap& other)
   if (fData) delete [] fData;
   fTotal = fMaxDetectors * fMaxRings * fMaxSectors * fMaxStrips;
   fData  = new Bool_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;
 }
 
@@ -83,7 +90,7 @@ void
 AliFMDBoolMap::Reset(const Bool_t& val)
 {
   // Reset map to val
-  for (size_t i = 0; i < fTotal; i++) fData[i] = val;
+  for (Int_t i = 0; i < fTotal; i++) fData[i] = val;
 }
 
 //__________________________________________________________