First Steps: In C++ and ROOT
See the Introduction for the purpose and
scope of these "First Steps".
C++ in a ROOT Framework
- Starting and Stopping ROOT
Starting and stopping ROOT. Installation problems. ROOT Commands.
Command line recall.
- Typing in C++
Typing in C++. Using header files.
Storing and executing C++ code in files. Functions. ACLiC compiling.
Creating classes and objects.
- Stack & Heap Objects
Creating and destroying objects on the stack and the heap. Accessing
objects via pointers.
Inheriting from TNamed. TNamed as an example of an interface between the
ROOT framework and user code. Asking ROOT to find a named object. The
CINT shortcut for named objects.
Analysis in a ROOT Framework
- Interacting with Graphical Objects
Looking up ROOT class information. Creating graphical objects amd interacting
- Canvases and Pads
Creating TCanvas and TPad objects. Making a TPad the current pad. Adding
objects to the current pad. Updating pads.
Creating, updating and displaying histograms in real time.
ROOT's random number facility.
Creating and opening ROOT files. Writing and reading objects.
Creating, filling and displaying n-tuples. Reading ASCII data files.
- Formulae, Functions and Fitting
Creating and using TFormula objects. Creating and drawing TF1 function objects.
Go Back to the The OO Companion Top
If you have any comments about this page please send them to