]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EVE/alice-macros/its_digits.C
minor bug fix
[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
4f8b4026 10#if !defined(__CINT__) || defined(__MAKECINT__)
11#include <TTree.h>
12#include <TStyle.h>
13#include <TEveUtil.h>
14
6c49a8e1 15#include <AliRunLoader.h>
16#include <AliEveEventManager.h>
17#include <AliEveITSDigitsInfo.h>
4f8b4026 18
ba978640 19#include "its_common_foos.C"
4f8b4026 20#endif
a6337352 21
716345b3 22// Load ITS digits.
23// Argument mode is a bitwise or determining which layers to import:
24// 1, 2 : SPD
25// 4, 8 : SDD
26// 16, 32 : SSD
27// By default import all layers.
28
a4135a45 29void its_digits(Int_t mode = 63,
30 Bool_t check_empty = kTRUE,
31 Bool_t scaled_modules = kFALSE)
5a5a1232 32{
d810d0de 33 AliRunLoader* rl = AliEveEventManager::AssertRunLoader();
5a5a1232 34 rl->LoadDigits("ITS");
35 TTree* dt = rl->GetTreeD("ITS", false);
36
c2c4b7a2 37 TEveUtil::LoadMacro("its_common_foos.C");
38
d810d0de 39 AliEveITSDigitsInfo* di = new AliEveITSDigitsInfo();
5a5a1232 40 di->SetTree(dt);
c2c4b7a2 41 // di->Dump();
5a5a1232 42
43 gStyle->SetPalette(1, 0);
44
a4135a45 45 its_display_raw_digits(di, mode, check_empty, scaled_modules);
5a5a1232 46}