• Keine Ergebnisse gefunden

Computer¨ubungzurVorlesungModerneMethodenderDatenanalyseIntroduction-gettingstarted Institutf¨urexperimentelleKernphysik Fakult¨atf¨urPhysik

N/A
N/A
Protected

Academic year: 2022

Aktie "Computer¨ubungzurVorlesungModerneMethodenderDatenanalyseIntroduction-gettingstarted Institutf¨urexperimentelleKernphysik Fakult¨atf¨urPhysik"

Copied!
2
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Fakult¨ at f¨ ur Physik

Institut f¨ ur experimentelle Kernphysik

Prof. Dr. G. Quast, Prof. Dr. M. Feindt, Dr. A. Zupanc

Ubungsgruppen: G. Sieber, B. Kronenbitter, A. Heller¨ Ausgabe: 17.04.2012

Computer¨ ubung zur Vorlesung Moderne Methoden der Datenanalyse

Introduction - getting started

• The web page

http://www-ekp.physik.uni-karlsruhe.de/zupanc/SS12

will be used to provide additional information, material and links for this course. It will be gradually updated during the course. You might want to set a bookmark to this page in your browser.

• You need an account for this course. If you do not have one, please register for a new account by filling in the questionnaire at

https://comp.physik.uni-karlsruhe.de/Account/Benutzerantrag.html.

On this page you can also find a link for the prolongation of an existing account.

• It is assumed that you followed the course Rechnernutzung in der Physik and are familiar with the basics of Linux, xemacs (or any other editor), root and C++. Some links are provided on the web page to refresh this knowledge. In particular, revisit the script “Diving into Root”, and familiarize yourself with the virtual machine containing the software needed for this course (Script “Virtuelle Maschine zur Physik”). Alternatively, you may install Root (http://root.cern.ch) on your own computer.

• It is recommended to create a subdirectory (withmkdir) in your home directory and use it as a working directory for this course.

• Feel free to ask questions and discuss problems and solutions with the tutors and other students. Tutors are available every Thursday from 15:30 to 18:00.

(2)

Exercise 0: Root

The aim of these exercises is to refresh the knowledge about root.

• 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.

• Exercise 0.6:

Add a fit of a Gaussian function to the 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 following address:

fphctssh.physik.uni-karlsruhe.de

Referenzen

ÄHNLICHE DOKUMENTE

As a repetition of important concepts in data analysis, this exercise aims at constructing the error band around a function, f (x), fitted to data points (x, y) - i.e.. Store the

To correct the measured m t¯ t spectrum, a Monte Carlo simulation of t¯t events is used to simulate the smearing between true and reconstructed masses.. For this exercise, you find

“Is this a new discovery or just a statistical fluctuation?” Statistics offers some methods to give a quantitative answer but these methods should not be used blindly; in

F¨ur einen gegebenen Impuls einer Spur, sei dE/dx in der Spurkammer im Mittel f¨ur Pionen 1,3 MeV/m und f¨ur Kaonen 1,6 MeV/m.. Die Unsicherheit auf die Messung betrage jeweils

The other files needed for this exercise are provided there as well: A root file containing the training data where it is known whether the customer paid, a root file containing

Take the variables which you used for the cut based approach in the last exercise and calculate the ratio of the probability density functions for good and bad customers P good

One way how to check, that the network is not overtrained is to split the training sample into N subsamples, training a Neural Network N times with N − 1 subsamples and applying

In practice, the IMSE can be approximated by sum- ming the squared difference between the kernel estimator and the true density values (up to a constant factor). > ## Compute