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 **************************************************************************/
19 gROOT->Macro("alieve_loadlibs.C");
20 gSystem->Load("libAlieve");
22 TFile* f = new TFile("coctail_1k/TPC.Digits.root");
23 tree = (TTree*) gDirectory->Get("Event0/TreeD");
25 x = new AliEveTPCData;
26 // x->SetSectorBlockSize(8192);
27 // x->SetLoadThreshold(5);
28 x->CreateAllSectors();
29 x->LoadDigits(tree, kFALSE);
30 gStyle->SetPalette(1, 0);
32 AliEveTPCSector2D* s = new AliEveTPCSector2D();
40 void tpc_digi_pad_dump(Int_t s, Int_t r, Int_t p)
42 if(r >= AliEveTPCSectorData::GetInnSeg().fNRows) {
43 r -= AliEveTPCSectorData::GetInnSeg().fNRows;
47 AliSimDigits *digit = 0;
48 tree->GetBranch("Segment")->SetAddress(&digit);
50 Int_t sbr = (Int_t) tree->GetEntries();
51 for (Int_t ent=0; ent<sbr; ent++) {
54 AliEveTPCSectorData::GetParam().AdjustSectorRow(digit->GetID(), sector, row);
56 if(sector != s || row != r)
59 printf("Entry = %d, ID = %d, Sec = %d, Row = %d\n",
60 ent, digit->GetID(), sector, row);
66 pad = digit->CurrentColumn();
67 time = digit->CurrentRow();
68 signal = digit->CurrentDigit();
71 printf("%d %d\n", time, signal);
73 } while (digit->Next());