]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/mapping/AliMpPCBPainter.cxx
In mapping:
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpPCBPainter.cxx
index b95dd713154ea1e45fc7f4455863410dbe891462..7796bb2a712179b3f09ec26c7a3fe0980cd476cd 100644 (file)
  **************************************************************************/
 
 // $Id$
-// $MpId: AliMpPCBPainter.cxx,v 1.4 2005/09/19 18:56:46 ivana Exp $
-// Category: graphics
-//
-// Class AliMpSlatPainter
-// -----------------------
-// Class for drawing a PCB into canvas
-// Authors: Laurent Aphecetche
+// $MpId: AliMpPCBPainter.cxx,v 1.8 2006/05/24 13:58:32 ivana Exp $
+
+
+//-----------------------------------------------------------------------------
+/// \class AliMpPCBPainter
+/// 
+/// Class for drawing a PCB into canvas
+/// 
+/// \author L. Aphecetche
+//-----------------------------------------------------------------------------
 
 #include "AliMpPCBPainter.h"
 
 #include "AliMpMotifPosition.h"
 #include "AliMpPCB.h"
 
+#include "AliLog.h"
+
 #include "TVirtualX.h"
 #include "TPad.h"
 
 #include <iostream>
 
+/// \cond CLASSIMP
 ClassImp(AliMpPCBPainter)
+/// \endcond
 
 //_____________________________________________________________________________
 AliMpPCBPainter::AliMpPCBPainter(AliMpPCB* pcb)
   : AliMpVPainter(), fPCB(pcb)
 {
-    //
-    // Default ctor.
-    //
+    ///
+    /// Default ctor.
+    ///
 }
 
 //_____________________________________________________________________________
 AliMpPCBPainter::~AliMpPCBPainter()
 {
-  //
-  // Dtor.
-  //
+  ///
+  /// Dtor.
+  ///
 }
 
 //_____________________________________________________________________________
 TVector2
 AliMpPCBPainter::GetDimensions() const
 {
-  //
-  // Returns the half-sizes of the PCB.
-  //
+  ///
+  /// Returns the half-sizes of the PCB.
+  ///
   return TVector2(fPCB->DX(),fPCB->DY());
 }
 
@@ -66,9 +73,9 @@ AliMpPCBPainter::GetDimensions() const
 TVector2
 AliMpPCBPainter::GetPosition() const
 {
-  //
-  // Returns the (x,y) position of the PCB.
-  //
+  ///
+  /// Returns the (x,y) position of the PCB.
+  ///
   return TVector2(fPCB->X(),fPCB->Y());
 }
 
@@ -76,9 +83,9 @@ AliMpPCBPainter::GetPosition() const
 void
 AliMpPCBPainter::Draw(Option_t* option)
 {
-  //
-  // Draws the PCB.
-  //
+  ///
+  /// Draws the PCB.
+  ///
   AliMpGraphContext *gr = AliMpGraphContext::Instance();
   if (!fPCB) return;
 
@@ -88,7 +95,7 @@ AliMpPCBPainter::Draw(Option_t* option)
   switch (option[0])
   {
     case 'M':
-      for ( AliMpPCB::Size_t i = 0; i < fPCB->GetSize(); ++i )
+      for ( Int_t i = 0; i < fPCB->GetSize(); ++i )
       {
         AliMpMotifPosition* pos = fPCB->GetMotifPosition(i);
         
@@ -113,9 +120,9 @@ AliMpPCBPainter::Draw(Option_t* option)
 void
 AliMpPCBPainter::Paint(Option_t* /*option*/)
 {
-  //
-  // Paint the object.
-  //
+  ///
+  /// Paint the object.
+  ///
   AliMpGraphContext* gr = AliMpGraphContext::Instance();
   if (!fPCB) return;
   Int_t col=gVirtualX->GetFillColor();