New folder icons/ with improved check-box pictures.
[u/mrichter/AliRoot.git] / EVE / alice-macros / hits_from_label.C
CommitLineData
5a5a1232 1// $Id$
2
3void hits_from_label(Int_t label=0)
4{
5 Reve::PointSet* h;
6 Reve::LoadMacro("its_hits.C");
7be1e8cd 7 //PH The line below is replaced waiting for a fix in Root
8 //PH which permits to use variable siza arguments in CINT
9 //PH on some platforms (alphalinuxgcc, solariscc5, etc.)
10 //PH h = its_hits("fX:fY:fZ", Form("ITS.fTrack==%d", label));
11 char form[1000];
12 sprintf(form,"ITS.fTrack==%d", label);
13 h = its_hits("fX:fY:fZ", form);
52465a1b 14 if(h) h->SetMarkerSize(1);
5a5a1232 15
16 Reve::LoadMacro("tpc_hits.C");
7be1e8cd 17 sprintf(form,"TPC2.fArray.fTrackID==%d", label);
18 h = tpc_hits("TPC2.fArray.fR:TPC2.fArray.fFi:TPC2.fArray.fZ",form);
19 //PH h = tpc_hits("TPC2.fArray.fR:TPC2.fArray.fFi:TPC2.fArray.fZ",
20 //PH Form("TPC2.fArray.fTrackID==%d", label));
52465a1b 21 if(h) h->SetMarkerSize(1);
5a5a1232 22
e131b7dc 23 Reve::LoadMacro("trd_hits.C");
24 sprintf(form,"TRD.fTrack==%d", label);
25 h = trd_hits("fX:fY:fZ", form);
52465a1b 26 if(h) h->SetMarkerSize(1);
e131b7dc 27
788b9a31 28 Reve::LoadMacro("tof_hits.C");
29 sprintf(form,"TOF.fTrack==%d", label);
30 h = tof_hits("fX:fY:fZ", form);
31 if(h) h->SetMarkerSize(1);
32
5a5a1232 33 gReve->Redraw3D();
34}