]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/mapping/AliMpZone.cxx
STL=>ROOT for the mapping package. AliMpContainers.h for the compilation option WITH_...
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpZone.cxx
index 2642d04a1005958375b8e22e8f7431f97dd06fd2..d31a0b0abd354407a110f012e86d1ac9bb2d6948 100755 (executable)
@@ -49,7 +49,13 @@ void AliMpZone::AddSubZone(AliMpSubZone* subZone)
 // Adds row segment.
 // ---
 
+#ifdef WITH_STL
   fSubZones.push_back(subZone);
+#endif
+
+#ifdef WITH_ROOT
+  fSubZones.Add(subZone);
+#endif
 }  
   
 //_____________________________________________________________________________
@@ -72,7 +78,13 @@ Int_t AliMpZone::GetNofSubZones() const
 {
 // Returns number of row segments.
 
+#ifdef WITH_STL
   return fSubZones.size();
+#endif
+
+#ifdef WITH_ROOT
+  return fSubZones.GetEntriesFast();
+#endif
 }  
 
 //_____________________________________________________________________________
@@ -83,5 +95,11 @@ AliMpSubZone* AliMpZone::GetSubZone(Int_t i) const
     return 0;
   }
   
+#ifdef WITH_STL
   return fSubZones[i];  
+#endif
+
+#ifdef WITH_ROOT
+  return (AliMpSubZone*)fSubZones[i];  
+#endif
 }