Computing Methods in High Energy Physics

Spring term 2024 (periods III-IV)

Lecturer: Sami Lehti, Office: HIP B321 , Phone: 050 4485621 
Credits:
5op (3ov), 13 lectures, 12 exercises and project work

Lectures: Friday 10-12, Physicum D116  

Exercises: Friday 12-13 Physicum D116 
Solutions to exercises should be returned by Friday at 10:15 am. 

Exam: Project work is to be returned by May 24.  
It will contribute 1/2 of the grade, the rest 1/2 comes from the exercises.  

Course description

The course provides an introduction to learning to use software
used in a typical High Energy Physics experiment. The CMS experiment
is used as an example.

Topics covered include:

Short review of UNIX
C++
ROOT
Combining languages
Cross section and branching ratio calculations
Event generators
Detector simulations
Reconstruction
Fast simulation
Grid computing

Lecture notes, examples and exercises in the git repository.
Lecture notes:

Jan 19
Lect 1
Examples
Virtual
Lect 2
Examples
Jan 26
Lect 3
Examples
Feb 2
Lect 4
Examples
Feb 9
Lect 5
Examples
Feb 16
Lect 6
Examples
Feb 23
Lect 7
Examples
Mar 1 (Virtual)
Lect 8
Examples
Mar 15
Lect 9
Examples
Mar 22
Lect 10
Examples
April 5
Lect 11
Examples
Apr 12
Lect 12
Examples
Virtual
Lect 13
Examples
Apr 19
Lect 14
Examples 14
Apr 26
Lect 15
Examples 15
May 3
Project work presentations

Literature
Lecture notes.
A book on C++ for reference.

Git
Some git instructions

Grid certificate
(For students of University of Helsinki only)
Instructions how to get a grid certificate
Instructions how to get a VO fgi.csc.fi membership
Escience-portal
Save your certificate on disk as a p12 file.
In $HOME/.globus directory
openssl pkcs12 -nocerts -in mycert.p12 -out userkey.pem
openssl pkcs12 -clcerts -nokeys -in mycert.p12 -out usercert.pem
chmod 0400 userkey.pem
chmod 0600 usercert.pem

Software environment
How to install a virtual machine for running CMS software

Linux cluster "kale" in the University of Helsinki
How to login:
First login to some machine inside the university firewall
Inside the firewall: ssh -X <username>@turso.cs.helsinki.fi
An example environment can be found here

CMSSW on kale (assuming bash):
export VO_CMS_SW_DIR=/cvmfs/cms.cern.ch
source ${VO_CMS_SW_DIR}/cmsset_default.sh
export SCRAM_ARCH=slc7_amd64_gcc630

ROOT 6.30.04 on markka (assuming bash):
# check your linux version with
lsb_release -a
wget https://root.cern/download/root_v6.30.04.Linux-ubuntu22.04-x86_64-gcc11.4.tar.gz
tar xfvz root_v6.30.04.Linux-ubuntu22.04-x86_64-gcc11.4.tar.gz
mv root root_v6.30.04

Add in your environment:
export ROOTSYS=$HOME/root_v6.30.04
export PATH=${PATH}:${ROOTSYS}/bin
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${ROOTSYS}/lib
export PYTHONPATH=$LD_LIBRARY_PATH

ROOT and CMSSW environment for kale (bash)

Exercises:


Jan 26
Exercise1 Solution
Feb 2
Exercise2 Solution
Feb 9
Exercise3 Solution
Feb 16
Exercise4 Solution
Feb 23
Exercise5 Solution
Mar 1
Exercise6 Solution
Mar 15
Exercise7 Solution
Mar 22
Exercise8 Solution
April 5
Exercise9 Solution
Apr 12
Exercise10 Solution
Apr 19
Exercise11 Solution
Apr 26
Exercise12 Solution