First Steps: In C++ and ROOT

See the Introduction for the purpose and scope of these "First Steps".

    C++ in a ROOT Framework

  1. Starting and Stopping ROOT
    Starting and stopping ROOT. Installation problems. ROOT Commands. Command line recall.
  2. Typing in C++
    Typing in C++. Using header files.
  3. Macros
    Storing and executing C++ code in files. Functions. ACLiC compiling.
  4. Classes
    Creating classes and objects.
  5. Stack & Heap Objects
    Creating and destroying objects on the stack and the heap. Accessing objects via pointers.
  6. 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

  7. Interacting with Graphical Objects
    Looking up ROOT class information. Creating graphical objects amd interacting with them.
  8. Canvases and Pads
    Creating TCanvas and TPad objects. Making a TPad the current pad. Adding objects to the current pad. Updating pads.
  9. Histograms
    Creating, updating and displaying histograms in real time. ROOT's random number facility.
  10. Files
    Creating and opening ROOT files. Writing and reading objects.
  11. N-tuples
    Creating, filling and displaying n-tuples. Reading ASCII data files.
  12. 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