]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EVE/alice-macros/NLT_test.C
Put all classes in Alieve/ sub-module out of the Alieve namespace and
[u/mrichter/AliRoot.git] / EVE / alice-macros / NLT_test.C
CommitLineData
d810d0de 1// $Id$
2// Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
3
4/**************************************************************************
5 * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
6 * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
7 * full copyright notice. *
8 **************************************************************************/
32e219c2 9
84aff7a4 10TEveProjectionManager* NLT_test(TEveElement* top=0)
32e219c2 11{
d810d0de 12 TEveScene* s = gEve->SpawnNewScene("Projected AliEveEventManager");
84aff7a4 13 gEve->GetDefViewer()->AddScene(s);
32e219c2 14
84aff7a4 15 TGLViewer* v = (TGLViewer *)gEve->GetGLViewer();
32e219c2 16 v->SetCurrentCamera(TGLViewer::kCameraOrthoXOY);
17 TGLCameraMarkupStyle* mup = v->GetCameraMarkup();
18 if(mup) mup->SetShow(kFALSE);
19
84aff7a4 20 TEveProjectionManager* p = new TEveProjectionManager;
21 p->SetProjection(TEveProjection::kPT_RhoZ, 0.01);
32e219c2 22
84aff7a4 23 gEve->AddToListTree(p, kTRUE);
24 gEve->AddElement(p, s);
32e219c2 25
84aff7a4 26 top = gEve->GetCurrentEvent();
32e219c2 27 if (top)
28 p->ImportElements(top);
29
84aff7a4 30 gEve->Redraw3D(kTRUE);
32e219c2 31
32 return p;
33}