]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/alice-macros/ana_list.C
steering macro for list analyser (Ben)
[u/mrichter/AliRoot.git] / EVE / alice-macros / ana_list.C
1 // How to use the list analyser (and especially this macro):
2
3 // -- Primary selection (to add e.g. tracklets, tracks, etc.):
4 // - Load the objects you want to analyse with a sufficient macro (e.g. for tracks and tracklets you can use ana_list_load_tracks.C)
5 // - Run this macro (ana_list.C)
6 // - In the tab "eve" in the browser select the list analyser (called "Analysis objects" in the standard case)
7 // - Select the "list" tab in the editor of this object.
8 // - Click the button "start"
9 // - Select the objects you want to add by left-clicking on them in the viewer (or as well in the browser (left panel))
10 // - When you have finished adding the desired objects, click the button "stop"
11 // Use the list analyser "as usual" (see class documentation)
12
13 // -- Secondary selection (to add e.g. single clusters (of a TEvePointSet) or digits (of a TEveQuadSet)):
14 // To add e.g. AliTrackPoints or tracks you can do the following:
15 // - Run e.g. the macro "esd_tracks.C" 
16 // - Select some track you want to analyse as follows: Hold "shift" und right-click on the track (sometimes you have to hold the right mouse button). The menu pops up
17 // -> Select "ImportClustersFromIndex"
18 // -> Do this for all tracks you want to analyse.
19 // - Run this macro (ana_list.C)
20 // - In the tab "eve" in the browser select the list analyser (called "Analysis objects" in the standard case)
21 // - Select the "list" tab in the editor of this object.
22 // - Click the button "start"
23 // - Select e.g. clusters by holding "ctrl"+"alt" (depending on your system, holding the "alt" only can also be fine) and left-clicking on the desired cluster
24 // - When you have finished adding the desired objects, click the button "stop"
25 // Use the list analyser "as usual" (see class documentation)
26
27 void ana_list(TEveElement *cont = 0)
28 {
29   AliEveListAnalyser * objList = new AliEveListAnalyser("Analysis objects");
30   
31   objList->SetTitle("Analysis objects (0)");
32
33   gEve->AddElement(objList, cont);
34
35   gEve->Redraw3D();
36 }