]>
Commit | Line | Data |
---|---|---|
5a5a1232 | 1 | // $Id$ |
d810d0de | 2 | // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007 |
3 | ||
4 | /************************************************************************** | |
5 | * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. * | |
6 | * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for * | |
51346b82 | 7 | * full copyright notice. * |
d810d0de | 8 | **************************************************************************/ |
5a5a1232 | 9 | |
ba978640 | 10 | #if !defined(__CINT__) || defined(__MAKECINT__) |
11 | #include <TEveUtil.h> | |
12 | #include <TEvePointSet.h> | |
13 | #include <TEveElement.h> | |
14 | #include <TEveManager.h> | |
15 | ||
16 | #include "its_hits.C" | |
17 | #include "tof_hits.C" | |
18 | #include "tpc_hits.C" | |
19 | #include "trd_hits.C" | |
20 | #endif | |
21 | ||
22 | void hits_from_label(Int_t label=0, TEveElement* cont=0) | |
5a5a1232 | 23 | { |
84aff7a4 | 24 | TEveUtil::LoadMacro("its_hits.C"); |
25 | ||
26 | TEvePointSet* h = 0; | |
7be1e8cd | 27 | //PH The line below is replaced waiting for a fix in Root |
28 | //PH which permits to use variable siza arguments in CINT | |
29 | //PH on some platforms (alphalinuxgcc, solariscc5, etc.) | |
30 | //PH h = its_hits("fX:fY:fZ", Form("ITS.fTrack==%d", label)); | |
31 | char form[1000]; | |
32 | sprintf(form,"ITS.fTrack==%d", label); | |
2caed564 | 33 | h = its_hits("fX:fY:fZ", form, cont); |
84aff7a4 | 34 | if (h) h->SetMarkerSize(1); |
5a5a1232 | 35 | |
84aff7a4 | 36 | TEveUtil::LoadMacro("tpc_hits.C"); |
7be1e8cd | 37 | sprintf(form,"TPC2.fArray.fTrackID==%d", label); |
2caed564 | 38 | h = tpc_hits("TPC2.fArray.fR:TPC2.fArray.fFi:TPC2.fArray.fZ",form, cont); |
7be1e8cd | 39 | //PH h = tpc_hits("TPC2.fArray.fR:TPC2.fArray.fFi:TPC2.fArray.fZ", |
40 | //PH Form("TPC2.fArray.fTrackID==%d", label)); | |
84aff7a4 | 41 | if (h) h->SetMarkerSize(1); |
5a5a1232 | 42 | |
84aff7a4 | 43 | TEveUtil::LoadMacro("trd_hits.C"); |
e131b7dc | 44 | sprintf(form,"TRD.fTrack==%d", label); |
2caed564 | 45 | h = trd_hits("fX:fY:fZ", form, cont); |
84aff7a4 | 46 | if (h) h->SetMarkerSize(1); |
e131b7dc | 47 | |
84aff7a4 | 48 | TEveUtil::LoadMacro("tof_hits.C"); |
788b9a31 | 49 | sprintf(form,"TOF.fTrack==%d", label); |
2caed564 | 50 | h = tof_hits("fX:fY:fZ", form, cont); |
84aff7a4 | 51 | if (h) h->SetMarkerSize(1); |
788b9a31 | 52 | |
84aff7a4 | 53 | gEve->Redraw3D(); |
5a5a1232 | 54 | } |