Top Banner
ROOT An object oriented HEP analysis framework.
25

ROOT An object oriented HEP analysis framework.. Computing in Physics Physics = experimental science =>Experiments (e.g. at CERN) Planning phase Physics.

Dec 26, 2015

Download

Documents

Dominick Rose
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: ROOT An object oriented HEP analysis framework.. Computing in Physics Physics = experimental science =>Experiments (e.g. at CERN) Planning phase Physics.

ROOT

An object oriented HEP analysis framework.

Page 2: ROOT An object oriented HEP analysis framework.. Computing in Physics Physics = experimental science =>Experiments (e.g. at CERN) Planning phase Physics.

Physics data types

Histogram 1-dim, 2-dim

Ntuple Tree

Events Vertices

Tracks Measurements Particle properties

Page 3: ROOT An object oriented HEP analysis framework.. Computing in Physics Physics = experimental science =>Experiments (e.g. at CERN) Planning phase Physics.

ROOT

The ROOT Home:

http://root.cern.ch

The ROOT Team:

Rene Brun &

Fons Rademakers

Page 4: ROOT An object oriented HEP analysis framework.. Computing in Physics Physics = experimental science =>Experiments (e.g. at CERN) Planning phase Physics.

Finding Examples

The ROOT Tutorials:

http://root.cern.ch/root/Tutorials.html

The ROOT How To's: http://

root.cern.ch/root/Howto.html

For on-line help for a particular topic it's very

useful to use their facility to search the

ROOT site. http://root.cern.ch/root

Page 5: ROOT An object oriented HEP analysis framework.. Computing in Physics Physics = experimental science =>Experiments (e.g. at CERN) Planning phase Physics.

Class Schedule Overview of the ROOT Framework GUI basics Command line basics Finding Information (class

reference guide)

Getting started with the exercises

Page 6: ROOT An object oriented HEP analysis framework.. Computing in Physics Physics = experimental science =>Experiments (e.g. at CERN) Planning phase Physics.

Object Oriented Concepts

Members: a “has a” relationship to the class.

Inheritance: an “is a” relationship to the class.

Class: the description of a “thing” in the system Object: instance of a class Methods: functions for a class

Event

TrackSegment Vertex

Momentum MassSquare InterceptAtVert

HAS AHAS AHAS A

HAS A HAS AHAS A

TObject

IS A

Page 7: ROOT An object oriented HEP analysis framework.. Computing in Physics Physics = experimental science =>Experiments (e.g. at CERN) Planning phase Physics.

ROOT's Services/Utilities Histogramming and Fitting Graphics (2D, 3D) I/O to file or socket: specialized for

histograms, Ntuples (Trees) Collection Classes and Run Time Type

Identification User Interface

GUI: Browsers, Panels, Tree Viewer Command Line interface: C++ interpreter CINT Script Processor (C++ compiled C++

interpreted)

Page 8: ROOT An object oriented HEP analysis framework.. Computing in Physics Physics = experimental science =>Experiments (e.g. at CERN) Planning phase Physics.

ROOT's Service

s/Utilities

Page 9: ROOT An object oriented HEP analysis framework.. Computing in Physics Physics = experimental science =>Experiments (e.g. at CERN) Planning phase Physics.

ROOT's Services/Utilities

Page 10: ROOT An object oriented HEP analysis framework.. Computing in Physics Physics = experimental science =>Experiments (e.g. at CERN) Planning phase Physics.

ROOT's Services/Utilities

Page 11: ROOT An object oriented HEP analysis framework.. Computing in Physics Physics = experimental science =>Experiments (e.g. at CERN) Planning phase Physics.

ROOT's Services/Utilities

Page 12: ROOT An object oriented HEP analysis framework.. Computing in Physics Physics = experimental science =>Experiments (e.g. at CERN) Planning phase Physics.

ROOT's Services/Utilities

Page 13: ROOT An object oriented HEP analysis framework.. Computing in Physics Physics = experimental science =>Experiments (e.g. at CERN) Planning phase Physics.

ROOT's Services/Utilities

Page 14: ROOT An object oriented HEP analysis framework.. Computing in Physics Physics = experimental science =>Experiments (e.g. at CERN) Planning phase Physics.

Three User Interfaces GUI

windows, buttons, menus

Root Command lineCINT (C++ interpreter)

Macros, applications, libraries (C++ compiler and interpreter)

Page 15: ROOT An object oriented HEP analysis framework.. Computing in Physics Physics = experimental science =>Experiments (e.g. at CERN) Planning phase Physics.

GUI Basics Browsing and opening files Drawing histograms Right click, left click, middle click Draw Panel Fit Panel Adding Color and Zooming Adding text and other objects Dividing the canvas Setting the log scale

Page 16: ROOT An object oriented HEP analysis framework.. Computing in Physics Physics = experimental science =>Experiments (e.g. at CERN) Planning phase Physics.

GUI Basics

Display the browser TBrowser b;

Start root> root

Quit root (just in case) root[0]>.q

Page 17: ROOT An object oriented HEP analysis framework.. Computing in Physics Physics = experimental science =>Experiments (e.g. at CERN) Planning phase Physics.

The ROOT file

A directory structure like UNIX

Items in a directory can be: subdirectory objects (canvas,

histograms, etc.) root trees

Page 18: ROOT An object oriented HEP analysis framework.. Computing in Physics Physics = experimental science =>Experiments (e.g. at CERN) Planning phase Physics.

Displaying a Histogram

Display a histogram The Canvas

Open the root fileBrowse the file

Page 19: ROOT An object oriented HEP analysis framework.. Computing in Physics Physics = experimental science =>Experiments (e.g. at CERN) Planning phase Physics.

Basic Navigation by Clicking

Left Click select the object drag the object resize the object

Right Click context menu class::name methods

Middle Click activate canvas freezes event status

bar

Page 20: ROOT An object oriented HEP analysis framework.. Computing in Physics Physics = experimental science =>Experiments (e.g. at CERN) Planning phase Physics.

The Draw Panel The Event Status

The Draw PanelAdding Error barsSliderDefaults

Page 21: ROOT An object oriented HEP analysis framework.. Computing in Physics Physics = experimental science =>Experiments (e.g. at CERN) Planning phase Physics.

Fitting, Coloring, and Zooming

Adding a gaussian fit Coloring the histogram Zooming/unzooming

Page 22: ROOT An object oriented HEP analysis framework.. Computing in Physics Physics = experimental science =>Experiments (e.g. at CERN) Planning phase Physics.

Adding Objects to the Canvas

The Editor Adding an Arrow Adding Text

Page 23: ROOT An object oriented HEP analysis framework.. Computing in Physics Physics = experimental science =>Experiments (e.g. at CERN) Planning phase Physics.

Adding another Pad Add a Pad Select the new

Pad Draw a histogram Add a title for the

axis

Page 24: ROOT An object oriented HEP analysis framework.. Computing in Physics Physics = experimental science =>Experiments (e.g. at CERN) Planning phase Physics.

Modifying the Statistics

The Canvas in the Browser

Setting the (7) statistics options default = 0001111

Page 25: ROOT An object oriented HEP analysis framework.. Computing in Physics Physics = experimental science =>Experiments (e.g. at CERN) Planning phase Physics.

Dividing the Canvas

Create a new Canvas Divide it in 2 Draw two histograms.

1. Lego plot2. LogY