From T3_KR_KNU
Contents
How to use Tier2 at KNU
Getting Account
DOE Certificate
CMS User Registration
SiteDB registration
KNU Tier 2 Login
CMS Installation
bash export VO_CMS_SW_DIR=<installation-directory> tcsh setenv VO_CMS_SW_DIR <installation-directory>
source $VO_CMS_SW_DIR/cmsset_default.sh cd <working-directory> scramv1 project CMSSW CMSSW_x_y_z
CRAB Installation
https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideCrab#CRAB_on_line_manual_and_tutorial 'how to get crab' - get latest CRAB tar ball file to <working-directory>
cd <working-directory> tar vfx CRAB_x_y_z.tgz cd <working-directory>/CRAB_x_y_z ./configure
Setting Environment
setenv VO_CMS_SW_DIR <installation-directory(=/opt/exp_soft/cms)> source $VO_CMS_SW_DIR/cmsset_default.sh CMSSW env must set under the CMSSW_x_y_z directory cd CMSSW_x_y_z cmsenv (= eval `scramv1 runtime -csh`)
CRAB env source <working-directory>/CRAB_x_y_z/crab.csh
Starting GRID Job Submission
Copy CRAB_x_y_z/python/crab.cfg and <analysis file(***.py)> into <working-directory>/CMSSW_x_y_z/src/
File edidting Check that an input file name (***.py) must be same as a file name in crab.cfg. 'Names' of input file and output file in crab.cfg and ***.py must be same. '# of events' must be same. Grid initialization grid-proxy-init Crab commands ex) Crab -create -submit Crab -status Crab -getoutput