]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/alice-macros/t0_digits.C
Change to support compilation when ALICE_INSTALL is not same as ALICE_ROOT
[u/mrichter/AliRoot.git] / EVE / alice-macros / t0_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
14 #include <AliRunLoader.h>
15 #include <AliT0digit.h>
16 #include <AliEveEventManager.h>
17 #include <AliEveITSDigitsInfo.h>
18 #include <AliEveT0Module.h>
19 #endif
20
21 void t0_digits()
22 {
23   AliRunLoader* rl = AliEveEventManager::AssertRunLoader();
24
25   rl->LoadDigits("T0");
26   TTree* dt = rl->GetTreeD("T0", false);
27
28   AliT0digit *digits = 0;
29   dt->SetBranchAddress("T0", &digits);
30   dt->GetEntry(0);
31
32   gStyle->SetPalette(1, 0);
33
34   AliEveT0Module::MakeModules(digits);
35 }
36