Command and Shortcut for CMS


Git Instructions

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

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:<a href="CMSPublic.CRAB3ConfigurationFile" rel="nofollow" target="_blank">https://twiki.cern.ch/twiki/bin/view/CMSPublic/CRAB3ConfigurationFile</a>

For knowing meanings of exit codes please follow: <a href="CMSPublic.JobExitCodes" rel="nofollow" target="_blank">https://twiki.cern.ch/twiki/bin/view/CMSPublic/JobExitCodes</a>

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>

-- <a href="Main.PraveenChandraTiwari" data-wikiword="Main.PraveenChandraTiwari" data-mce-href="Main.PraveenChandraTiwari"> PraveenChandraTiwari </a> - 2017-09-08

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r2 - 2017-11-13 - PraveenChandraTiwari
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 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