CMS

connect to fermilab

kinit xu...@FNAL.GOV
ssh -X xu...@cmslpc-sl5.fnal.gov

connect to cern

 ssh -x ...@lxplus.cern.ch

start working

setupcms 
cd YOURWORKINGAREA/CMSSW_5_3_11/src/
cmsenv

bash:

(refresh)bash -r 
(edit) source .bashrc(or)chsh

tcsh:

(refresh) rehash
(edit)source.cshrc

find dateset from file:

dateset file=(filename)

find physical file name corresponds to logical file name:

edmFileUtil -d

dump entire event content:

 edmDumpEventContent --all (filename)

* create a user proxy*:

source /uscmst1/prod/grid/gLite_SL5.csh
glite-voms-proxy-init -voms cms

check the valid time of proxy

 voms-proxy-info -all

run file:

cmsRun

find the size of PATtuple:

ls -altrh (filename)

find the size of each branch

edmEventSize -v

*use root to run file*: root -l (filename)

to draw file with root

TBrowser b

another way to draw

root -l
Tfile f("filename")
TBrowser b

add package:

git cms-addpkg (package name)

compile package:

scram b

to implement change

rehash 
scram b
 cmsenv

get ZPeak root file:

 FWLiteHistograms inputFiles=(filename) outputFile=ZPeak_MC.root maxEvent=-1 outputEvery=10

fireworks:

cmsShow

copy file from afs

scp USERNAME@lxplus5.cern.ch:/afs/cern.ch/cms/Tutorials/TWIKI_DATA/CMSDataAnaSch_RelValZMM536.root

copy file from YOURWORKINGAREA:

scp USERNAME@lxplus5.cern.ch:(file directory) . (x=First letter of your username, xyz=Your username)
 scp USERNAME@lxplus5.cern.ch:(file directory) ~/Download/

copy from download to lpc

scp TryOut01.tar.gz xu0724@cmslpc-sl5NOSPAMPLEASE.fnal.gov:~/YOURWORKINGAREA/CMSSW_5_3_11/src

copy file from lpc to local area:

scp xu0724@cmslpc-sl6NOSPAMPLEASE.fnal.gov:~/CMSSW_6_2_0_SLHC16/src/0024CCD2-D0EF-E311-99F9-00259073E33A.root .

copy a file from other user directory to yours:

cp /uscms_data/d3/troy2012/CMSSW_5_3_14_patch1/src/CMGTools .

copy an entire directory from other user directory:

cp -r /uscms_data/d3/troy2012/CMSSW_5_3_14_patch1/src/CMGTools .

change slc

setenv SCRAM_ARCH_slc6_amd64_gcc472

see whether it points into the release you are expecting to work with:

echo $CMSSW_RELEASE_BASE

unpack:

tar -zxvf (filename)

git add

git remote add (generate name) (link)
*git clone*: git clone (link)

global updates of all linked libraries: sudo Idconfig

Edit | Attach | Watch | Print version | History: r33 < r32 < r31 < r30 < r29 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r33 - 2014-11-24 - unknown
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback