]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/EveBase/AliEveJetPlane.cxx
Merge changes from branches/dev/EVE. This branch was following development in ROOT...
[u/mrichter/AliRoot.git] / EVE / EveBase / AliEveJetPlane.cxx
index 7d341eac5648bf8cb9da7cfd46bf9bbbd67ef478..755b12fbf6fc6a2605b6c357112f0f855b817e77 100644 (file)
@@ -8,7 +8,9 @@
  **************************************************************************/
 
 #include "AliEveJetPlane.h"
-#include <TString.h>
+
+#include <TEveTrans.h>
+
 #include <TBuffer3D.h>
 #include <TBuffer3DTypes.h>
 #include <TVirtualPad.h>
@@ -17,6 +19,8 @@
 //______________________________________________________________________________
 //
 // Show jets and tracks in eta-phi plane.
+//
+// 
 
 ClassImp(AliEveJetPlane)
 
@@ -46,7 +50,6 @@ AliEveJetPlane::AliEveJetPlane(Int_t iev) :
 
   fGridColor(5),
 
-  fHMTrans(),
   fJets(),
   fTracks(),
 
@@ -61,6 +64,7 @@ AliEveJetPlane::AliEveJetPlane(Int_t iev) :
   fSelectionFlag (1)
 {
   SetMainColorPtr(&fGridColor);
+  InitMainTrans();
 }
 
 /******************************************************************************/
@@ -103,7 +107,7 @@ void AliEveJetPlane::Paint(Option_t* /*option*/)
   buff.fID           = this;
   buff.fColor        = fGridColor;
   buff.fTransparency = 0;
-  fHMTrans.SetBuffer3D(buff);
+  if (HasMainTrans()) RefMainTrans().SetBuffer3D(buff);
   buff.SetSectionsValid(TBuffer3D::kCore);
 
   Int_t reqSections = gPad->GetViewer3D()->AddObject(buff);