The Hello World example

The Hello World example

This example is very basic. It illustrates the power of the ROOT system. Start the interactive version of ROOT and execute the two following commands:

Root >  TPaveLabel hello(0.2,0.4,0.8,0.6,"Hello World");
Root >  hello.Draw();

The first command creates an object of class TPaveLabel. The second command will draw this object and will automatically create a graphics canvas. The default canvas created by the Draw command has a default X and Y range defined between 0 and 1. The first 4 parameters in the first command are the lower and upper coordinates of the Pave.

You can now use the mouse and try the following:





[Home page] [Class index] [Top of the page]


This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.