ROOT 102

ROOT contacts at Fermi

What We Will Cover Today

Class Schedule

Class Schedule

Session1: Functions and Fitting

Function Objects (TF1)

TF1 Constructors

TF1 Constructors (cont.)

TF1 Constructors (cont.)

Fitting

Fitting

Fitting (cont.)

Fitting Subranges

Combining Functions

Combining Functions

Fitting Demo

Session1: Functions and Fitting Summary

Session 2: Building ROOT Trees

ROOT Files (TFile)

ROOT Trees (TTree)

ROOT Branches (TBranch)

Five Steps to Build a Tree

Step 1: Create a TFile Object

Step 2: Create a TTree Object

Step 3: Adding Branches with an Object

Splitting a Branch

Adding Branches with a List of Variables

Adding Branches with a TClonesArray

Step 4: Fill the Tree

Step 5: Write the File

Demonstration: 5 steps to build a Tree

Session 2: Building ROOT Trees Summary

Exercises #1

Session 3: Putting Trees to Work

Using Trees in Analysis

Using Trees in Analysis (cont.)

Using Trees in Analysis (cont.)

Histograms and Lists

Information about the TTree Contents

Introducing MakeClass

Using MakeClass

Event.h

Using MakeClass()

Using MakeClass()

Loading and Using MyClass.C

GetEntry()

Loop()

Expanding Loop()

Expanding Loop() (cont.)

Expanding Loop() (cont.)

Expanding Loop() (cont.)

Chains

Chains (cont.)

Chains (cont.)

Demo: Changing "MyClass" to use a Chain

Demo: Changing "MyClass"

Session 3 Summary Putting Trees to Work

Exercise #2

Session 4: More about CINT

Coding Conventions

Coding Conventions (cont.)

TObject: The Mother of all Root objects

gROOT

gROOT->FindObject(<Name>)

gROOT->FindObject() cont.

gROOT->FindObject() cont.

Global Variables (cont.)

Environment Settings

Environment Settings (cont.)

Command Line Options

CINT Commands

Demo on CINT Commands

CINT Extensions to C++

CINT Types

CINT Multi-line Command

Debugging: Stepping

Debugging: Breakpoints

Debugging: Inspecting

Demonstration: CINT commands

Summary of Session 4: More about CINT

Exercise #3

Session 5: For the real Expert

Adding your own class to ROOT

ClassDef and ClassImp

rootcint

The Script Compiler

Demonstration of the Script Compiler

Adding Your Class With the Script Compiler

Wrap up