ROOT Tutorial für D. Liko. Was ist ROOT ? ● Am CERN entwickeltes Tool zur Analyse von Daten ● Funktionalität in vielen Bereichen ● Objekte.

Slides:



Advertisements
Ähnliche Präsentationen
Die deutsche Satzstellung
Advertisements

Starter – Match up – Write the German AND English
Verbs Used Impersonally With Dative Deutsch I/II Fr. Spampinato.
Java: Grundlagen der Sprache
MPEG-4 3D Inhalterstellung am Beispiel eines 3D-Benutzerhandbuchs für Kfz FV/SLM-Benzler.
Can you think of some KEY phrases which would be useful in multiple contexts? Take 2 minutes with a partner and come up with as many as you can!
Laurie Clarcq The purpose of language, used in communication, is to create a picture in the mind and/or the heart of another.
Perfektion ist eine Lüge, Perfection is a lie, die auch irgendwie wichtig ist. That is also somehow important. Jeder, der nach ihr strebt, Everyone who.
IF YOU KNOW THE WORDS AND PHRASES, IT’S EASY
The word,,aber in German is most often used as a coordinating conjunction. Ich wollte nach Bremen fahren aber Mein Auto ist kaputt. Ich mag English aber.
Welcome Instructor: Dominik Dwight Zethmeier
Clean Code Software-Entwicklung als Handwerkskunst Thomas Nagel, November 2011.
Plusquamperfekt The past of the past.
Launch ON Global.vi System ID object name classname Services to suscribe Observer Control Ref vi-path Service name Step 1 : Objects register to the Global.vi´s,
Universität StuttgartInstitut für Wasserbau, Lehrstuhl für Hydrologie und Geohydrologie Copulas (1) András Bárdossy IWS Universität Stuttgart.
Der formelle Imperativ – the Imperative
Relativpronomen Der Mann ist mein Onkel. --Wir haben den Mann im Theater gesehen. You can express related ideas in separate sentences, or you can.
Coordinating Conjunctions Why we need them & how to use them deutschdrang.com.
Alois Schütte Advanced System Programming 2 Interprozeßkommunikation  2.1 JVM Ablaufumgebung  2.2 Java Native Interface (JNI)  Verwendung von.
Sprachneuerungen des .NET Frameworks 3.5
1 Public libraries’ perspectives in the digital media world Doom or bloom: reinventing the library in the digital age 29th October 2009 Christian Hasiewicz.
Review of Verb Tense & Expressing Opinions
Nominative & Accusative Basic Rules for Relative Pronouns in German:
1 Bauhaus-Universität Weimar ArchitekturProgrammierung Generative Entwurfsmethoden Processing Grundlagen Professur Informatik in der Architektur.
Institut für Angewandte Mikroelektronik und Datentechnik Course and contest Results of Phase 4 Nils Büscher Selected Topics in VLSI Design (Module 24513)
Literary Machines, zusammengestellt für ::COLLABOR:: von H. Mittendorfer Literary MACHINES 1980 bis 1987, by Theodor Holm NELSON ISBN
Teammeeting NTW, Uta Bilow International Masterclasses 2013.
Heute ist der letzte Tag im Semester! Freitag, 7. Dezember 2007 Deutsches Theater heute um 19.00!
3rd Review, Vienna, 16th of April 1999 SIT-MOON ESPRIT Project Nr Siemens AG Österreich Robotiker Technische Universität Wien Politecnico di Milano.
Physik multimedial Lehr- und Lernmodule für das Studium der Physik als Nebenfach Julika Mimkes: Links to e-learning content for.
KLIMA SUCHT SCHUTZ EINE KAMPAGNE GEFÖRDERT VOM BUNDESUMWELTMINISTERIUM Co2 online.
Gregor Graf Oracle Portal (Part of the Oracle Application Server 9i) Gregor Graf (2001,2002)
© Crown copyright 2011, Department for Education These materials have been designed to be reproduced for internal circulation, research and teaching or.
Kapitel 9 Grammar INDEX 1.Prepositions 2.Dative Prepositions 3.Accusative Prepositions.
Kapitel 4 Grammar INDEX 1.Ordinal Numbers 2.Relative Pronouns and Relative Clauses 3.Conditional Sentences 4.Posessive: Genitive Case.
EUROPÄISCHE GEMEINSCHAFT Europäischer Sozialfonds EUROPÄISCHE GEMEINSCHAFT Europäischer Fonds für Regionale Entwicklung Workpackage 5 – guidelines Tasks.
Kapitel 2 Grammar INDEX 1.Subjects & Verbs 2.Conjugation of Verbs 3.Subject Verb Agreement 4.Person and Number 5.Present Tense 6.Word Order: Position of.
Kapitel 7 Grammar INDEX 1.Comparison 2.Adjectives 3.Adjective Endings Following Ein-Words.
Kapitel 8 Grammar INDEX 1.Command Forms: The Du-Command Form & Ihr- Command 2.Sentences & Clauses.
Guten Morgen! Dienstag den 8.9. Due: LB 1.1O, P, Q (Aufsatz, 50 Wörter) Aufgabe bis Mittwoch den 9.9. IA 1.2 and printout LB 1.2A-B GR redo with summary.
EUROPÄISCHE GEMEINSCHAFT Europäischer Sozialfonds EUROPÄISCHE GEMEINSCHAFT Europäischer Fonds für Regionale Entwicklung Workpackage 5 – guidelines Tasks.
The PowerLanguage Platform © PowerLanguage™ Ltd KEY LANGUAGE YEAR 1 / BLOCK 1 GERMAN.
Kapitel 9 Grammar INDEX 1.Formal Sie- Command 2.There Is/There Are 3.Negation: Nicht/Klein.
Das Wetter Lernziele: Heute: The „Wenn“ clause! - To describe and report the weather - To discuss activities done in different types of weather - To compare.
Tips for our guests in Germany. Impressum Verantwortlich
On the case of German has 4 cases NOMINATIVE ACCUSATIVE GENITIVE DATIVE.
German “ da - compounds ” Provided by deutschdrang. com for individual and classroom use only. May not be reproduced for any other purposes.
Die Programmiersprache Ruby Seminarvortrag von Lia Schulze Dephoff 1.
Indico Meeting Dennis Klein 4. August Übersicht  Korrespondenz CERN  Trouble Ticket Queue  Integration GSI-Accounts  Subversion & Wiki  Todo.
Money rules the medicine?! A presentation by Jan Peter Hoffmann European healthcare systems in comparison.
DAS HABE ICH GESTERN GEMACHT! I DID HAVE DONE THAT YESTERDAY! Das Perfekt-Präsens.
Essay structure Example: Die fetten Jahre sind vorbei: Was passiert auf der Almhütte? Welche Bedeutung hat sie für jede der vier Personen? Intro: One or.
LLP DE-COMENIUS-CMP Dieses Projekt wurde mit Unterstützung der Europäischen Kommission finanziert. Die Verantwortung für den Inhalt dieser.
Premiere Conferencing GmbH
Kapitel 1 INDEX Conversational Past Grammar.
Frage des Tages Bin ich froh, wenn ich heute Abend ___ Hause bin!
Aspect-Oriented Programming: Fad or the Future
Synonyms are two or more words belonging to the same part of speech and possessing one or more identical or nearly identical denotational meanings, interchangeable.
Hallo! Wie geht’s? Hallo! Mir geht’s gut, danke! Guten Tag!
To English Translations
Wie viel Uhr ist es? Telling Time.
Official Statistics Web Cartography in Germany − Regional Statistics, Federal and European Elections, Future Activities − Joint Working Party meeting.
OFFICE 365 FOCUS SESSION SHAREPOINT ONLINE 101:LERNE DIE BASICS 19. März 2018 Höhr-Grenzhausen.
Integrating Knowledge Discovery into Knowledge Management
Die tiere Share: Introduce the session and PDSA.
- moodle – a internet based learning platform
Eine Präsentation von Heiko Gericke
 Präsentation transkript:

