Computing Methods in High Energy Physics

Spring term 2021 (periods III and IV)

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

Lectures: Friday 10-12, Physicum D112

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

Exam: Home exam will be given on April 30, and it should be returned by May 30.  
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
Python
C++
ROOT
Combining languages
Cross section and branching ratio calculations
Event generators
Detector simulations
Reconstruction
Fast simulation
Grid computing

Lecture notes:

Jan 22
Lect 1
Examples
-
Lect 2
Examples
Jan 29
Lect 3
Examples
Feb 5
Lect 4
Examples
Feb 12
Lect 5
Examples
Feb 19
Lect 6
Examples
Feb26
Lect 7
Examples
Mar 5
Lect 8
Examples
Mar 19
Lect 9
Examples
Mar 26
Lect 10
Examples
Apr 9
Lect 11
Examples
Apr 16
Lect 12
Examples
Apr 23
Lect 13
Examples
FastSim
Apr 30
Lect 14
Examples

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_gcc820

ROOT 6.14.09 on kale (assuming bash):
export ROOTSYS=/cvmfs/cms.cern.ch/slc7_amd64_gcc820/lcg/root/6.20.06-bcolbf/
export PATH=cvmfs/cms.cern.ch/share/overrides/bin:/wrk/users/slehti/CMSSW_11_1_7/bin/slc7_amd64_gcc820:/wrk/users/slehti/CMSSW_11_1_7/external/slc7_amd64_gcc820/bin:/cvmfs/cms.cern.ch/slc7_amd64_gcc820/cms/cmssw/CMSSW_11_1_7/bin/slc7_amd64_gcc820:/cvmfs/cms.cern.ch/slc7_amd64_gcc820/cms/cmssw/CMSSW_11_1_7/external/slc7_amd64_gcc820/bin:/cvmfs/cms.cern.ch/slc7_amd64_gcc820/external/llvm/9.0.1-bcolbf3/bin:/cvmfs/cms.cern.ch/slc7_amd64_gcc820/external/gcc/8.2.0-bcolbf/bin:/cvmfs/cms.cern.ch/slc7_amd64_gcc820/lcg/root/6.14.09-pafccj5//bin:/cvmfs/cms.cern.ch/slc7_amd64_gcc820/cms/cmssw/CMSSW_10_6_20/external/slc7_amd64_gcc820/bin/python:.:/cvmfs/cms.cern.ch/common:/cvmfs/cms.cern.ch/slc7_amd64_gcc820/cms/cmssw/CMSSW_10_6_20/external/slc7_amd64_gcc820/bin/python:.:/cvmfs/cms.cern.ch/common:/usr/lib/qt-3.3/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt/dell/srvadmin/bin:.
export LD_LIBRARY_PATH=/wrk/users/slehti/CMSSW_10_6_20/biglib/slc7_amd64_gcc820:/wrk/users/slehti/CMSSW_10_6_20/lib/slc7_amd64_gcc820:/wrk/users/slehti/CMSSW_10_6_20/external/slc7_amd64_gcc820/lib:/\ cvmfs/cms.cern.ch/slc7_amd64_gcc820/cms/cmssw/CMSSW_10_6_20/biglib/slc7_amd64_gcc820:/cvmfs/cms.cern.ch/slc7_amd64_gcc820/cms/cmssw/CMSSW_10_6_20/lib/slc7_amd64_gcc820:/cvmfs/cms.cern.ch/slc7_amd64_\ gcc820/cms/cmssw/CMSSW_10_6_20/external/slc7_amd64_gcc820/lib:/cvmfs/cms.cern.ch/slc7_amd64_gcc820/external/llvm/7.1.0-pafccj/lib64:/cvmfs/cms.cern.ch/slc7_amd64_gcc820/external/gcc/8.2.0-pafccj/lib\ 64:/cvmfs/cms.cern.ch/slc7_amd64_gcc820/external/gcc/8.2.0-pafccj/lib:/cvmfs/cms.cern.ch/slc7_amd64_gcc820/external/cuda/10.1.105-pafccj2/drivers

ROOT and CMSSW environment for kale (bash)

Exercises:


Jan 29
Exercise1 Solution
Feb 5
Exercise2 Solution
Feb 12
Exercise3 Solution
Feb 19
Exercise4 Solution
Fed 26
Exercise5 Solution
Mar 5
Exercise6 Solution
Mar 19
Exercise7 Solution
Mar 26
Exercise8 Solution
Apr 9
Exercise9 Solution
Apr 16
Exercise10 Solution
Apr 23
Exercise11 Solution
Apr 30
Exercise12 Solution