]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/mapping/AliMpRowPainter.cxx
- Reordering includes and/or
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpRowPainter.cxx
index 5ddf8aa5c1f9dc508e9504e3a3fcbf90a04130e9..7152faf4b32f6c33c47f5714545776dafee97bfe 100755 (executable)
@@ -1,10 +1,26 @@
+/**************************************************************************
+ * 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: AliMpRowPainter.cxx,v 1.6 2005/08/26 15:43:36 ivana Exp $
 // Category: graphics
 //
 // Class AliMpRowPainter
 // ---------------------
 // Class for drawing a row into canvas
-//
+// Included in AliRoot: 2003/05/02
 // Authors: David Guez, IPN Orsay
   
 #include <TVirtualX.h>
@@ -23,7 +39,7 @@ AliMpRowPainter::AliMpRowPainter()
   : AliMpVPainter(),
     fRow(0)
 {
-  // default dummy constructor
+  /// Default constructor
 }
 
 //_______________________________________________________________________
@@ -31,14 +47,14 @@ AliMpRowPainter::AliMpRowPainter(AliMpRow *row)
   : AliMpVPainter(),
     fRow(row)
 {
-  // normal constructor 
+  /// Standard constructor 
 }
 
 //_____________________________________________________________________________
 AliMpRowPainter::AliMpRowPainter(const AliMpRowPainter& right) 
   : AliMpVPainter(right) {
 // 
-  // copy constructor (not implemented)
+  /// Protected copy constructor (not provided)
 
   Fatal("AliMpRowPainter", "Copy constructor not provided.");
 }
@@ -46,18 +62,18 @@ AliMpRowPainter::AliMpRowPainter(const AliMpRowPainter& right)
 //_______________________________________________________________________
 AliMpRowPainter::~AliMpRowPainter()
 {
-  // destructor
+  /// Destructor
 }
 
 //_____________________________________________________________________________
 AliMpRowPainter& AliMpRowPainter::operator=(const AliMpRowPainter& right)
 {
-  // assignement operator (not implemented)
+  /// Assignment operator (not provided)
 
-  // check assignement to self
+  // check assignment to self
   if (this == &right) return *this;
 
-  Fatal("operator =", "Assignement operator not provided.");
+  Fatal("operator =", "Assignment operator not provided.");
     
   return *this;  
 }    
@@ -65,38 +81,38 @@ AliMpRowPainter& AliMpRowPainter::operator=(const AliMpRowPainter& right)
 //_______________________________________________________________________
 void AliMpRowPainter::DumpObject()
 {
-// Draw the owned object
-  fRow->Dump();
+/// Draw the owned object
 
+  fRow->Dump();
 }
 
 //_______________________________________________________________________
 TVector2 AliMpRowPainter::GetPosition() const
 {
-// Get the owned object's position
-  return fRow->Position();
+/// Get the owned object's position
 
+  return fRow->Position();
 }
 
 //_______________________________________________________________________
 TVector2 AliMpRowPainter::GetDimensions() const
 {
-// Get the owned object's dimensions
-  return fRow->Dimensions();
+/// Get the owned object's dimensions
 
+  return fRow->Dimensions();
 }
 
 //_______________________________________________________________________
 void AliMpRowPainter::Draw(Option_t *option)
 {
-// Draw the sector on the current pad
-// The first letter of <option> is treated as follows:
-// case "S" : each row segments are drawn separately
-// case ""  : the whole row is drawn at once
-// in both cases, the rest of the option is passed
-// as argument to the Draw function of respectively
-// zone or row objects.
-// ---
+/// Draw the sector on the current pad
+/// The first letter of <option> is treated as follows:
+/// - case "S" : each row segments are drawn separately
+/// - case ""  : the whole row is drawn at once
+/// in both cases, the rest of the option is passed
+/// as argument to the Draw function of respectively
+/// zone or row objects.
+
   AliMpGraphContext *gr = AliMpGraphContext::Instance();
   if( !fRow) return;
 
@@ -125,7 +141,7 @@ void AliMpRowPainter::Draw(Option_t *option)
 //_______________________________________________________________________
 void AliMpRowPainter::Paint(Option_t *option)
 {
-  // Paint the object
+  /// Paint the object
 
   AliMpGraphContext *gr = AliMpGraphContext::Instance();
   if( !fRow) return;