ROOT Tutorial für D. Liko

Was ist ROOT ? ● Am CERN entwickeltes Tool zur Analyse von Daten ● Funktionalität in vielen Bereichen ● Objekte ● C++ ● Skriptsprachen

Was kann ROOT

Verschiedene Aspekte ● C++ as script language with interpreter CINT ● Also python and ruby ● GUI for interactive visualization(TCanvas, TBrowser,...) ● I/O and analysis of large amountof data(TFile, TTree,...) ● Histograming, plotting, fits(TH1x, TGraph, TF1,...) ● Physics and mathematics(TMatrix, TLorentzVector, TMath,..) ● Objectorganisation(TCollection, TDirectory, TFolder,...) ● Parallel analysis via network(TProof) ● Vieles mehr ● hat alle Dokumentation

Setup ROOT ● Environment Variable ● PATH ● LD_LIBRARY_PATH ● ROOTSYS

Hello ROOT 1 [heplx02] /scratch/liko/workbook/CMSSW_3_3_1 $ root ******************************************* * * * W E L C O M E to R O O T * * * * Version 5.22/00d 27 July 2009 * * * * You are welcome to visit our Web site * * * * * ******************************************* ROOT 5.22/00d Sep , 00:59:00 on linux) CINT/ROOT C/C++ Interpreter version , Jan 08, 2008 Type ? for help. Commands must be C++ statements. Enclose multiple statements between { }. root [0] cout << "Hello World" << endl; Hello World root [1] printf("Hello World\n"); Hello World

Hello Root 2 root [0] TCanvas *c = new TCanvas("canvas1","Hello World Canvas",600,400) root [1] c->cd() root [2] TText *t = new TText(0.5, 0.5, "Hallo Welt") root [3] t->Draw()

ROOT Scripte root [0].x HelloWorld.C

