====== CMSSW notes and basic stuffs ======
[ __[[vlsi:personalpages:pacher:cmstk|Back]]__ ]
[ __[[vlsi:personalpages:pacher:cmstk:tracking|Tracking]]__ ]
====== CMS offline WorkBook (public) ======
[[https://twiki.cern.ch/twiki/bin/view/CMSPublic/WorkBook]]
====== UNIX environment ======
[[http://information-technology.web.cern.ch/services/lxplus-service]] \\
[[http://information-technology.web.cern.ch/book/lxplus-service/lxplus-guide/lxplus-aliases]] \\
[[http://information-technology.web.cern.ch/book/lxplus-service/lxplus-5-and-6-differences]]
__**AFS**__
AFS home directory (2GB disk quota by default):
''/afs/cern.ch/user/l/lpacher''
linux% fs lq
AFS workspace (must be activated!):
''/afs/cern.ch/work/l/lpacher''
__**CASTOR**__
CASTOR area, accessible only using Remote File (''rf*'') commands:
''/castor/cern.ch/user/l/lpacher''
[[http://information-technology.web.cern.ch/services/castor-service]] \\
[[http://castor.web.cern.ch/]]
__**SCRAM**__
SCRAM (Software Configuration, Release and Management): \\
''/cvmfs/cms.cern.ch/common/scram''
Note: ''scramv0'' and ''scramv1'' are just symlinks to ''scram'',
linux% ls -l /cvmfs/cms.cern.ch/common | grep scram
-rwxr-xr-x. scram
lrwxrwxrwx. scramv0 -> scram
lrwxrwxrwx. scramv1 -> scram
linux% scram -h / man scram
[[https://twiki.cern.ch/twiki/bin/view/CMSPublic/WorkBookScramV1Intro]] \\
[[https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideScram]]
__**CMSSW area setup**__
Working area setup:
linux% scram project CMSSW
linux% cmsrel
Note: ''cmsrel'' is just an alias for ''scramv1 project CMSSW''
linux% which cmsrel
cmsrel: aliased to scramv1 project CMSSW
UNIX environment setup (PATH and other CMS-specific environment variables):
linux% cd ~/scratch/CMSSW_x_y_z/src/
linux% cmsenv
Note: ''cmsenv'' is just an alias for ''eval `scramv1 runtime -csh`''
linux% which cmsenv
cmsenv: aliased to eval `scramv1 runtime -csh`
[[http://indico.cern.ch/getFile.py/access?contribId=0&resId=0&materialId=slides&confId=86694|
CMSSW tutorial (indico.cern.ch)]]
[[https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideAboutPythonConfigFile|
Description of the cmsRun Python Configuration Syntax]]
====== Git configuration ======
1. Create a GitHub account on
[[https://github.com/join]]
2. With valid login credentials, fork the CMSSW repository on
[[https://github.com/cms-sw/cmssw]]
3. on lxplus, configure git with
linux% git config --global user.name 'Luca Pacher'
linux% git config --global user.email pacher@to.infn.it
linux% git config --global user.github lpacher
====== CMSSW Software Cross Reference (lxr) ======
[[https://cmssdt.cern.ch/SDT/lxr]]
====== Locating datasets ======
[[https://twiki.cern.ch/twiki/bin/view/CMSPublic/WorkBookLocatingDataSamples]]
====== EDM tools ======
[[https://twiki.cern.ch/twiki/bin/view/CMSPublic/WorkBookEdmInfoOnDataFile]]
[[https://twiki.cern.ch/twiki/bin/view/CMSPublic/WorkBookEdmUtilities]]
====== CMSSW job basics ======
Python config file: \\
[[https://twiki.cern.ch/twiki/bin/view/CMSPublic/WorkBookConfigFileIntro]]
XML build file: \\
[[https://twiki.cern.ch/twiki/bin/view/CMSPublic/WorkBookBuildFilesIntro]] \\
[[https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideBuildFile]]
====== EDAnalyzer basics =======
linux% mkedanlzr -help
linux% mkedanlzr -track -histo moduleName