CMSSW notes and basic stuffs

[ Back ] [ Tracking ]

CMS offline WorkBook (public)

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 <CMSSW release>
linux% cmsrel <CMSSW release>

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`

CMSSW tutorial (indico.cern.ch)

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)

Locating datasets

EDM tools

CMSSW job basics

EDAnalyzer basics

linux% mkedanlzr -help
linux% mkedanlzr -track -histo moduleName