-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompile_4_4_7.readme.txt
84 lines (70 loc) · 2.82 KB
/
compile_4_4_7.readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
The following are instructions on how to set up and compile the code on
an sl7 cms workgroup server on lxplus or at DESY,
with CMSSW_4_4_7 (2011 2.76 TeV pp data and MC).
open a "fresh" xterm window on your sl7 machine at DESY or CERN:
xterm &
or
ssh lxplus.cern.ch
once (1st time only, might only be needed later to access files for running):
---------------------
install grid certificate (userkey.pem) in .globus
set permissions to _r_______
every time:
-----------
initialize cms grid proxy:
(can do later, might need to repeat later if proxy expired)
voms-proxy-init -voms cms
give passphrase
at DESY only (no action needed on lxplus):
initialize cmssw environment:
module use -a /afs/desy.de/group/cms/modulefiles
module load cmssw
start sl5 singularity shell:
at DESY:
cmssw-env --cmsos slc5 --bind /nfs:/nfs
the latter is for access to the local disk area /nfs/dust
on lxplus:
cmssw-env --cmsos slc5
check release (optional):
Singularity> cat /etc/redhat-release
-> Scientific Linux CERN SLC release 5.11 (Boron)
set cms defaults:
Singularity> source /cvmfs/cms.cern.ch/cmsset_default.sh
check compiler version (optional):
Singularity> echo $SCRAM_ARCH
-> slc5_amd64_gcc481
(will be reset to slc5_amd64_gcc434 upon cmsrel later)
once (first time only):
-----------------------
on the top directory in which you would like to install the code,
(dot *not* mkdir the CMSSW directory beforehand)
create the CMSSW 4_4_7 environment:
cmsrel CMSSW_4_4_7
(ignore potential "Release ... is not available" error message)
this will create the corresponding directory with subdirectories
every time:
-----------
cd CMSSW_4_4_7/src
make sure you have access rights to CERN git.
(if you do not have them yet the git clone command will give an error)
e.g., for access via your CERN kerberos token:
kinit "yourCERNusername"@CERN.CH
(if kinit does not exist on singularity, do it on the "parent" sl7 window)
once (first time only):
-----------------------
in the src directory, set up .../CMSSW_5_3_32/src/NanoAOD/NanoAnalyzer/:
git clone https://:@gitlab.cern.ch:8443/cms-opendata/cms-opendata-nanoaodplus/nanoaodplus_v1.git NanoAOD/NanoAnalyzer
every time
----------
cd NanoAOD/NanoAnalyzer
here you will now find the content of
https://gitlab.cern.ch/cms-opendata/cms-opendata-nanoaodplus/nanoaodplus_v1
technically, the NanoAnalyzer is a so-called EDAnalyzer
(originally set up with mkdanlzr)
whenever you want to update the code to the latest version (not first time)
---------------------------------------------------------------------------
git pull
to compile:
scram b
(ignore ****WARNING: Invalid tool EgammaAnalysis/ElectronTools. Please fix src/NanoAOD/NanoAnalyzer/BuildFile.xml file.)
For instructions how to run see run_readme.txt