G. Cowan Lectures on Statistical Data Analysis 1 Computing and Statistical Data Analysis Some slides about ROOT Interactive data analysis program and class.

Slides:



Advertisements
Similar presentations
Introduction to Web Design Lecture number:. Todays Aim: Introduction to Web-designing and how its done. Modelling websites in HTML.
Advertisements

Manage your sources for more effective research quick tips for creating an APA template Trinity Writing Center (2011)
R Packages Davor Cubranic SCARL, Dept. of Statistics.
Introduction to MATLAB The language of Technical Computing.
An Introduction to spss & endnote
EndNote. What is EndNote:  EndNote is referencing software that enables you to create a database of references from your readings. Your database of references.
Joe Foster Visualizing Data with ROOT Joe Foster University of Manchester.
Introduction To 2010 Excel Super-size Tool Bar: Ribbon Basic Tasks on Home Tab Math and Formula Statistical Functions (examples) Create A Chart Play with.
Why ROOT?. ROOT ROOT: is an object_oriented frame work aimed at solving the data analysis challenges of high energy physics Object _oriented: by encapsulation,
Intro to Microsoft PowerPoint 2010 Public Computer Center, Moore Memorial Library, Greene, NY.
This presentation is intended as a detailed WebEx, to bring potential customers to an understanding of Dream Report capabilities. This presentation focuses.
1 Session-23 CSIT 121 Spring 2006 Revision Ch 7: Reference Parameters Revision Ch 7: Reference Parameters Chapter 8: Value Returning Functions Chapter.
Microprocessor Simulation
Computational Physics Home Assignment #3 Dr. Guy Tel-Zur.
1 Computing for Todays Lecture 22 Yumei Huo Fall 2006.
Introduction to SPSS Short Courses Last created (Feb, 2008) Kentaka Aruga.
Working with SharePoint Document Libraries. What are document libraries? Document libraries are collections of files that you can share with team members.
C++ Programming Language Day 1. What this course covers Day 1 – Structure of C++ program – Basic data types – Standard input, output streams – Selection.
1 SEEM3460 Tutorial Unix Introduction. 2 Introduction What is Unix? An operation system (OS), similar to Windows, MacOS X Why learn Unix? Greatest Software.
CprE 288 – Quick intro for compiling C in Linux
Lecture 2 - Variables, program execution, calculations, print() COMPSCI 101 Principles of Programming.
Sept 11, 2003ROOT Day1, Suzanne Panacek39 ROOT An object oriented HEP analysis framework. Day 1.
ROOT An object oriented HEP analysis framework.. Computing in Physics Physics = experimental science =>Experiments (e.g. at CERN) Planning phase Physics.
COS120 Software Development Using C++ AUBG Fall semester 2010 Ref book: Problem Solving, Abstraction and Design Using C++ Authors: Frank Friedman, Elliot.
Computing and Statistical Data Analysis Lecture 8 Glen Cowan RHUL Physics Computing and Statistical Data Analysis STL and the Standard C++ Library vector,
USING REFWORKS Fall What is RefWorks? A web-based bibliographic and database manager Creighton University faculty, students, and staff have access.
 Overview of SPSS  Interface  Getting Started  Managing Data  Descriptive Statistics  Basic Analysis  Additional Resources.
