]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/mapping/AliMpZone.cxx
Removed method
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpZone.cxx
index 2642d04a1005958375b8e22e8f7431f97dd06fd2..57fd51a7e2aa19da400e65cb64bbdffe62f43fc2 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
 }  
   
 //_____________________________________________________________________________
@@ -71,17 +77,33 @@ AliMpSubZone* AliMpZone::FindSubZone(AliMpVMotif* motif) const
 Int_t AliMpZone::GetNofSubZones() const 
 {
 // Returns number of row segments.
+// ---
 
+#ifdef WITH_STL
   return fSubZones.size();
+#endif
+
+#ifdef WITH_ROOT
+  return fSubZones.GetEntriesFast();
+#endif
 }  
 
 //_____________________________________________________________________________
 AliMpSubZone* AliMpZone::GetSubZone(Int_t i) const 
 {
+// Returns i-th sub zone.
+// ---
+
   if (i<0 || i>=GetNofSubZones()) {
     Warning("GetSubZone", "Index outside range");
     return 0;
   }
   
+#ifdef WITH_STL
   return fSubZones[i];  
+#endif
+
+#ifdef WITH_ROOT
+  return (AliMpSubZone*)fSubZones[i];  
+#endif
 }