]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/mapping/AliMpSubZone.cxx
Updates (N. Bastid)
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpSubZone.cxx
index 2d5b59ab75c351cc88ff4116e85c9e7ed39c1110..cc28804e17698de8e2f593d80b1c98b242284995 100755 (executable)
@@ -1,28 +1,47 @@
+/**************************************************************************
+ * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ *                                                                        *
+ * Author: The ALICE Off-line Project.                                    *
+ * Contributors are mentioned in the code where appropriate.              *
+ *                                                                        *
+ * Permission to use, copy, modify and distribute this software and its   *
+ * documentation strictly for non-commercial purposes is hereby granted   *
+ * without fee, provided that the above copyright notice appears in all   *
+ * copies and that both the copyright notice and this permission notice   *
+ * appear in the supporting documentation. The authors make no claims     *
+ * about the suitability of this software for any purpose. It is          *
+ * provided "as is" without express or implied warranty.                  *
+ **************************************************************************/
+
 // $Id$
+// $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)
 {
-//
+/// Standard constructor
 }
 
 //_____________________________________________________________________________
@@ -30,19 +49,22 @@ AliMpSubZone::AliMpSubZone()
   : TObject(),
     fMotif(0)
 {
-//
+/// Default constructor
 }
 
 //_____________________________________________________________________________
 AliMpSubZone::AliMpSubZone(const AliMpSubZone& right) 
-  : TObject(right) {
-// 
+  : TObject(right) 
+{
+/// Protected copy constructor (not provided) 
+
   Fatal("AliMpSubZone", "Copy constructor not provided.");
 }
 
 //_____________________________________________________________________________
-AliMpSubZone::~AliMpSubZone() {
-//  
+AliMpSubZone::~AliMpSubZone() 
+{
+// Destructor 
 }
 
 //
@@ -52,10 +74,12 @@ AliMpSubZone::~AliMpSubZone() {
 //_____________________________________________________________________________
 AliMpSubZone& AliMpSubZone::operator=(const AliMpSubZone& right)
 {
-  // check assignement to self
+/// Protected assignment operator (not provided)
+
+  // check assignment to self
   if (this == &right) return *this;
 
-  Fatal("operator =", "Assignement operator not provided.");
+  Fatal("operator =", "Assignment operator not provided.");
     
   return *this;  
 }    
@@ -67,8 +91,7 @@ AliMpSubZone& AliMpSubZone::operator=(const AliMpSubZone& right)
 //_____________________________________________________________________________
 void AliMpSubZone::AddRowSegment(AliMpVRowSegment* rowSegment)
 {
-// Adds row segment.
-// ---
+/// Add row segment.
 
 #ifdef WITH_STL
   fSegments.push_back(rowSegment);
@@ -83,8 +106,7 @@ void AliMpSubZone::AddRowSegment(AliMpVRowSegment* rowSegment)
 //_____________________________________________________________________________
 void AliMpSubZone::Print(const char* /*option*/) const
 {
-// Prints motif position Ids for all row segments.
-// --
+/// Print motif position Ids for all row segments.
  
   for (Int_t i=0; i<GetNofRowSegments(); i++) {
     AliMpVRowSegment* rowSegment = GetRowSegment(i);
@@ -101,8 +123,7 @@ void AliMpSubZone::Print(const char* /*option*/) const
 //_____________________________________________________________________________
 Int_t AliMpSubZone::GetNofRowSegments() const 
 {
-// Returns number of row segments.
-// ---
+/// Return number of row segments.
 
 #ifdef WITH_STL
   return fSegments.size();
@@ -116,11 +137,10 @@ Int_t AliMpSubZone::GetNofRowSegments() const
 //_____________________________________________________________________________
 AliMpVRowSegment* AliMpSubZone::GetRowSegment(Int_t i) const 
 {
-// Returns i-th row segment.
-// ---
+/// Return i-th row segment.
 
   if (i<0 || i>=GetNofRowSegments()) {
-    Warning("GetRowSegment", "Index outside range");
+    AliErrorStream() << "Index outside range" << endl;
     return 0;
   }
   
@@ -136,8 +156,7 @@ AliMpVRowSegment* AliMpSubZone::GetRowSegment(Int_t i) const
 //_____________________________________________________________________________
 AliMpVMotif*  AliMpSubZone:: GetMotif() const
 {
-// Returns the motif.
-// ---
+/// Return the motif.
 
   return fMotif;
 }