Computing IV Visual C Introduction with OpenCV Example Xinwen Fu.
Sign up for an Easybib account
Project.  Topic should be: Clear and specific Practical and meaningful, this means the results of your research must have some implications in real life.
Introduction of ROOT Yao. ROOT Development In the mid 1990's, René Brun and Fons Rademakers, they had lead successful projects such as PAW, PIAF, and.
Introduction to Matlab & Data Analysis
21-Apr-2005J. Adamczewski1 DVEE C++ course 2005 The ROOT framework 1: Introduction.
Internet Searching Made Easy Last Updated: Lesson Plan Review Lesson 1: Finding information on the Internet –Web address –Using links –Search.
Lecture 6: Computer Languages. Programming Environments (IDE) COS120 Software Development Using C++ AUBG, COS dept.
Endnote Tutorial How to Navigate Click to move forward Click to go back Click to return to Menu page.
XP Practical PC, 3e Chapter 3 1 Installing and Learning Software.
Introduction to SPSS. Object of the class About the windows in SPSS The basics of managing data files The basic analysis in SPSS.
10/31/2015PHYS 3446 DØ Data Analysis with ROOT Venkat (for Dr.Yu)
WRITING REPORTS Introduction Section 0 Lecture 1 Slide 1 Lecture 6 Slide 1 INTRODUCTION TO Modern Physics PHYX 2710 Fall 2004 Intermediate 3870 Fall 2015.
Algorithms  Problem: Write pseudocode for a program that keeps asking the user to input integers until the user enters zero, and then determines and outputs.
EndNote. What is EndNote? EndNote is referencing software that enables you to create a database of references from your readings.
Grants.gov Application Process. Grants.gov 5-Step Process Accessing and submitting an application for an announcement (opportunity) through Grants.gov.
11/25/2015Slide 1 Scripts are short programs that repeat sequences of SPSS commands. SPSS includes a computer language called Sax Basic for the creation.
ROOT What & Why? ROOT Status ROOT Application ROOT Install ROOT Example ROOT References Introduction to March 13, 2003 Dae Jung CHEP.
ROOT Tutorials - Session 51 ROOT Tutorials – Session 5 Dictionary Generation, rootcint, Simple I/O, Hands-on Fons Rademakers.
WRITING REPORTS Introduction Section 0 Lecture 1 Slide 1 Lecture 6 Slide 1 INTRODUCTION TO Modern Physics PHYX 2710 Fall 2004 Intermediate 3870 Fall 2015.
1 Running Experiments for Your Term Projects Dana S. Nau CMSC 722, AI Planning University of Maryland Lecture slides for Automated Planning: Theory and.
Class Lecture Notes Ms. Haut. Class Lecture Notes on Class Website Notes saved in 2 formats –PowerPoint Recommended.
Learn to display and analyze data in histograms. Course Bar Graphs and Histograms.
Go4 Workshop J.Adamczewski-Musch, S.Linev Go4 advanced features.
Chris Knight Beginners’ workshop.
ROOT: Functions & Fitting Harinder Singh Bawa California State University Fresno.
Tutorial for Modelsim 1 Installation Download the Modelsim Student Edition: Follow the.
Exercise 1 Content –Covers chapters 1-4 Chapter 1 (read) Chapter 2 (important for the exercise, 2.6 comes later) Chapter 3 (especially 3.1, 3.2, 3.5) Chapter.
Joe Foster 1 This talk extends the one I gave in 2006 called Visualizing Data with ROOT. –
EndNote Ver.X7: A Reference Management Software
ROOT: Functions & Histograms
INF230 Basics in C# Programming
ROOT: Functions & Fitting
iSTEP 2016 Tsinghua University, Beijing July 10-20, 2016
Lecture 2: Homework 2 Tutorial
Using Mach153A Lecture Tools
Using Pythia 8 on the UCD Linux server with ROOT
Eviews Tutorial for Labor Economics Lei Lei
Steps in accessing Past Examination Papers
word Vocabulary Cards Language Literature Social Studies Science Math
Macrosystems EDDIE: Getting Started + Troubleshooting Tips
Macrosystems EDDIE: Getting Started + Troubleshooting Tips
SPL – PS1 Introduction to C++.
Presentation transcript:

G. Cowan Lectures on Statistical Data Analysis 1 Computing and Statistical Data Analysis Some slides about ROOT Interactive data analysis program and class library. Commands based on C++ (CINT interpreter). Home page: root.cern.ch Many tutorials, e.g. google for ROOT tutorial See course web page for stand-alone C++ programs that use ROOT classes, e.g., for histograms.

G. Cowan Lectures on Statistical Data Analysis 2 Run the program Installation and set up non-trivial. See your local expert. To run, type root

G. Cowan Lectures on Statistical Data Analysis 3 Run the demo program Try typing this stuff in yourself.

