]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/exa/display.C
Adding AliPHOSTrigger.cxx
[u/mrichter/AliRoot.git] / HLT / exa / display.C
1 // $Id$
2
3 /**
4    Macro for displaying L3 cluster/track or raw data. 
5    Uses the AliL3Display class. 
6 */
7
8 void display(Int_t minslice,Int_t maxslice,Char_t *file="tracks.raw",Char_t *path="./",Char_t *gfile="$(ALIGEOPATH)/alice.geom")
9 {
10   gStyle->SetOptStat(0);
11   Int_t slice[2] = {minslice,maxslice};
12
13   AliL3Display *a = new AliL3Display(slice,gfile);
14   //a->Setup(file,path);
15   a->Setup(file,path,0,kTRUE);
16   
17   
18   /* Choose one of the following */
19   a->DisplayAll();
20   //a->DisplayTracks();
21   //a->DisplayClusters();
22
23   //a->DisplayClusterRow(1,151,file,"colz");
24 }
25
26
27 void display_cl(Int_t ev=0,Char_t *path="./",Char_t *gfile="$(LEVEL3)/GEO/alice.geom")
28 {
29   gStyle->SetOptStat(0);
30   Int_t slice[2] = {0,35};
31
32   Char_t file[1024];
33   sprintf(file,"%s/tracks_%d.raw",path,ev);
34
35   a = new AliL3Display(slice,gfile);
36   //a->Setup(file,path);
37   a->Setup(file,path,ev,kTRUE);
38   
39   
40   /* Choose one of the following */
41   a->DisplayAll();
42   //a->DisplayTracks();
43   //a->DisplayClusters();
44
45   //a->DisplayClusterRow(1,151,file,"colz");
46 }