Command and Shortcut for CMS
Git Instructions
Click here for CMS Twiki Links for GitHub
Some useful commands:
## To clone the git repository
git clone .git
## To check which branch and to go to that branch
git branch # to see which branch you are in
git checkout branch # to go a branch
git checkout -b branch # to create a branch
## to fetch a branch on someone else's fork on GitHub
git remote add theirusername https://github.com/theirusernam/reponame
git fetch theirusername
git checkout -b mynamefortheirbranch theirusername/theirbranch
For more Tips and Tricks on git : *
GitTipsAndTricks.pdf</verbatim>
Tricks for CMSSW
## To expand the python code
open('pydump.py','w').write(process.dumpPython())
CRAB
For viewing the crab job status via web please follow:
http://dashb-cms-job.cern.ch/dashboard/templates/task-analysis
For understanding of crab configuration file please follow:
https://twiki.cern.ch/twiki/bin/view/CMSPublic/CRAB3ConfigurationFile
For knowing meanings of exit codes please follow: https://twiki.cern.ch/twiki/bin/view/CMSPublic/JobExitCodes
TIFR tier 2
##For looking at tier 2 location of crab output:
rfdir /dpm/indiacms.res.in/home/cms/store/user/ptiwari/< folder name>
##Listing of directories:
xrdfs se01.indiacms.res.in ls -l -u //dpm/indiacms.res.in/home/cms/store/user/<username>/<your full directory>
##T2_IN_TIFR for stage out from CRAB. Here the things one can do:
# Login to T2_IN_TIFR from lxplus:
*xrd se01.indiacms.res.in <http://se01.indiacms.res.in>*
# Outputs directory:
*/cms/store/user/*
# Copy any file from T2_IN_TIFR to lxplus:
*xrdcp -R root://se01.indiacms.res.in:1094//cms/store/user/ptiwari/filenme<http://se01.indiacms.res.in:1094//cms/store/user/ptiwari/filenme>;/afs/cern.ch/user/<http://cern.ch/user/>*
## To view file/directory in your TIFR T2
rfdir /dpm/indiacms.res.in/home/cms/store/user/<username>/<directory>
## To remove file/directory in your TIFR T2
rfrm -rf /dpm/indiacms.res.in/home/cms/store/user/<username>/<directory>
## To use your root file from TIFR T2 in lxplus or any other machine with CMSSW
root://se01.indiacms.res.in:1094//cms/store/user/<username>/<directory>/<filename>
## To check disk quota in your TIFR T2
/opt/lcg/bin/dpns-du /dpm/indiacms.res.in/home/cms/store/user/<username>
--
PraveenChandraTiwari - 2017-09-08