G. Cowan Lectures on Statistical Data Analysis 4 Book, fill, display a histogram

G. Cowan Lectures on Statistical Data Analysis 5 Fancy stuff with histograms

G. Cowan Lectures on Statistical Data Analysis 6 Plot a graph with error bars

G. Cowan Lectures on Statistical Data Analysis 7 Function minimization for fitting

G. Cowan Lectures on Statistical Data Analysis 8 Working with ROOT In this course we will write stand-alone C++ programs that use classes from the ROOT library. Often the program will create histograms (or n-tuples), that we store in a root file (e.g. myHistogramFile.root ) and we can use the ROOT executable program to analyze these. To work with ROOT classes, e.g., to know what member functions are available, check the class definition on the web. You can either find the documentation on root.cern.ch or google for the class name (ROOT classes always start with T, e.g., TFile, TRandom,...)

G. Cowan Lectures on Statistical Data Analysis 9 Googling for ROOT class name usually quickest

G. Cowan Lectures on Statistical Data Analysis 10 Sample program simpleMC.cc Below is a stand alone C++ program that uses ROOT classes for random numbers and histograms: #include using namespace std; int main(){ // Open output file TFile* file = new TFile("simpleMC.root", "recreate"); // Book histograms TH1D* h_Uni = new TH1D("h_Uni", "uniform random numbers", 100, 0, 1.0); TH1D* h_Exp = new TH1D("h_Exp", "exponential random numbers", 100, 0, 5.0); title # of binsbin limits

G. Cowan Lectures on Statistical Data Analysis 11 simpleMC.cc (2) // Create a TRandom3 object to generate random numbers int seed = 12345; TRandom3* ran = new TRandom3(seed); // Generate some random numbers and fill histograms const int numValues = 10000; const double xi = 1.0; // mean of exponential pdf for (int i=0; i<numValues; ++i){ double r = ran->Rndm(); // uniform in ]0,1] double x = - xi * log(r); h_Uni->Fill(r); h_Exp->Fill(x); } // Store all histograms in the output file and close up file->Write(); file->Close(); return 0; }

G. Cowan Lectures on Statistical Data Analysis 12 GNUmakefile to build simpleMC PROGNAME = simpleMC SOURCES = simpleMC.cc INCLUDES = OBJECTS = $(patsubst %.cc, %.o, $(SOURCES)) ROOTCFLAGS := $(shell root-config --cflags) ROOTLIBS := $(shell root-config --libs) ROOTGLIBS := $(shell root-config --glibs) ROOTLIBS := $(shell root-config --nonew --libs) CFLAGS += $(ROOTCFLAGS) LIBS += $(ROOTLIBS) # Not sure why Minuit isn't being included -- put in by hand # LIBS += -lMinuit LDFLAGS = -O $(PROGNAME): $(OBJECTS) g++ -o $(OBJECTS) $(LDFLAGS) $(LIBS) %.o : %.cc $(INCLUDES) g++ ${CFLAGS} -c -g -o $<

G. Cowan Lectures on Statistical Data Analysis 13 Looking at output simpleMC.root You type at root prompt (lines numbered [0], [1], etc.) ROOT creates canvas. To save plot: File, Save as, etc.

G. Cowan Lectures on Statistical Data Analysis 14 Better plots (store commands in a macro file) // To execute, type.X plotHist.C { TFile* f = new TFile("simpleMC.root"); f->ls(); TH1D* h1 = (TH1D*)f->Get("h_Exp"); h1->SetXTitle("x"); h1->SetYTitle("f(x;#xi)"); h1->Draw(); }

G. Cowan Lectures on Statistical Data Analysis 15 Carry on with ROOT Root home page: root.cern.ch (manual, tutorials, etc.) Class definitions: root.cern.ch/root/html/ClassIndex.html E.g. for TH1D: root.cern.ch/root/html/TH1D.html (tick box “show inherited”). More ROOT lectures (links from course website): Adrian Bevan (QMUL) Benno List (DESY) summer_lectures.2007cpp.html