--- /dev/null
+// $Id$
+
+namespace Alieve {
+class Event;
+}
+
+
+
+void t0_digits()
+{
+ AliRunLoader* rl = Alieve::Event::AssertRunLoader();
+ Int_t g_currentEvent = Alieve::gEvent->GetEventId();
+ cout<<g_currentEvent<<endl;
+
+ rl->LoadDigits("T0");
+ TTree* dt = rl->GetTreeD("T0", false);
+ //Alieve::T0DigitsInfo* di = new Alieve::T0DigitsInfo();
+ // di->SetDTree(dt);
+ //di->Dump();
+ // AliSTARTdigit *digits = 0;
+
+ AliT0digit *digits = 0;
+ dt->SetBranchAddress("T0", &digits);
+ dt->GetEntry(0);
+
+ gStyle->SetPalette(1, 0);
+ // gReve->DisableRedraw();
+
+ Alieve::T0Module::MakeModules(digits);
+
+ //Alieve::T0Module* m = new Alieve::T0Module(di);
+ //
+ //gReve->EnableRedraw();
+ //m->LoadQuadsDigits();
+}
+
--- /dev/null
+// $Id$
+
+Reve::PointSet*
+t0_hits(const char *varexp = "T0.fX:T0.fY:T0.fZ",
+ const char *selection = "")
+{
+ // Extracts T0 hits.
+
+
+ AliRunLoader* rl = Alieve::Event::AssertRunLoader();
+ rl->LoadHits("T0");
+
+ TTree* ht = rl->GetTreeH("T0", false);
+
+ Int_t nTracks = ht->GetEntries();
+ // printf("Found %d tracks. \n",nTracks);
+ for (Int_t it = 0; it < nTracks; it++) {
+
+ TClonesArray *hits = 0;
+ ht->SetBranchAddress("T0",&hits);
+
+ ht->GetEvent(it);
+ Int_t nHits = hits->GetEntriesFast();
+ // printf("Found %d hits in track %d. \n",nHits,it);
+
+ }
+ Reve::PointSet* points = new Reve::PointSet(Form("T0 Hits '%s'", selection));
+ points->SetSourceCS(TPointSelectorConsumer::TVT_XYZ);
+
+ TPointSelector ps(ht, points, varexp, selection);
+ ps.Select();
+
+ points->SetTitle(Form("N=%d", points->Size()));
+ points->SetMarkerSize(.5);
+ points->SetMarkerColor((Color_t)3);
+
+ gReve->AddRenderElement(points);
+ gReve->Redraw3D();
+
+ return points;
+}
--- /dev/null
+// $Id$
+
+namespace Alieve {
+class Event;
+}
+
+
+
+void t0_raw()
+{
+ AliRunLoader* rl = Alieve::Event::AssertRunLoader();
+ Int_t ievt = Alieve::gEvent->GetEventId();
+ cout<<ievt<<endl;
+
+ gStyle->SetPalette(1, 0);
+
+ Alieve::T0Module::LoadRaw("raw.root",ievt);
+
+
+}
+