4 t0_hits(const char *varexp = "T0.fX:T0.fY:T0.fZ",
5 const char *selection = "")
10 AliRunLoader* rl = Alieve::Event::AssertRunLoader();
13 TTree* ht = rl->GetTreeH("T0", false);
15 Int_t nTracks = ht->GetEntries();
16 // printf("Found %d tracks. \n",nTracks);
17 for (Int_t it = 0; it < nTracks; it++) {
19 TClonesArray *hits = 0;
20 ht->SetBranchAddress("T0",&hits);
23 Int_t nHits = hits->GetEntriesFast();
24 // printf("Found %d hits in track %d. \n",nHits,it);
27 Reve::PointSet* points = new Reve::PointSet(Form("T0 Hits '%s'", selection));
28 points->SetSourceCS(TPointSelectorConsumer::TVT_XYZ);
30 TPointSelector ps(ht, points, varexp, selection);
33 points->SetTitle(Form("N=%d", points->Size()));
34 points->SetMarkerSize(.5);
35 points->SetMarkerColor((Color_t)3);
37 gReve->AddRenderElement(points);