]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/mapping/AliMpRow.cxx
Adding new libraries
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpRow.cxx
index d68f88f918203a9a3edd06d52cc9f2f0307b37f2..87592f70802ff9a049c56b089d66972c8ad95894 100755 (executable)
@@ -14,7 +14,7 @@
  **************************************************************************/
 
 // $Id$
-// $MpId: AliMpRow.cxx,v 1.7 2005/08/26 15:43:36 ivana Exp $
+// $MpId: AliMpRow.cxx,v 1.9 2006/05/24 13:58:46 ivana Exp $
 // Category: sector
 //
 // Class AliMpRow
 // Included in AliRoot: 2003/05/02
 // Authors: David Guez, Ivana Hrivnacova; IPN Orsay
 
-#include <Riostream.h>
-#include <TError.h>
-#include <TMath.h>
-
 #include "AliMpRow.h"
 #include "AliMpVRowSegment.h"
 #include "AliMpVRowSegmentSpecial.h"
 #include "AliMpMotifMap.h"
 #include "AliMpConstants.h"
 
+#include "AliLog.h"
+
+#include <TMath.h>
+#include <Riostream.h>
+
+/// \cond CLASSIMP
 ClassImp(AliMpRow)
+/// \endcond
 
 //_____________________________________________________________________________
 AliMpRow::AliMpRow(Int_t id, AliMpMotifMap* motifMap) 
@@ -61,15 +64,6 @@ AliMpRow::AliMpRow()
 /// Default constructor
 }
 
-//_____________________________________________________________________________
-AliMpRow::AliMpRow(const AliMpRow& right) 
-  : AliMpVIndexed(right) 
-{
-/// Protected copy constructor (not provided) 
-
-  Fatal("AliMpRow", "Copy constructor not provided.");
-}
-
 //_____________________________________________________________________________
 AliMpRow::~AliMpRow() 
 {
@@ -85,23 +79,6 @@ AliMpRow::~AliMpRow()
 #endif
 }
 
-//
-// operators
-//
-
-//_____________________________________________________________________________
-AliMpRow&  AliMpRow::operator=(const AliMpRow& right)
-{
-/// Protected assignment operator (not provided)
-
-  // check assignment to self
-  if (this == &right) return *this;
-
-  Fatal("operator =", "Assignment operator not provided.");
-    
-  return *this;  
-}    
-
 //
 // private methods
 //
@@ -308,7 +285,7 @@ void AliMpRow::SetMotifPositions()
 }    
 
 //_____________________________________________________________________________
-void AliMpRow::SetGlobalIndices(AliMpDirection constPadSizeDirection, 
+void AliMpRow::SetGlobalIndices(AliMp::Direction constPadSizeDirection, 
                                 AliMpRow* rowBefore)
 {
 /// Set the global indices limits to its row segments, motif positions
@@ -326,7 +303,7 @@ void AliMpRow::SetGlobalIndices(AliMpDirection constPadSizeDirection,
      
        // Find the y index value of the low edge
        if (rowBefore) {
-         if (constPadSizeDirection == kY) {
+         if (constPadSizeDirection == AliMp::kY) {
            iy = rowBefore->GetHighIndicesLimit().GetSecond()+1;
          } 
         else {
@@ -442,8 +419,6 @@ Double_t AliMpRow::SetOffsetY(Double_t offsetY)
      Double_t sizeY = GetRowSegment(i)->HalfSizeY();
      
      if (TMath::Abs(sizeY - rowSizeY) >= AliMpConstants::LengthTolerance()) {
-       //cout << GetID() << "th row " << i << "th segment " 
-       //     << sizeY << "  " << rowSizeY  << endl;
        Fatal("SetOffsetY", "Motif with different Y size in one row");
        return 0.;
      }  
@@ -476,7 +451,7 @@ AliMpVRowSegment* AliMpRow::GetRowSegment(Int_t i) const
 /// Return i-th row segment.
 
   if (i<0 || i>=GetNofRowSegments()) {
-    Warning("GetRowSegment", "Index outside range");
+    AliWarningStream() << "Index outside range" << endl;
     return 0;
   }