Difference: CMSSWDocumentation (1 vs. 7)

Revision 72014/06/04 - Main.DanielKlein

Line: 1 to 1
 
META TOPICPARENT name="WebHome"
Changed:
<
<

CMSSW TUTORIAL

>
>

CMSSW TUTORIAL

 
Changed:
<
<
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.
>
>
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

Changed:
<
<
Connect to the UCSD T2:
>
>
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.
 
ssh username@uaf-7.t2.ucsd.edu
Changed:
<
<
Set up CMS environment
>
>
Set up CMS environment. Begin by typing this command:
 
Deleted:
<
<
export CMS_PATH=/code/osgcode/cmssoft/cms
 source /code/osgcode/cmssoft/cms/cmsset_default.sh
Added:
>
>
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
Added:
>
>
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
 
Changed:
<
<
Create and set up your project area:
>
>
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
cmsenv
Added:
>
>
If CentOS 6, you might want to try release 5_3_11 instead:
cmsrel CMSSW_5_3_11
cd CMSSW_5_3_11/src
cmsenv
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.
 
Changed:
<
<
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.
>
>
Now you should be all set to use CMSSW at UCSD. To learn more about CMSSW, see the CMSSW workbook.
 
Changed:
<
<

Installing CMSSW on your local computer

>
>

Installing CMSSW on your local computer

  ***NOTE: This section is out of date. Use at your own risk.
Line: 41 to 58
  It may be necessary to remove other versions of apt-get first using rpm -e.
Changed:
<
<
* As a non-priviledged user, install the CMSSW (version 1_4_0_pre3 in this case) code as follows:
>
>
* As a non-priviledged user, install the CMSSW (version 1_4_0_pre3 in this case) code as follows:
 
#!/bin/sh

Revision 62014/06/04 - Main.DanielKlein

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

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

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

Set up CMS environment

export CMS_PATH=/code/osgcode/cmssoft/cms
source /code/osgcode/cmssoft/cms/cmsset_default.sh
export SCRAM_ARCH=slc5_amd64_gcc462
 
Changed:
<
<
# 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`

>
>
Create and set up your project area:
cmsrel CMSSW_5_3_2_patch4
cd CMSSW_5_3_2_patch4/src
cmsenv
 

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

Added:
>
>
***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:

Revision 52007/05/11 - Main.JamesLetts

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

CMSSW TUTORIAL

Line: 23 to 23
  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.
Added:
>
>

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
Changed:
<
<
-- JamesLetts - 10 Jan 2007
>
>
-- JamesLetts - 11 May 2007

Revision 42007/01/10 - Main.JamesLetts

Line: 1 to 1
 
META TOPICPARENT name="WebHome"
Changed:
<
<

CMSSW Documentation

>
>

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
Changed:
<
<
export CMS_PATH=/code/osgcode/cmssoft/cms
source $CMS_PATH/setup/bashrc
export SCRAM_ARCH=slc3_ia32_gcc323
export CERN=$CMS_PATH/lcg/external/cern
export CERN_LEVEL=2004/$SCRAM_ARCH
export CERN_ROOT=$CERN/$CERN_LEVEL
export GROUP_DIR=$CMS_PATH/setup
export CMS_SYS=`$CMS_PATH/utils/fake-sys`
export PATH=${CMS_PATH}/bin/${CMS_SYS}:${CMS_PATH}/utils:${CERN_ROOT}/bin:$PATH

#BEGIN TUTORIAL
VERSION=0_7_0
scramv1 project CMSSW CMSSW_$VERSION
cd CMSSW_$VERSION/src
eval `scramv1 runtime -sh`

#HACK SINCE FieldConfiguration? .xml is in the wrong place
#export CMSSW_SEARCH_PATH=$CMSSW_SEARCH_PATH:/code/osgcode/cmslocal/CMSSW
export CMSSW_SEARCH_PATH=$CMSSW_SEARCH_PATH:/code/osgcode/cmssoft/cms/Releases/CMSSW/CMSSW_0_7_0/src

#CONTINUE TUTORIAL
cmscvsroot CMSSW
cvs login
wget http://home.fnal.gov/~jmmans/tutorials/CMSSW_Tutorial_$VERSION.tgz
tar xfz CMSSW_Tutorial_$VERSION.tgz
cd WorkBook? /Tutorial1/test

#HACK since this datafile is HARDCODED in the wrong place in CMSSW, so fix the configuration file
cat jet_reco.cfg | sed 's/include \"SimGeneral\/HepPDTESSource\/data\/pdt.cfi\"/es_source = HepPDTESSource? \{ \n string pdtFileName = \"\/code\/osgcode\/cmssoft\/cms\/lcg\/external\/heppdt\/2.02.02\/slc3_ia32_gcc323\/data\/PDG_mass_width_2004.mc\"\n \}/' > jet_reco_jrl.cfg

#CONTINUE TUTORIAL
cmsRun jet_reco_jrl.cfg

Then continue with the CMSSW WorkBookRunTutorial.

>
>
# 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`
 
Added:
>
>
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.
 
Deleted:
<
<
-- RamiVanguri - 26 Jun 2006
 \ No newline at end of file
Added:
>
>
-- RamiVanguri - 26 Jun 2006
-- JamesLetts - 10 Jan 2007

Revision 32006/06/27 - Main.RamiVanguri

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

CMSSW Documentation

Line: 15 to 15
 export PATH=${CMS_PATH}/bin/${CMS_SYS}:${CMS_PATH}/utils:${CERN_ROOT}/bin:$PATH

#BEGIN TUTORIAL

Changed:
<
<
VERSION=0_6_0
>
>
VERSION=0_7_0
 scramv1 project CMSSW CMSSW_$VERSION
cd CMSSW_$VERSION/src
eval `scramv1 runtime -sh`

#HACK SINCE FieldConfiguration? .xml is in the wrong place

Changed:
<
<
export CMSSW_SEARCH_PATH=$CMSSW_SEARCH_PATH:/code/osgcode/cmslocal/CMSSW
>
>
#export CMSSW_SEARCH_PATH=$CMSSW_SEARCH_PATH:/code/osgcode/cmslocal/CMSSW
 export CMSSW_SEARCH_PATH=$CMSSW_SEARCH_PATH:/code/osgcode/cmssoft/cms/Releases/CMSSW/CMSSW_0_7_0/src

#CONTINUE TUTORIAL

Revision 22006/06/27 - Main.RamiVanguri

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

CMSSW Documentation

Line: 21 to 21
 eval `scramv1 runtime -sh`

#HACK SINCE FieldConfiguration? .xml is in the wrong place

Changed:
<
<
export CMSSW_SEARCH_PATH=$CMSSW_SEARCH_PATH:/code/osgcode/cmslocal/CMSSW

>
>
export CMSSW_SEARCH_PATH=$CMSSW_SEARCH_PATH:/code/osgcode/cmslocal/CMSSW
export CMSSW_SEARCH_PATH=$CMSSW_SEARCH_PATH:/code/osgcode/cmssoft/cms/Releases/CMSSW/CMSSW_0_7_0/src

  #CONTINUE TUTORIAL
cmscvsroot CMSSW

Revision 12006/06/26 - Main.RamiVanguri

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="WebHome"

CMSSW Documentation

Setting up the environment

# first setup the CMS environment locally
export CMS_PATH=/code/osgcode/cmssoft/cms
source $CMS_PATH/setup/bashrc
export SCRAM_ARCH=slc3_ia32_gcc323
export CERN=$CMS_PATH/lcg/external/cern
export CERN_LEVEL=2004/$SCRAM_ARCH
export CERN_ROOT=$CERN/$CERN_LEVEL
export GROUP_DIR=$CMS_PATH/setup
export CMS_SYS=`$CMS_PATH/utils/fake-sys`
export PATH=${CMS_PATH}/bin/${CMS_SYS}:${CMS_PATH}/utils:${CERN_ROOT}/bin:$PATH

#BEGIN TUTORIAL
VERSION=0_6_0
scramv1 project CMSSW CMSSW_$VERSION
cd CMSSW_$VERSION/src
eval `scramv1 runtime -sh`

#HACK SINCE FieldConfiguration? .xml is in the wrong place
export CMSSW_SEARCH_PATH=$CMSSW_SEARCH_PATH:/code/osgcode/cmslocal/CMSSW

#CONTINUE TUTORIAL
cmscvsroot CMSSW
cvs login
wget http://home.fnal.gov/~jmmans/tutorials/CMSSW_Tutorial_$VERSION.tgz
tar xfz CMSSW_Tutorial_$VERSION.tgz
cd WorkBook? /Tutorial1/test

#HACK since this datafile is HARDCODED in the wrong place in CMSSW, so fix the configuration file
cat jet_reco.cfg | sed 's/include \"SimGeneral\/HepPDTESSource\/data\/pdt.cfi\"/es_source = HepPDTESSource? \{ \n string pdtFileName = \"\/code\/osgcode\/cmssoft\/cms\/lcg\/external\/heppdt\/2.02.02\/slc3_ia32_gcc323\/data\/PDG_mass_width_2004.mc\"\n \}/' > jet_reco_jrl.cfg

#CONTINUE TUTORIAL
cmsRun jet_reco_jrl.cfg

Then continue with the CMSSW WorkBookRunTutorial.

-- RamiVanguri - 26 Jun 2006

 
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