StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
STAR_Demos.C
1 // $Id: STAR_Demos.C,v 1.7 1999/05/21 15:33:52 kathy Exp $
2 // $Log: STAR_Demos.C,v $
3 // Revision 1.7 1999/05/21 15:33:52 kathy
4 // made sure Log & Id are in each file and also put in standard comment line with name of owner
5 //
6 //=======================================================================
7 // owner: Valery Fine
8 // what it does:
9 //=======================================================================
10 {
11 //
12 // This macro generates a Controlbar menu: To see the output, click begin_html <a href="gif/demos.gif" >here</a> end_html
13 // To execute an item, click with the left mouse button.
14 // To see the HELP of a button, click on the right mouse button.
15 
16  gROOT->Reset();
17  bar = new TControlBar("vertical", "STAR Demos",600,400);
18 
19  bar->AddButton("Create STAF \"particle\" table",".x CallMevSaveXDF.cxx", "Click it to create a new XDF file and fill it with \"mevsim\" STAF ,module");
20  bar->AddButton("Plot histogram",".x MakeHists.cxx", "Read XDF file with \"particle\" table and plot some histograms");
21  bar->AddButton("Make analysis", ".x par_anal.cxx", "Another example of the analysis of the \"particle\" table");
22  bar->AddButton("Big Full Chain",".x bfc.C", "An example of production chain (1 event only)");
23  bar->AddButton("Multiple dst analysis",".x ana.C", "An example of multiple dst files analysis");
24  bar->Show();
25  gROOT->SaveContext();
26  printf("Look for the new ROOT control bar window and pop it up !!!\n");
27 }
28 
29