]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EVE/alice-macros/t0_digits.C
- introduction of gain scenarios (e.g. OROC only - for homogeneous gain in 11h)
[u/mrichter/AliRoot.git] / EVE / alice-macros / t0_digits.C
CommitLineData
6a680ee5 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 **************************************************************************/
6a680ee5 9
ba978640 10#if !defined(__CINT__) || defined(__MAKECINT__)
11#include <TTree.h>
12#include <TStyle.h>
13
6c49a8e1 14#include <AliRunLoader.h>
15#include <AliT0digit.h>
16#include <AliEveEventManager.h>
17#include <AliEveITSDigitsInfo.h>
18#include <AliEveT0Module.h>
ba978640 19#endif
20
6a680ee5 21void t0_digits()
22{
6c841fa2 23 AliRunLoader* rl = AliEveEventManager::AssertRunLoader();
6a680ee5 24
25 rl->LoadDigits("T0");
26 TTree* dt = rl->GetTreeD("T0", false);
84aff7a4 27
6a680ee5 28 AliT0digit *digits = 0;
29 dt->SetBranchAddress("T0", &digits);
30 dt->GetEntry(0);
31
32 gStyle->SetPalette(1, 0);
6a680ee5 33
d810d0de 34 AliEveT0Module::MakeModules(digits);
6a680ee5 35}
36