]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/mapping/AliMpSubZone.cxx
Fix for the problem during PbPb run of Nov 2010 (Indra)
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpSubZone.cxx
index 430123f78f1653c7c79f40e9531fc276a4e688d4..8eef969944acd1c7c897f7334a96d3cd13d62bc5 100755 (executable)
  **************************************************************************/
 
 // $Id$
-// $MpId: AliMpSubZone.cxx,v 1.6 2005/08/26 15:43:36 ivana Exp $
+// $MpId: AliMpSubZone.cxx,v 1.8 2006/05/24 13:58:46 ivana Exp $
 // Category: sector
-//
+
+//-----------------------------------------------------------------------------
 // Class AliMpSubZone
 // ------------------
 // Class describing a zone segment composed of the 
 // line segments with the same motif type.
 // Included in AliRoot: 2003/05/02
 // Authors: David Guez, Ivana Hrivnacova; IPN Orsay
-
-#include <Riostream.h>
-#include <TError.h>
+//-----------------------------------------------------------------------------
 
 #include "AliMpSubZone.h"
 #include "AliMpVRowSegment.h"
 #include "AliMpVMotif.h"
 
+#include "AliLog.h"
+
+#include <Riostream.h>
+
+/// \cond CLASSIMP
 ClassImp(AliMpSubZone)
+/// \endcond
 
 //_____________________________________________________________________________
 AliMpSubZone::AliMpSubZone(AliMpVMotif* motif) 
   : TObject(),
-    fMotif(motif)
+    fMotif(motif),
+    fSegments()
 {
 /// Standard constructor
 }
@@ -44,43 +50,18 @@ AliMpSubZone::AliMpSubZone(AliMpVMotif* motif)
 //_____________________________________________________________________________
 AliMpSubZone::AliMpSubZone() 
   : TObject(),
-    fMotif(0)
+    fMotif(0),
+    fSegments()
 {
 /// Default constructor
 }
 
-//_____________________________________________________________________________
-AliMpSubZone::AliMpSubZone(const AliMpSubZone& right) 
-  : TObject(right) 
-{
-/// Protected copy constructor (not provided) 
-
-  Fatal("AliMpSubZone", "Copy constructor not provided.");
-}
-
 //_____________________________________________________________________________
 AliMpSubZone::~AliMpSubZone() 
 {
-// Destructor 
+/// Destructor 
 }
 
-//
-// operators
-//
-
-//_____________________________________________________________________________
-AliMpSubZone& AliMpSubZone::operator=(const AliMpSubZone& right)
-{
-/// Protected assignment operator (not provided)
-
-  // check assignment to self
-  if (this == &right) return *this;
-
-  Fatal("operator =", "Assignment operator not provided.");
-    
-  return *this;  
-}    
-
 //
 // public methods
 //
@@ -90,13 +71,7 @@ void AliMpSubZone::AddRowSegment(AliMpVRowSegment* rowSegment)
 {
 /// Add row segment.
 
-#ifdef WITH_STL
-  fSegments.push_back(rowSegment);
-#endif
-
-#ifdef WITH_ROOT
   fSegments.Add(rowSegment);
-#endif
 } 
 
 
@@ -122,13 +97,7 @@ Int_t AliMpSubZone::GetNofRowSegments() const
 {
 /// Return number of row segments.
 
-#ifdef WITH_STL
-  return fSegments.size();
-#endif
-
-#ifdef WITH_ROOT
   return fSegments.GetSize();
-#endif
 }  
 
 //_____________________________________________________________________________
@@ -137,17 +106,11 @@ AliMpVRowSegment* AliMpSubZone::GetRowSegment(Int_t i) const
 /// Return i-th row segment.
 
   if (i<0 || i>=GetNofRowSegments()) {
-    Warning("GetRowSegment", "Index outside range");
+    AliErrorStream() << "Index outside range" << endl;
     return 0;
   }
   
-#ifdef WITH_STL
-  return fSegments[i];  
-#endif
-
-#ifdef WITH_ROOT
   return (AliMpVRowSegment*)fSegments.At(i);  
-#endif
 }
 
 //_____________________________________________________________________________