kine_tracks.C
[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 **************************************************************************/
cb4245bb 9
a6337352 10#include <vector> // bypass a cint problem in root-5.20
11
d810d0de 12class AliEveITSModuleStepper;
1f634c20 13
32e219c2 14void its_module_stepper(Int_t det = 0)
1f634c20 15{
0879c50b 16 AliRunLoader* rl = AliEveEventManager::AssertRunLoader();
17 rl->LoadDigits("ITS");
18 TTree* dt = rl->GetTreeD("ITS", false);
19
d810d0de 20 AliEveITSDigitsInfo* di = new AliEveITSDigitsInfo();
0879c50b 21 di->SetTree(dt);
22 di->Dump();
1f634c20 23
84aff7a4 24 gEve->DisableRedraw();
d810d0de 25 AliEveITSModuleStepper* ms = new AliEveITSModuleStepper(di);
fbc350a3 26 ms->SetMainColor(8);
32e219c2 27 gStyle->SetPalette(1, 0);
28 ms->DisplayDet(det, -1);
84aff7a4 29 gEve->AddElement(ms);
30 gEve->Redraw3D(kTRUE); // To enforce camera reset
31 gEve->EnableRedraw();
32e219c2 32
84aff7a4 33 TGLViewer* v = (TGLViewer *)gEve->GetGLViewer();
1f634c20 34 v->SetCurrentCamera(TGLViewer::kCameraOrthoXOY);
32e219c2 35 TGLCameraMarkupStyle* mup = v->GetCameraMarkup();
36 if(mup) mup->SetShow(kFALSE);
1f634c20 37}