• Keine Ergebnisse gefunden

Ubungen zu Moderne Methoden der Datenanalyse ¨ Exercise 0: Root

N/A
N/A
Protected

Academic year: 2022

Aktie "Ubungen zu Moderne Methoden der Datenanalyse ¨ Exercise 0: Root"

Copied!
2
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Institut f¨ur Experimentelle Kernphysik (EKP) Prof. Dr. M. Feindt, Dr. T. Kuhr

M. R¨ohrken, B. Kronenbitter, Dr. A. Zupanc

21. October 2010

Ubungen zu Moderne Methoden der Datenanalyse ¨ Exercise 0: Root

The aim of these exercises is to refresh the knowledge about root and some basic C++.

If you have problems solveing the exercise below you can get some help at http://www- root.fnal.gov/root/CPlusPlus/index.html and/or checkRoot TutoriumandN¨utzliche ROOT Kommandos sheets provided on the webpage.

• Exercise 0.1:

Write a hello world macro, i.e. a macro that prints “Hello World” on the screen.

• Exercise 0.2:

Write a macro that takes two real numbers as arguments, prints whether the first or the second one is larger, and returns the absolute difference of the two numbers.

• Exercise 0.3:

Write a macro that creates a histogram, fills it withN Gaussian distributed random numbers (gRandom->Gaus()) with mean=0 and sigma=1 and draws the histogram.

N should be an argument of the macro.

• Exercise 0.4:

Change the macro from exercise 0.3 so that the histogram is written to a file.

• Exercise 0.5:

Write a macro that reads the histogram from the file created in exercise 0.4 and displays it.

(2)

2

• Exercise 0.6:

Add a fit of a Gaussian function to the read histogram from exercise 0.5.

• Exercise 0.7:

Make the plot nicer. Use filled blue boxes with error bars for the histogram and a red line with thickness 3 for the fitted function. Label the axes “x” and “Entries”.

Display only mean, rms, fit probability and fitted parameters with errors in the statistics box.

• Exercise 0.8:

Create a ps file of the plot created in the previous exercise and print it.

Note: Using an ssh client, the CIP-Pool can be accessed from outside under the follo- wing address:

fphctssh.physik.uni-karlsruhe.de

Referenzen

ÄHNLICHE DOKUMENTE

Benutzbar falls Sie die gleiche Linux Distribution installiert haben Zum Kompilieren und Installieren von ROOT

In ROOT lassen sich auch Histogramme mit Zufallszahlen füllen, die dem funktionalen Verlauf eines TF1 Objektes oder einem anderen Histogramm entsprechen.. ROOT – TFn

das komprimierte tar File mit dem Namen root_v6.08.04.source.tar.gz wird entpackt und in die ROOT Quellstruktur expandiert. Im folgenden nehmen wir eine Installation fuer alle

Diese verwenden alle den Linux Kernel, der auf Grund des Lizensierungsmodels von einer Vielzahl von Entwicklern in internationaler Zusammenarbeit gewartet, ver- breitet

MLT‐3 – ein ternärer Code, der ungewünschte elektromagnetische  Emissionen vermeidet Dazu wird Energiekonzentration des Signals

SS 2012 Bildquelle: William Stallings, „Data and Computer Communications“, Ninth Edition, 2011 Grundlagen der Rechnernetze ‐ Lokale Netze 37.

Institut f¨ ur Experimentelle Kernphysik

Second, because paid apps are important to smartphone users, using paid apps for free is a main reason for jailbreaking, a reason more decisive among Android users than Apple