demos.C

Go to the documentation of this file.
00001 {
00002    // This macro shows a control bar o run some of the ROOT tutorials.
00003    // To execute an item, click with the left mouse button.
00004 
00005    gROOT->Reset();
00006 
00007    //Add the tutorials directory to the macro path
00008    //This is necessary in case this macro is executed from another user directory
00009    TString dir = gSystem->UnixPathName(gInterpreter->GetCurrentMacroName());
00010    dir.ReplaceAll("demos.C","");
00011    dir.ReplaceAll("/./","");
00012    const char *current = gROOT->GetMacroPath();
00013    gROOT->SetMacroPath(Form("%s:%s",current,dir.Data()));
00014    
00015    TControlBar *bar = new TControlBar("vertical", "Demos",10,10);
00016    bar->AddButton("Help Demos",".x demoshelp.C",        "Click Here For Help on Running the Demos");
00017    bar->AddButton("browser",   "new TBrowser;",         "Start the ROOT Browser");
00018    bar->AddButton("framework", ".x graphics/framework.C","An Example of Object Oriented User Interface");
00019    bar->AddButton("first",     ".x graphics/first.C",   "An Example of Slide with Root");
00020    bar->AddButton("hsimple",   ".x hsimple.C",          "An Example Creating Histograms/Ntuples on File");
00021    bar->AddButton("hsum",      ".x hist/hsum.C",        "Filling Histograms and Some Graphics Options");
00022    bar->AddButton("formula1",  ".x graphics/formula1.C","Simple Formula and Functions");
00023    bar->AddButton("surfaces",  ".x graphs/surfaces.C",  "Surface Drawing Options");
00024    bar->AddButton("fillrandom",".x hist/fillrandom.C",  "Histograms with Random Numbers from a Function");
00025    bar->AddButton("fit1",      ".x fit/fit1.C",         "A Simple Fitting Example");
00026    bar->AddButton("multifit",  ".x fit/multifit.C",     "Fitting in Subranges of Histograms");
00027    bar->AddButton("h1draw",    ".x hist/h1draw.C",      "Drawing Options for 1D Histograms");
00028    bar->AddButton("graph",     ".x graphs/graph.C",     "Example of a Simple Graph");
00029    bar->AddButton("gerrors",   ".x graphs/gerrors.C",   "Example of a Graph with Error Bars");
00030    bar->AddButton("tornado",   ".x graphics/tornado.C", "Examples of 3-D PolyMarkers");
00031    bar->AddButton("shapes",    ".x geom/shapes.C",      "The Geometry Shapes");
00032    bar->AddButton("geometry",  ".x geom/geometry.C",    "Creation of the NA49 Geometry File");
00033    bar->AddButton("na49view",  ".x geom/na49view.C",    "Two Views of the NA49 Detector Geometry");
00034    bar->AddButton("file",      ".x io/file.C",          "The ROOT File Format");
00035    bar->AddButton("fildir",    ".x io/fildir.C",        "The ROOT File, Directories and Keys");
00036    bar->AddButton("tree",      ".x tree/tree.C",        "The Tree Data Structure");
00037    bar->AddButton("ntuple1",   ".x tree/ntuple1.C",     "Ntuples and Selections");
00038    bar->AddButton("rootmarks", ".x rootmarks.C",        "Prints an Estimated ROOTMARKS for Your Machine");
00039    bar->SetButtonWidth(90);
00040    bar->Show();
00041    gROOT->SaveContext();
00042 }

Generated on Tue Jul 5 15:43:48 2011 for ROOT_528-00b_version by  doxygen 1.5.1