Installing and Running CMSSW in 25 Easy Steps

1) Refer to https://twiki.cern.ch/twiki/bin/view/CMS/CMSSW_aptinstaller

2) use scratch area e.g. /tmp/ux421033

3) setenv VO_CMS_SW_DIR /tmp/ux421033

4) setenv SCRAM_ARCH slc4_ia32_gcc345

5) wget -O $VO_CMS_SW_DIR/bootstrap.sh http://cmsrep.cern.ch/cmssw/cms/bootstrap.sh

6) sh -x $VO_CMS_SW_DIR/bootstrap.sh setup -path $VO_CMS_SW_DIR -arch $SCRAM_ARCH -unsupported_distribution_hack

7) source $VO_CMS_SW_DIR/$SCRAM_ARCH/external/apt/0.5.15lorg3.2-CMS3/etc/profile.d/init.csh

8) apt-get update

9) apt-cache search cmssw

10) apt-get install cms+cmssw+CMSSW_2_1_9

11) copy bin files from cithep90 to ~/bin  (NOTE: probably not needed?)

12) setenv PATH /tmp/ux421033/bin:{$PATH}

13) scramv1 list

14) cd /tmp/ux421033/slc4_ia32_gcc345/cms/cmssw/CMSSW_2_1_9

15) eval `scramv1 runtime -csh`

16) cd ~

17) scramv1 project CMSSW CMSSW_2_1_9  - Now the project area is created in ~/CMSSW_2_1_9

18) cd ~/CMSSW_2_1_9/src

19) mkdir mytrack

20) mkedanlzr -track MyTrackAnalyzer

21) cd MyTrackAnalyzer

22) edit the Python config file so that it uses a real input file

23) scramv1 b

24) eval `scramv1 runtime -csh`

25) Run the application: cmsRun mytrackanalyzer_cfg.py