]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/mapping/AliMpRow.cxx
In mapping:
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpRow.cxx
index 3a2ce1e0a825eff77be98a4dbc07ce0b8aa985ce..8c6d6520564fd75518a32efa86acc4fcd66ce4b5 100755 (executable)
@@ -71,14 +71,7 @@ AliMpRow::~AliMpRow()
 {
 /// Destructor 
 
-#ifdef WITH_STL
-  for (Int_t i=0; i<GetNofRowSegments(); i++)
-    delete fSegments[i]; 
-#endif
-
-#ifdef WITH_ROOT
   fSegments.Delete();
-#endif
 }
 
 //
@@ -173,13 +166,7 @@ void AliMpRow::AddRowSegment(AliMpVRowSegment* rowSegment)
 {
 /// Add row segment at the end.
 
-#ifdef WITH_STL
-  fSegments.push_back(rowSegment);
-#endif
-
-#ifdef WITH_ROOT
   fSegments.Add(rowSegment);
-#endif
 }  
   
 //_____________________________________________________________________________
@@ -187,13 +174,7 @@ void AliMpRow::AddRowSegmentInFront(AliMpVRowSegment* rowSegment)
 {
 /// Insert row segment in the first vector position.
 
-#ifdef WITH_STL
-  fSegments.insert(fSegments.begin(), rowSegment);
-#endif
-
-#ifdef WITH_ROOT
   fSegments.AddFirst(rowSegment);
-#endif
 }  
   
 //_____________________________________________________________________________
@@ -204,12 +185,7 @@ AliMpVRowSegment* AliMpRow::FindRowSegment(Double_t x) const
 
   for (Int_t i=0; i<GetNofRowSegments(); i++) {
 
-#ifdef WITH_STL
-    AliMpVRowSegment* rs = fSegments[i];
-#endif
-#ifdef WITH_ROOT
     AliMpVRowSegment* rs = (AliMpVRowSegment*)fSegments.At(i);
-#endif
 
     if (x >= rs->LeftBorderX() && x <= rs->RightBorderX())
       return rs;
@@ -438,13 +414,7 @@ Int_t AliMpRow::GetNofRowSegments() const
 {
 /// Return number of row segments.
 
-#ifdef WITH_STL
-  return fSegments.size();
-#endif
-
-#ifdef WITH_ROOT
   return fSegments.GetSize();
-#endif
 }  
 
 //_____________________________________________________________________________
@@ -457,12 +427,6 @@ AliMpVRowSegment* AliMpRow::GetRowSegment(Int_t i) const
     return 0;
   }
   
-#ifdef WITH_STL
-  return fSegments[i];  
-#endif
-
-#ifdef WITH_ROOT
   return (AliMpVRowSegment*)fSegments.At(i);  
-#endif
 }