// Adds row segment.
// ---
+#ifdef WITH_STL
fSubZones.push_back(subZone);
+#endif
+
+#ifdef WITH_ROOT
+ fSubZones.Add(subZone);
+#endif
}
//_____________________________________________________________________________
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
}