Added support to display the HLT ESD Tree. See the comment in visscan_local.C for How
[u/mrichter/AliRoot.git] / EVE / alice-macros / its_module_stepper.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 *
51346b82 7 * full copyright notice. *
d810d0de 8 **************************************************************************/
6c49a8e1 9
ba978640 10#if !defined(__CINT__) || defined(__MAKECINT__)
11#include <TGLViewer.h>
12#include <TTree.h>
13#include <TStyle.h>
14#include <TEveManager.h>
15#include <TEveTreeTools.h>
cb4245bb 16
6c49a8e1 17#include <AliRunLoader.h>
18#include <AliEveEventManager.h>
19#include <AliEveITSModuleStepper.h>
20#include <AliEveITSDigitsInfo.h>
ba978640 21#endif
a6337352 22
d810d0de 23class AliEveITSModuleStepper;
1f634c20 24
32e219c2 25void its_module_stepper(Int_t det = 0)
1f634c20 26{
0879c50b 27 AliRunLoader* rl = AliEveEventManager::AssertRunLoader();
28 rl->LoadDigits("ITS");
29 TTree* dt = rl->GetTreeD("ITS", false);
30
d810d0de 31 AliEveITSDigitsInfo* di = new AliEveITSDigitsInfo();
0879c50b 32 di->SetTree(dt);
33 di->Dump();
1f634c20 34
84aff7a4 35 gEve->DisableRedraw();
d810d0de 36 AliEveITSModuleStepper* ms = new AliEveITSModuleStepper(di);
fbc350a3 37 ms->SetMainColor(8);
32e219c2 38 gStyle->SetPalette(1, 0);
39 ms->DisplayDet(det, -1);
84aff7a4 40 gEve->AddElement(ms);
41 gEve->Redraw3D(kTRUE); // To enforce camera reset
42 gEve->EnableRedraw();
32e219c2 43
68ca2fe7 44 TGLViewer* v = gEve->GetDefaultGLViewer();
1f634c20 45 v->SetCurrentCamera(TGLViewer::kCameraOrthoXOY);
ba978640 46
47 /*
48 * Disabling obsolete code
49 *
50 */
51 //TGLCameraMarkupStyle* mup = v->GetCameraMarkup();
52 //if(mup) mup->SetShow(kFALSE);
1f634c20 53}