fkw's Getting Started with CMSSW page

Note that there are some README files in fkw's home directory in addition t the stuff here.

setting up the environment

source /code/osgcode/cmssoft/cmsset_default.sh CMSSW_1_5_4
source /code/osgcode/cmssoft/cms/setup/bashrc
export SCRAM_ARCH=slc4_ia32_gcc345
export VDT_LOCATION=/data/vdt
export EDG_WL_LOCATION=$VDT_LOCATION/edg
source /data/vdt/setup.sh

Getting a proxy

voms-proxy-init -voms cms -valid 500:00

Getting and installing a new version of CRAB

Go to Matt L.'s page via link above.

Creating a CMSSW project

You must have setup your environment first !!!

scramv1 project CMSSW CMSSW_1_5_4

This creates the release directory for you. You'll be working inside of the src directory in here.

Setup the scram environment for compilation/runtime

You must have created the CMSSW project within which you want to compile or run.

cd CMSSW_1_5_4/src
eval `scramv1 runtime -sh`

Checking out S&T code

You must check out this code into the src directory of your CMSSW project

cd CMSSW_1_5_4/src
export CVSROOT=:pserver:anonymous@cmscvs.cern.ch:/cvs_server/repositories/CMSSW

cvs login
98passwd
cvs co -d CMS1 UserCode/Gutsche/CMS1

Compiling the S&T code

You must have setup the scram environment for compilation first.

cd CMSSW_1_5_4/src/CMS1
./Configuration/installCMS1.pl CMSSW_1_5_4

Running the Ntuplemaker on uaf

You must have compiled the S&T code and setup the scram environment for compilation/runtime. I created a wgamma-uaf.cfg file based on info from Matt N. This is in /home/users/fkw/CMS/crab/CMSSW_1_5_4/CMS1/NtupleMaker/test/

cd CMSSW_1_5_4/src/CMS1
cmsRun NtupleMaker? /test/wgamma-uaf.cfg

Running NtupleMaker? via crab

You must have done your runtime setup of cmssw, as well as the crab installation.

cd ~fkw/CMS/crab
export X509_USER_PROXY=/tmp/x509up_u`id -u`
source CRAB_1_5_4/crab.sh

Then edit the file "files" to include whatever datasets you want to analyze.

./script

This will do as follows:

  • loop through the entries in "files"
  • create a directory for each
  • cd into it and combine crab1.cfg with crab2.cfg, inserting the dataset in the middle.
  • crab -create
  • crab -submit

Observed failures:

  • you forgot to export X509_USER_PROXY as described above
  • the dataset can not be found in DBS yet. We find that it takes a few hours after the dataset is recognized by CRAB as having arrived, and before it is available in DBS.

-- FkW - 04 Oct 2007


This topic: UCSDTier2 > WebHome > FkwGettingStarted
Topic revision: r3 - 2007/11/01 - 19:35:57 - FkW
 
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