Objekt Orientiert ● Wenn man etwas in ROOT machen will, muss man Objekte benutzen ● Objekt wird durch eine Klasse definiert ● Attribute ● Methoden

Inheritance TFile TRFIOFileTNetFile

Beispiel ● TFile * input = new Tfile::Open(“ ● TFile is the main class that provides the interface ● TFile has a Factory Methode ● Actual implementation is TNetFile

Shared Libraries Main Root Program Extension AExtension B

Histogramme ● Ein Histogramm ist eine komfortable Art Daten darzustellen und zu speichern. Im Prinzip besteht es aus einer Achse, die einen minimalen und ein maximalen Wert hat. Die Achse ist in eine Anzahl von Abschnitten (Bins) aufgeteilt ist, für die es jeweils einen Zähler gibt. ● Wenn man nun einen Wert in das Histogramm einfüllt, wird der Abschnitt gesucht, in den der Wert fällt, und dessen Zähler dann um eins erhöht. Man speichert also nicht mehr die Werte an sich sondern nur die Häufigkeiten, mit denen ein Wert innerhalb eines bestimmten Abschnittes vorkommt.

Beispiel Histogramm TCanvas *c = new TCanvas("canvas3", "Beispiel Histogram", 600, 400); c->cd(); TH1D *hist1D = new TH1D("hist1D", "Erstsemester", 10, 15., 25.); double werte[20] = {18., 17., 18., 18., 19., 23., 19., 18., 19., 18., 20., 21., 20., 18., 19., 20., 18., 19., 18., 18.}; for(int i = 0; i < 20; i++) { hist1D->Fill(werte[i]); } hist1D->GetXaxis()->SetTitle("Alter (Jahren)"); hist1D->GetYaxis()->SetTitle("Anzahl"); hist1D->Draw();

2D Histogramm TCanvas *c = new TCanvas("canvas4", "Beispiel 2D Histogram", 600, 400); c->cd(); TH2D *hist2D = new TH2D("hist2D", "Erstsemester 2D", 10, 15., 25., 10, 1.60, 2.00); double alter[20] = {18., 17., 18., 18., 19., 23., 19., 18., 19., 18., 20., 21., 20., 18., 19., 20., 18., 19., 18., 18.}; double groesse[20] = {1.76, 1.68, 1.90, 1.72, 1.87, 1.64, 1.78, 1.82, 1.75, 1.70, 1.72, 1.79, 1.80, 1.75, 1.89, 1.68, 1.77, 1.77, 1.87, 1.72}; for(int i = 0; i < 20; i++) { hist2D->Fill(alter[i], groesse[i]); } hist2D->GetXaxis()->SetTitle("Alter (Jahren)"); hist2D->GetYaxis()->SetTitle("Groesse (m)"); hist2D->GetZaxis()->SetTitle("Anzahl"); hist2D->Draw("LEGO2");

Daten mit Fehlern double zeit[4] = {2., 4., 6., 8.}; double geschw[4] = {10., 12., 15., 19.}; double geschwFehler[4] = {1., 1.2, 1.6, 1.4}; TGraphErrors *gr = new TGraphErrors(4, zeit, geschw, 0, geschwFehler); gr->SetTitle(""); gr->SetMarkerStyle(22); gr->GetXaxis()->SetTitle("Zeit (s)"); gr->GetYaxis()->SetTitle("Geschwindigkeit (m/s)"); gr->Draw("AP");

Ntuple and TTree ● Ntuple ● Most simple structure to store data ● Data are Tuples ● Ttree ● Advanced data structure to store all kind of Objects ● Ntuples ● Histograms, Canvas, etc ● Event Data

Create and Examine Ntuple root $ROOTSYS/tutorials/hsimple.C ******************************************* * * * W E L C O M E to R O O T * * * * Version 5.22/00d 27 July 2009 * * * * You are welcome to visit our Web site * * * * * ******************************************* ROOT 5.22/00d Sep , 00:59:00 on linux) CINT/ROOT C/C++ Interpreter version , Jan 08, 2008 Type ? for help. Commands must be C++ statements. Enclose multiple statements between { }. root [0] Processing /afs/hephy.at/project/cms/software/slc4_ia32_gcc345/lcg/root/ d- cms//tutorials/hsimple.C... hsimple : Real Time = seconds Cpu Time = 0.46 seconds

$ROOTSYS/tutorials/tree/ntuple1.C

What is python ? ● Python is an interpreted, object-oriented, high- level programming language with dynamic semantics. ● Its high-level built in data structures, combined with dynamic typing and dynamic binding, make it very attractive for Rapid Application Development, as well as for use as a scripting or glue language to connect existing components together.

Python Hello World [heplx02] /scratch/liko/workbook/CMSSW_3_3_1 $ python Python (#1, Mar , 22:56:43) [GCC 3.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> print "hello World" hello World >>>

Python and ROOT ● ROOT and Python are often used together ● Same objects ● Different syntax ● python $ROOTSYS/tutorials/pyroot/hsum.py