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