Update master to aliroot
[u/mrichter/AliRoot.git] / EVE / alice-macros / vzero_raw.C
CommitLineData
2773b013 1/**************************************************************************
2 * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
3 * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
4 * full copyright notice. *
5 **************************************************************************/
6
7// Macro to visualise rootified raw-data from VZERO.
8//
9
ba978640 10#if !defined(__CINT__) || defined(__MAKECINT__)
11#include <TStyle.h>
12#include <TEveManager.h>
13
6c49a8e1 14#include <AliRawReader.h>
15#include <AliEveEventManager.h>
16#include <AliEveVZEROModule.h>
ba978640 17#else
2773b013 18class AliRawReader;
2773b013 19class AliEveVZEROModule;
ba978640 20#endif
2773b013 21
22void vzero_raw()
23{
24 gStyle->SetPalette(1, 0);
25
2773b013 26 AliRawReader *reader = AliEveEventManager::AssertRawReader();
27 reader->Reset();
28
da94dab4 29 gEve->DisableRedraw();
30
2773b013 31 AliEveVZEROModule* rawA = new AliEveVZEROModule("VZERO_RAW_A", kTRUE);
32 rawA->LoadRaw(reader);
33
34
35 AliEveVZEROModule* rawC = new AliEveVZEROModule("VZERO_RAW_C", kFALSE);
36 rawC->LoadRaw(reader);
37
38 gEve->EnableRedraw();
2773b013 39}