]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/EveDet/AliEveTPCSector2D.cxx
Merge changes from branches/dev/EVE. This branch was following development in ROOT...
[u/mrichter/AliRoot.git] / EVE / EveDet / AliEveTPCSector2D.cxx
index aed7fbca0f0f9b1a5fc8cf8224aac7884702a534..ec8c12d13ba8cd3f73ee2b3cecaf26e364d1c180 100644 (file)
 #include "AliEveTPCSector2D.h"
 #include "AliEveTPCSector3D.h"
 
-#include <EveDet/AliEveTPCData.h>
 #include <EveDet/AliEveTPCSectorData.h>
 
-#include <TEveManager.h>
-
-#include <AliTPCParam.h>
+#include <TEveTrans.h>
 
 #include <TBuffer3D.h>
 #include <TBuffer3DTypes.h>
 #include <TH2S.h>
 #include <TVirtualPad.h>
 
-using namespace std;
+//==============================================================================
+//==============================================================================
+// AliEveTPCSector2D
+//==============================================================================
 
 //______________________________________________________________________________
-// AliEveTPCSector2D
 //
 // Displays TPC raw-data in 2D.
 //
@@ -70,8 +69,8 @@ void AliEveTPCSector2D::MakeSector3D()
   s->SetSectorID(fSectorID);
   s->SetAutoTrans(fAutoTrans);
   s->CopyVizParams(*this);
-  gEve->AddElement(s, this);
-  gEve->Redraw3D();
+  AddElement(s);
+  ElementChanged(kFALSE, kTRUE);
 }
 
 /******************************************************************************/
@@ -170,7 +169,7 @@ void AliEveTPCSector2D::Paint(Option_t* )
   buffer.fID           = this;
   buffer.fColor        = 1;
   buffer.fTransparency = 0;
-  fHMTrans.SetBuffer3D(buffer);
+  if (HasMainTrans()) RefMainTrans().SetBuffer3D(buffer);
   buffer.SetSectionsValid(TBuffer3D::kCore);
 
   Int_t reqSections = gPad->GetViewer3D()->AddObject(buffer);