kine_tracks.C
[u/mrichter/AliRoot.git] / EVE / alice-macros / its_digits.C
CommitLineData
5a5a1232 1// $Id$
d810d0de 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 **************************************************************************/
5a5a1232 9
a6337352 10#include <vector> // bypass a cint problem in root-5.20
11
716345b3 12// Load ITS digits.
13// Argument mode is a bitwise or determining which layers to import:
14// 1, 2 : SPD
15// 4, 8 : SDD
16// 16, 32 : SSD
17// By default import all layers.
18
c2c4b7a2 19void its_digits(Int_t mode = 63)
5a5a1232 20{
d810d0de 21 AliRunLoader* rl = AliEveEventManager::AssertRunLoader();
5a5a1232 22 rl->LoadDigits("ITS");
23 TTree* dt = rl->GetTreeD("ITS", false);
24
c2c4b7a2 25 TEveUtil::LoadMacro("its_common_foos.C");
26
d810d0de 27 AliEveITSDigitsInfo* di = new AliEveITSDigitsInfo();
5a5a1232 28 di->SetTree(dt);
c2c4b7a2 29 // di->Dump();
5a5a1232 30
31 gStyle->SetPalette(1, 0);
32
c2c4b7a2 33 its_display_raw_digits(di, mode);
5a5a1232 34}