]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FMD/AliFMDUShortMap.cxx
Added tpcrefit requirement for QA task, cut configuration for ESD Filter
[u/mrichter/AliRoot.git] / FMD / AliFMDUShortMap.cxx
index e026ebb5c781d360cdfadd936defa3f2c16fb889..b0e75f6e94d2238484e0c772ea0b97981f7dfc0d 100644 (file)
@@ -55,7 +55,7 @@ AliFMDUShortMap::AliFMDUShortMap(UShort_t maxDet,
                                 UShort_t maxSec, 
                                 UShort_t maxStr)
   : AliFMDMap(maxDet, maxRing, maxSec, maxStr), 
-    fTotal(0),
+    fTotal(fMaxDetectors * fMaxRings * fMaxSectors * fMaxStrips),
     fData(0)
 {
   // Construct a map
@@ -65,15 +65,28 @@ AliFMDUShortMap::AliFMDUShortMap(UShort_t maxDet,
   //     maxRinf      Maximum # of rings
   //     maxSec       Maximum # of sectors
   //     maxStr       Maximum # of strips
-  fTotal = fMaxDetectors * fMaxRings * fMaxSectors * fMaxStrips;
+  if (fTotal == 0) fTotal = 51200;
   fData  = new UShort_t[fTotal];
 }
 
+//____________________________________________________________________
+AliFMDUShortMap::AliFMDUShortMap()
+  : AliFMDMap(), 
+    fTotal(0),
+    fData(0)
+{
+  // Construct a map
+  //
+  // Parameters:
+  //     None
+}
+
 //____________________________________________________________________
 AliFMDUShortMap&
 AliFMDUShortMap::operator=(const AliFMDUShortMap& other) 
 {
   // Assignment operator
+  if (&other == this) return *this; 
   fMaxDetectors = other.fMaxDetectors;
   fMaxRings     = other.fMaxRings;
   fMaxSectors   = other.fMaxSectors;