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.
- Macros
Storing and executing C++ code in files. Functions. ACLiC compiling.
- Classes
Creating classes and objects.
- Stack & Heap Objects
Creating and destroying objects on the stack and the heap. Accessing
objects via pointers.
- Inheritance
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
with them.
- Canvases and Pads
Creating TCanvas and TPad objects. Making a TPad the current pad. Adding
objects to the current pad. Updating pads.
- Histograms
Creating, updating and displaying histograms in real time.
ROOT's random number facility.
- Files
Creating and opening ROOT files. Writing and reading objects.
- N-tuples
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.
Fitting histograms.
Go Back to the The OO Companion Top
Page
If you have any comments about this page please send them to
Nick West