]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/alice-macros/hits_from_label.C
Remove EVE/Reve/ sub-module.
[u/mrichter/AliRoot.git] / EVE / alice-macros / hits_from_label.C
1 // $Id$
2
3 void hits_from_label(Int_t label=0, TEveElement* cont)
4 {
5   TEveUtil::LoadMacro("its_hits.C");
6
7   TEvePointSet* h = 0;
8   //PH The line below is replaced waiting for a fix in Root
9   //PH which permits to use variable siza arguments in CINT
10   //PH on some platforms (alphalinuxgcc, solariscc5, etc.)
11   //PH  h = its_hits("fX:fY:fZ", Form("ITS.fTrack==%d", label));
12   char form[1000];
13   sprintf(form,"ITS.fTrack==%d", label);
14   h = its_hits("fX:fY:fZ", form, cont);
15   if (h) h->SetMarkerSize(1);
16
17   TEveUtil::LoadMacro("tpc_hits.C");
18   sprintf(form,"TPC2.fArray.fTrackID==%d", label);
19   h = tpc_hits("TPC2.fArray.fR:TPC2.fArray.fFi:TPC2.fArray.fZ",form, cont);
20   //PH  h = tpc_hits("TPC2.fArray.fR:TPC2.fArray.fFi:TPC2.fArray.fZ",
21   //PH         Form("TPC2.fArray.fTrackID==%d", label));
22   if (h) h->SetMarkerSize(1);
23
24   TEveUtil::LoadMacro("trd_hits.C");
25   sprintf(form,"TRD.fTrack==%d", label);
26   h = trd_hits("fX:fY:fZ", form, cont);
27   if (h) h->SetMarkerSize(1);
28
29   TEveUtil::LoadMacro("tof_hits.C");
30   sprintf(form,"TOF.fTrack==%d", label);
31   h = tof_hits("fX:fY:fZ", form, cont);
32   if (h) h->SetMarkerSize(1);
33
34   gEve->Redraw3D();
35 }