]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/mapping/AliMpVPainter.cxx
Adding comment lines to class description needed for Root documentation,
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpVPainter.cxx
index 3f98a6170a9a6a342b31f117553a4c1fb19e7cee..d69991b70c561e5350ebc94ba2db4cc7e25ae448 100755 (executable)
 // $Id$
 // $MpId: AliMpVPainter.cxx,v 1.10 2006/05/24 13:58:32 ivana Exp $
 // Category: graphics
-//
+
+//-----------------------------------------------------------------------------
 // Class AliMpVPainter
 // --------------
 // Class for drawing objects into canvas
 // Included in AliRoot: 2003/05/02
 // Authors: David Guez, IPN Orsay
+//-----------------------------------------------------------------------------
   
 #include "AliMpVPainter.h"
 #include "AliMpGraphContext.h"
 #include "AliMpPCBPainter.h"
 #include "AliMpSlat.h"
 #include "AliMpSlatPainter.h"
+#include "AliMpIteratorPainter.h"
+#include "AliMpVPadIterator.h"
+#include "AliMpSlatSegmentation.h"
+//#include "AliMpSectorSegmentation.h"
 
 #include <TList.h>
 #include <TVirtualX.h>
@@ -164,6 +170,22 @@ AliMpVPainter *AliMpVPainter::CreatePainter(TObject *object)
     painter = new AliMpPCBPainter((AliMpPCB *)object);
   else if (object->InheritsFrom(AliMpSlat::Class()))
     painter = new AliMpSlatPainter((AliMpSlat*)object);
+  else if (object->InheritsFrom(AliMpVPadIterator::Class()))
+    painter = new AliMpIteratorPainter((AliMpVPadIterator*)object);
+  else if (object->InheritsFrom(AliMpVSegmentation::Class()))
+  {
+ //   const AliMpSectorSegmentation* sectorSegmentation = dynamic_cast<const AliMpSectorSegmentation*>(object);
+//    if (sectorSegmentation)
+//    {
+//      return new AliMpSectorPainter(sectorSegmentation->GetSector());
+//    }
+
+    const AliMpSlatSegmentation* slatSegmentation = dynamic_cast<const AliMpSlatSegmentation*>(object);
+    if (slatSegmentation)
+    {
+      return new AliMpSlatPainter(slatSegmentation->Slat());
+    }
+  }
   return painter;
 }