CMSSW TUTORIAL

The workbook tutorial needs to be adapted to run at UCSD in setting up the CMSSW environment as follows. Also of interest is Oliver's Tutorial.

Setting up the environment

# first setup the CMS environment locally
# connect to the UCSD T2:
ssh username@uaf-1.t2.ucsd.edu

# set up CMS environment
export OSG_APP=/code/osgcode                   # not needed in batch!
export CMS_PATH=$OSG_APP/cmssoft/cms
source $OSG_APP/cmssoft/cmsset_default.sh CMSSW_1_2_0

# set up your project area:
scramv1 -arch slc3_ia32_gcc323 project CMSSW CMSSW_1_2_0
cd CMSSW_1_2_0/src
eval `scramv1 -arch slc3_ia32_gcc323 runtime -sh`

Then you are ready to do the Introductory Framework Tutorial. The file 04437DE4-F150-DB11-861A-000E0C3E6C10.root can be found on the uaf-1.t2.ucsd.edu:/home/users/letts/tutorial or in dCache at /pnfs/sdsc.edu/data3/phedex/tutorial.

Installing CMSSW on your local computer

These instructions are for a computer running SL4:

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

wget http://dag.wieers.com/rpm/packages/apt/apt-0.5.15lorg3.2-1.el4.rf.x86_64.rpm
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:

#!/bin/sh
export VO_CMS_SW_DIR=/code/osgcode/cmslocal/cms
export cms_path=$VO_CMS_SW_DIR
site_cmssw_choice=CMSSW_1_4_0_pre3

#site_arch_choice=slc3_ia32_gcc323
site_arch_choice=slc4_ia32_gcc345
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/aptinstaller.sh http://cmsdoc.cern.ch/cms/cpt/Software/download/cms/aptinstaller.sh
    chmod +x $cms_path/aptinstaller.sh
    $cms_path/aptinstaller.sh setup -arch $site_arch_choice -path $cms_path
fi

eval `$cms_path/aptinstaller.sh 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: r5 - 2007/05/11 - 18:29:22 - JamesLetts
 
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