]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/mapping/AliMpVPainter.cxx
Adding includes now needed by ROOT
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpVPainter.cxx
index 68b9fba5249bac3cec9f5b06f71dcf907c5b00f8..3f98a6170a9a6a342b31f117553a4c1fb19e7cee 100755 (executable)
@@ -37,6 +37,7 @@
 #include "AliMpSubZonePainter.h"
 #include "AliMpRowSegmentPainter.h"
 #include "AliMpMotifPainter.h"
+#include "AliMpMotifType.h"
 #include "AliMpPCB.h"
 #include "AliMpPCBPainter.h"
 #include "AliMpSlat.h"
@@ -45,6 +46,7 @@
 #include <TList.h>
 #include <TVirtualX.h>
 #include <TPad.h>
+#include <TROOT.h>
 
 /// \cond CLASSIMP
 ClassImp(AliMpVPainter)
@@ -53,7 +55,10 @@ ClassImp(AliMpVPainter)
 //_______________________________________________________________________
 AliMpVPainter::AliMpVPainter()
   : TObject(),
-    fColor(2)
+    fColor(2),
+    fPadPosition(),
+    fPadDimensions(),
+    fTrashList(0)
 {
   /// Default constructor
 
@@ -64,15 +69,6 @@ AliMpVPainter::AliMpVPainter()
   fTrashList = new TList;
 }
 
-//_____________________________________________________________________________
-AliMpVPainter::AliMpVPainter(const AliMpVPainter& right) 
-  : TObject(right) 
-{  
-  /// Protected copy constructor (not provided)
-
-  Fatal("AliMpVPainter", "Copy constructor not provided.");
-}
-
 //_______________________________________________________________________
 AliMpVPainter::~AliMpVPainter()
 {
@@ -84,19 +80,6 @@ AliMpVPainter::~AliMpVPainter()
   }
 }
 
-//_____________________________________________________________________________
-AliMpVPainter& AliMpVPainter::operator=(const AliMpVPainter& right)
-{
-  /// Assignment operator (not provided)
-
-  // check assignment to self
-  if (this == &right) return *this;
-
-  Fatal("operator =", "Assignment operator not provided.");
-    
-  return *this;  
-}    
-
 //_______________________________________________________________________
 Bool_t AliMpVPainter::IsInside(const TVector2 &point,const TVector2& pos,const TVector2& dim)
 {
@@ -175,6 +158,8 @@ AliMpVPainter *AliMpVPainter::CreatePainter(TObject *object)
     painter = new AliMpRowSegmentPainter((AliMpVRowSegment *)object);
   else if (object->InheritsFrom(AliMpMotifPosition::Class()))
     painter = new AliMpMotifPainter((AliMpMotifPosition *)object);
+  else if (object->InheritsFrom(AliMpMotifType::Class()))
+    painter = new AliMpMotifPainter((AliMpMotifType *)object);
   else if (object->InheritsFrom(AliMpPCB::Class()))
     painter = new AliMpPCBPainter((AliMpPCB *)object);
   else if (object->InheritsFrom(AliMpSlat::Class()))