2 // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
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 **************************************************************************/
10 class AliRawReaderFile;
15 AliRawReaderFile *reader = 0;
19 gROOT->Macro("alieve_loadlibs.C");
20 gSystem->Load("libAlieve");
22 reader = new AliRawReaderFile("raw0");
25 AliTPCRawStream input(reader);
27 x = new AliEveTPCData;
28 //x->SetSectorBlockSize(8192);
29 //x->SetLoadThreshold(5);
30 x->CreateAllSectors();
31 x->LoadRaw(input, kFALSE);
33 gStyle->SetPalette(1, 0);
35 AliEveTPCSector2D* s = new AliEveTPCSector2D();
43 void tpc_raw_pad_dump(Int_t s, Int_t r, Int_t p)
48 if(r >= AliEveTPCSectorData::GetInnSeg().fNRows) {
49 r -= AliEveTPCSectorData::GetInnSeg().fNRows;
53 AliTPCRawStream input(reader);
54 Int_t sector = input.GetSector();
55 Int_t row = input.GetRow();
57 while (input.Next()) {
58 if (input.IsNewRow()) {
59 sector = input.GetSector();
62 if(sector != s || row != r) continue;
64 Int_t signal = input.GetSignal();
65 Int_t pad = input.GetPad();
66 Int_t time = input.GetTime();
69 printf("%d %d\n", time, signal);