The purpose of this page is to help new users get started using CMSSW at UCSD. For more information on how to use CMSSW itself, see the CMSSW workbook.

Setting up the environment

Connect to the UCSD T2. The UAF nodes will be your point of entry for most of the work you do at UCSD. uaf-7 through 9 are the most commonly used of these nodes; they're the most likely to be working well, but also the most likely to be crowded. You can also try uaf-3 through 6 if 7-9 aren't meeting your needs.

Set up CMS environment. Begin by typing this command:

source /code/osgcode/cmssoft/cms/
The next step will depend on the operating system of your chosen uaf node. To check which OS it's using, you can always do:
cat /etc/redhat-release
As of 2014, the uaf's are in a transitional state, with some running CentOS 5, and some CentOS 6. If your chosen uaf runs CentOS 5, you should do:
export SCRAM_ARCH=slc5_amd64_gcc462
If instead you picked a node running CentOS 6, it's the same command, but with "slc6" in place of "slc5".
export SCRAM_ARCH=slc6_amd64_gcc462

Set up a CMSSW release area for your project. If you're on a CentOS 5 machine, I recommend CMSSW release 5_3_2_patch4:

cmsrel CMSSW_5_3_2_patch4
cd CMSSW_5_3_2_patch4/src
If CentOS 6, you might want to try release 5_3_11 instead:
cmsrel CMSSW_5_3_11
cd CMSSW_5_3_11/src
You only need to check out a new release using 'cmsrel' once, then you can use that release for the duration of your project. But every time you login to uaf to work on your project, you need to do 'cmsenv' inside your release area to set up that release.

Now you should be all set to use CMSSW at UCSD. To learn more about CMSSW, see the CMSSW workbook.

Installing CMSSW on your local computer

***NOTE: This section is out of date. Use at your own risk.

These instructions are for a computer running SL4:

* Get the right version of apt. As root do:

rpm -ivh apt-0.5.15lorg3.2-1.el4.rf.x86_64.rpm

It may be necessary to remove other versions of apt-get first using rpm -e.

* As a non-priviledged user, install the CMSSW (version 1_4_0_pre3 in this case) code as follows:

export VO_CMS_SW_DIR=/code/osgcode/cmslocal/cms
export cms_path=$VO_CMS_SW_DIR

export BUILD_ARCH=`echo $site_arch_choice | awk -F_ '{print $1"_"$2}'`
export SCRAM_ARCH=$site_arch_choice

if [ ! -d $cms_path ] ; then
    mkdir -p $cms_path
    wget -O $cms_path/
    chmod +x $cms_path/
    $cms_path/ setup -arch $site_arch_choice -path $cms_path

eval `$cms_path/ config -arch $site_arch_choice -path $cms_path -sh`
apt-get update
apt-get dist-upgrade
apt-get install cms+cmssw+${site_cmssw_choice}

-- RamiVanguri - 26 Jun 2006
-- JamesLetts - 11 May 2007

Topic revision: r7 - 2014/06/04 - 22:03:45 - DanielKlein
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback