]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/alice-macros/hits_from_label.C
Temporary replacement of Form by sprintf to avoid problems on some platforms (alpahli...
[u/mrichter/AliRoot.git] / EVE / alice-macros / hits_from_label.C
1 // $Id$
2
3 void hits_from_label(Int_t label=0)
4 {
5   Reve::PointSet* h;
6   Reve::LoadMacro("its_hits.C");
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);
14   h->SetMarkerSize(1);
15
16   Reve::LoadMacro("tpc_hits.C");
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));
21   h->SetMarkerSize(1);
22
23   gReve->Redraw3D();
24 }