Computing Methods in High Energy Physics

Spring term 2019 (periods III, IV)

Lecturer: Sami Lehti, Office: HIP B321 , Phone: 050 4485621 
Credits:
5op (3ov), 13 lectures, 12 exercises and home exam
Lectures: Monday 10-12  Room D117 

Exercises: Monday 16-17 Room D117 
Solutions to exercises should be returned by Monday at 10 am. 

Exam: Home exam will be given on April 22, and it should be returned by May 20.  
It will contribute 2/3 of the grade, the rest 1/3 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:

Jan 14
Lect 1
Examples
Jan 21
Lect 2
Examples
Jan 28
Lect 3
Feb 4
Lect 4
Feb 11
Lect 5
Examples
No lecture
Feb 18
Lect 6
Examples
Feb 25
Lect 7
Examples
Mar 11
Lect 8
Examples
Mar 18
Lect 9
Examples
Mar 25
Lect 10
Examples
Apr 1
Lect 11
Examples
Apr 8
Lect 12
Examples
Apr 15
Lect 13
Examples
Apr 29
Q&A

If lecture notes are being updated and not available in the above links, older material is available here.

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

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
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.10.09 on kale (assuming bash):
export ROOTSYS=${VO_CMS_SW_DIR}/${SCRAM_ARCH}/lcg/root/6.10.09-mmelna2/
export PATH=${VO_CMS_SW_DIR}/${SCRAM_ARCH}/cms/cmssw/CMSSW_10_0_2/external/${SCRAM_ARCH}/bin:${VO_CMS_SW_DIR}/${SCRAM_ARCH}/external/gcc/6.3.0-cms/bin:${ROOTSYS}/bin:/usr/bin:.
export LD_LIBRARY_PATH=${VO_CMS_SW_DIR}/${SCRAM_ARCH}/cms/cmssw/CMSSW_10_0_2/lib/${SCRAM_ARCH}:${VO_CMS_SW_DIR}/${SCRAM_ARCH}/cms/cmssw/CMSSW_10_0_2/external/${SCRAM_ARCH}/lib:${VO_CMS_SW_DIR}/${SCRAM_ARCH}/external/llvm/5.0.0-cms/lib64:${VO_CMS_SW_DIR}/${SCRAM_ARCH}/external/gcc/6.3.0-cms/lib64:${VO_CMS_SW_DIR}/${SCRAM_ARCH}/external/gcc/6.3.0-cms/lib:${ROOTSYS}/lib
export PYTHONPATH=${ROOTSYS}/lib

ROOT and CMSSW environment for kale (bash)

Exercises:


Jan 21
Exercise1 Solution
Jan 28
Exercise2 Solution
Feb 4
Exercise3 Solution
Feb 11
Exercise4 Solution
No exercise session
Feb 18
Exercise5 Solution
Feb 25
Exercise6 Solution
Mar 11
Exercise7 Solution
Mar 18
Exercise8 Solution
Mar 25
Exercise9 Solution
Apr 1
Exercise10 Solution
Apr 8
Exercise11 Solution
Apr 15
Exercise12 Solution